Results 1 to 11 of 11

Thread: Button Behavior?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Location
    Birmingham, AL
    Posts
    1,276

    Question 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 Attached Files

  2. #2
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    I never noticed that..strange behaviour. There doesn't appear to be any property to turn that off unfortunately

  3. #3

    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?

  4. #4
    PowerPoster
    Join Date
    Jun 2001
    Location
    Trafalgar, IN
    Posts
    4,141
    If you set cancel = true in the double click event, it will not stay depressed.

  5. #5
    Frenzied Member Mega_Man's Avatar
    Join Date
    Mar 2001
    Location
    North of England, South-East of Iceland
    Posts
    1,067
    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"

  6. #6
    PowerPoster
    Join Date
    Jun 2001
    Location
    Trafalgar, IN
    Posts
    4,141
    Very strange. Its doesn't stay depressed on my machine.

  7. #7
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    He's right, it doesn't. Did you try this?
    VB Code:
    1. Private Sub CommandButton1_DblClick(Cancel As MSForms.ReturnBoolean)
    2.  
    3. Cancel = True
    4. MsgBox "Hello!"
    5.  
    6. End Sub

  8. #8
    Frenzied Member Mega_Man's Avatar
    Join Date
    Mar 2001
    Location
    North of England, South-East of Iceland
    Posts
    1,067
    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"

  9. #9
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    I think we should all remember at this point that you aren't allowed to distribute apps with Forms2 controls in them...

  10. #10
    Frenzied Member Mega_Man's Avatar
    Join Date
    Mar 2001
    Location
    North of England, South-East of Iceland
    Posts
    1,067
    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"

  11. #11
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    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
  •  



Click Here to Expand Forum to Full Width