Have You Ever Faced A Problem When You Pressed Cancel Button In CommonDialog Control. This Simple C
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
(1(1 Vote))
'==========================================================================
'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
Have You Ever Faced A Problem When You Pressed Cancel Button In CommonDialog Control. This Simple C Comments
No comments yet — be the first to post one!
Post a Comment