ShowFont Dialog |
Post Reply |
Author | |
jcollier
Senior Member Joined: 15 February 2006 Status: Offline Points: 250 |
Post Options
Thanks(0)
Posted: 05 March 2008 at 10:16am |
Ok, this may sound like a stupid question and it's probably one I should know the answer to, however, here goes:
If I am using CommonDialog.ShowFont, how can I tell if the Cancel button has been pushed? CancelError returns false all the time and Font returns the name of the font selected regardless of which button is pushed. Thanks! |
|
dentor
Senior Member Joined: 30 November 2005 Location: France Status: Offline Points: 102 |
Post Options
Thanks(0)
|
Hello,
Codejock common dialog works like standard common dialog.
To test Cancel button click, you can run the sample below:
Example:
On Error Resume Next
CommonDialog.CancelError = True
CommonDialog.ShowFont If Err Then MsgBox "Cancel button was clicked" End If |
|
jcollier
Senior Member Joined: 15 February 2006 Status: Offline Points: 250 |
Post Options
Thanks(0)
|
Thanks! Worked like a champ. It's been a LONG time since I've used the commondialog. I still should have known though.
Thanks again. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |