Results 1 to 4 of 4

Thread: [RESOLVED] ComboBox Dropdown vs txt Selection

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2006
    Location
    London, UK
    Posts
    817

    Resolved [RESOLVED] ComboBox Dropdown vs txt Selection

    Hi,
    Are there events that distinguishing between clicking the dropdown component and clicking in the text area of a combobox?
    I don't want the something triggered if the dropdown is clicked.

  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2006
    Location
    London, UK
    Posts
    817

    Re: ComboBox Dropdown vs txt Selection

    An alternative might be doubleclick, which doesn't seem to want to work.
    Last edited by sgrya1; Oct 4th, 2021 at 12:56 PM.

  3. #3
    PowerPoster
    Join Date
    Sep 2005
    Location
    Modesto, Ca.
    Posts
    5,517

    Re: ComboBox Dropdown vs txt Selection

    You can check if the DropDown list was activated.

    Code:
        Private Sub ComboBox1_Click(sender As Object, e As EventArgs) Handles ComboBox1.Click
            If Not Me.ComboBox1.DroppedDown Then
                MessageBox.Show("Do somethying")
            End If
        End Sub

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2006
    Location
    London, UK
    Posts
    817

    Re: [RESOLVED] ComboBox Dropdown vs txt Selection

    OMG. I wish this stuff was as second nature to me as it seems to others.

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