Results 1 to 2 of 2

Thread: [2005] ComboBox Control Event Issue?

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    5,034

    [2005] ComboBox Control Event Issue?

    I have a combobox that has it's "DroppedDown" property set to true. The Event that I am using is the default event (SelectedIndexChanged) that's used when you double-click on the control to get into design mode.

    I wish for the user to be able to use the arrow keys to scroll thru the combobox data elements and then make a selection to continue processing.

    Currently, the user cannot do this because of the "SelectedIndexChanged" event. What event should I use that will allow the user to scroll using the arrow keys? I'm thinking the "Leave" event and "Click" events.

    Thanks,
    Blake

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

    Re: [2005] ComboBox Control Event Issue?

    So you need to be able to run code when the user changes the highlighed item, but has not actually selected the item yet? This isn't really a feature of the combobox.

    Since you say you are using the DroppedDown property set to true, that means you are dropping down the combobox automatically, and not just specifically when the user clicks the arrow button to do it.

    Why not just use a listbox then? it sounds like you are trying to get listbox functionality out of a combobox.

    The only difference being the combobox takes up less room when its not dropped down, where a listbox size doesn't change. However if this was a factor, it would probably be easier for you to write some code to make the listbox size changed when its focused versus when its not. I would think that would be easier than trying to make the combobox do something it doesn't

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