Results 1 to 4 of 4

Thread: combobox

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2005
    Posts
    334

    combobox

    Hi

    Hope any1 can help... I have a combobox, and i want the user 2 only be able to select an entry from the list and NOT type in anything... I am assumning there is a combobox property for this???

    I couldnt find anywhere that can tell me?...

    Soz agian for sucha basic question

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: combobox

    In the KeyPress event, put e.Handled = True

  3. #3
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    Re: combobox

    Set its DropDownStyle property to DropDownList

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: combobox

    Quote Originally Posted by stanav
    Set its DropDownStyle property to DropDownList
    One of the zillion nices things about .NET is that when you do this to a .NET combo box, it doesn't remove the ability to use its text property as it did in VB6.

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