Results 1 to 5 of 5

Thread: Prevent combobox control from droping down?

Threaded View

  1. #1

    Thread Starter
    Addicted Member CoMMiE's Avatar
    Join Date
    Jul 2000
    Location
    Malaysia, Kuala Lumpur
    Posts
    179

    Prevent combobox control from droping down?

    Hi
    does anyone here have any idea on how to prevent the combobox to dropdown when the user click on the combobox button?

    i tried to use the following code but it does not seems to do what i want:

    Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long

    Private Sub MultiComboBox_DropDown(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.DropDown
    Const CB_SHOWDROPDOWN = &H14F


    SendMessage(combobox.Handle.ToInt32, CB_SHOWDROPDOWN, True, 0)

    End Sub

    Thanks
    Last edited by CoMMiE; Oct 6th, 2003 at 06:11 AM.
    To follow the path:
    look to the master,
    follow the master,
    walk with the master,
    see through the master,
    become the master.-ZEN

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