Oct 10th, 2001, 05:15 PM
#1
Thread Starter
Frenzied Member
Button Behavior?
Using Microsoft Forms 2.0 Command Button, is there a way to get
the button to NOT stay depressed on a double click?
Attached Files
Oct 10th, 2001, 05:17 PM
#2
PowerPoster
I never noticed that..strange behaviour. There doesn't appear to be any property to turn that off unfortunately
Oct 10th, 2001, 05:27 PM
#3
Member
Re: Button Behavior?
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?
Just out of curiousity, why do you need to double-click a button?
Oct 10th, 2001, 05:30 PM
#4
If you set cancel = true in the double click event, it will not stay depressed.
Oct 10th, 2001, 05:33 PM
#5
Frenzied Member
If you set cancel = true in the double click event, it will not stay depressed.
Yes it does.
"If at first you don't succeed, then skydiving is not for you"
Oct 10th, 2001, 05:35 PM
#6
Very strange. Its doesn't stay depressed on my machine.
Oct 10th, 2001, 05:35 PM
#7
PowerPoster
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
Oct 10th, 2001, 05:35 PM
#8
Frenzied Member
My apologies, it does work.
Maybe I should rename my functions after renaming the controls (D'OH)
"If at first you don't succeed, then skydiving is not for you"
Oct 10th, 2001, 05:38 PM
#9
PowerPoster
I think we should all remember at this point that you aren't allowed to distribute apps with Forms2 controls in them...
Oct 10th, 2001, 05:43 PM
#10
Frenzied Member
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.
"If at first you don't succeed, then skydiving is not for you"
Oct 10th, 2001, 05:46 PM
#11
PowerPoster
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.
So kind!
See this for loads of info http://www.mvps.org/vbnet/faq/main/redistribution.htm
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width