Using Microsoft Forms 2.0 Command Button, is there a way to get
the button to NOT stay depressed on a double click?
Printable View
Using Microsoft Forms 2.0 Command Button, is there a way to get
the button to NOT stay depressed on a double click?
I never noticed that..strange behaviour. There doesn't appear to be any property to turn that off unfortunately
Just out of curiousity, why do you need to double-click a button?Quote:
Originally posted by wey97
Using Microsoft Forms 2.0 Command Button, is there a way to get
the button to NOT stay depressed on a double click?
If you set cancel = true in the double click event, it will not stay depressed.
Yes it does. :(Quote:
If you set cancel = true in the double click event, it will not stay depressed.
He's right, it doesn't. Did you try this?
VB Code:
Private Sub CommandButton1_DblClick(Cancel As MSForms.ReturnBoolean) Cancel = True MsgBox "Hello!" End Sub
Very strange. Its doesn't stay depressed on my machine.
My apologies, it does work.
Maybe I should rename my functions after renaming the controls (D'OH) :D
I think we should all remember at this point that you aren't allowed to distribute apps with Forms2 controls in them...
Chris, in my quest to get you up to 4096 posts. Why are you not allowed.
I thought the only problem with using this control is that you must specify the OCX explicitely before doing a package & deployment.
Mega.
So kind! ;)Quote:
Originally posted by Mega_Man
Chris, in my quest to get you up to 4096 posts. Why are you not allowed.
I thought the only problem with using this control is that you must specify the OCX explicitely before doing a package & deployment.
Mega.
See this for loads of info http://www.mvps.org/vbnet/faq/main/redistribution.htm