Results 1 to 2 of 2

Thread: Button1_Click question [Resolved]

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2003
    Posts
    127

    Talking Button1_Click question [Resolved]

    I have been trying to get some functionality out of this and to be honest I haven't got anywhere with it.

    Code:
    Private Sub Button1_DoubleClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.DoubleClick
            'Do something here
        End Sub
    Is there such an animal using a double click to do something?

    What I am trying to do is use one button when clicked once it will do one thing and when double clicked it will do something else.
    My guess would be that there is an If Then used in some way if there isn't a straight Sub for it.

    Any suggestions....
    Last edited by teamdad; Jul 4th, 2004 at 12:00 AM.

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Dec 2003
    Posts
    127
    After some thought I answered this one myself.

    Reasons beyond my thought have told me that a button does not accept a double click..... who would have thunkit

    Other items DO accept both a single and a double click.

    Code:
    Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.Click
            Panel1.Visible = False
        End Sub
    
        Private Sub Label1_DoubleClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.DoubleClick
            Panel1.Visible = True
        End Sub

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