Results 1 to 4 of 4

Thread: automatic dropdown? [RESOLVED]

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2004
    Location
    Utah, USA
    Posts
    353

    automatic dropdown? [RESOLVED]

    OK. I have a question about comboboxes. If I type some text into the combobox, I want it to be able to pull that text up into the text part of the combobox. Do you understand what I mean? When I type in it now, it will go to that place but won't pull it up to the text part of the combobox. Does anyone have any ideas on how to do that? Thanks!

    Brenda
    Last edited by brendalisalowe; Sep 28th, 2004 at 02:06 PM.

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2004
    Location
    Utah, USA
    Posts
    353
    Ok, so I went to this website:

    http://support.microsoft.com/defaul...p;Product=vbNET

    It doesn't like this part:
    VB Code:
    1. If ((e.KeyCode = Keys.Back) Or _
    2.     (e.KeyCode = Keys.Left) Or _
    3.     (e.KeyCode = Keys.Right) Or _
    4.     (e.KeyCode = Keys.Up) Or _
    5.     (e.KeyCode = Keys.Delete) Or _
    6.     (e.KeyCode = Keys.Down) Or _
    7.     (e.KeyCode = Keys.PageUp) Or _
    8.     (e.KeyCode = Keys.PageDown) Or _
    9.     (e.KeyCode = Keys.Home) Or _
    10.     (e.KeyCode = Keys.End)) Then
    11.  
    12.     Return
    13. End If

    The word 'KeyCode' has blue squiggley lines under it. Is there something I need to import or something?

    Also, it doesn't like the KeyUp Event. Why?

    Brenda

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2004
    Location
    Utah, USA
    Posts
    353
    Nevermind. I found this and it works:

    http://www.thecodeproject.com/vb/net...e_combobox.asp

    Brenda

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