VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Have You Ever Faced A Problem When You Pressed Cancel Button In CommonDialog Control. This Simple C

by Deepak Ghosh (4 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Tue 24th June 2003
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Have You Ever Faced A Problem When You Pressed Cancel Button In CommonDialog Control. This Simple Code Will Help You out.

Rate Have You Ever Faced A Problem When You Pressed Cancel Button In CommonDialog Control. This Simple C



'==========================================================================
'Insert one Component "Microsoft Common Dialog Conotrl" into Your Project
'Create A Command Button By The Name Of Command1

Private Sub Command1_Click()
CommonDialog1.CancelError = True
On Error GoTo ErrHandler
CommonDialog1.Flags = CC_RGBINIT Or CC_FULLOPEN
CommonDialog1.Action = 3 ' 1=Open, 2=Save As, 3=Colour, 4=Font, 5=Printer
On Error GoTo 0

'==Your Code Starts


'==Your Code Ends

ErrHandler:
Exit Sub

End Sub


Download this snippet    Add to My Saved Code

Have You Ever Faced A Problem When You Pressed Cancel Button In CommonDialog Control. This Simple C Comments

No comments have been posted about Have You Ever Faced A Problem When You Pressed Cancel Button In CommonDialog Control. This Simple C. Why not be the first to post a comment about Have You Ever Faced A Problem When You Pressed Cancel Button In CommonDialog Control. This Simple C.

Post your comment

Subject:
Message:
0/1000 characters