Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
Is there any way to specify the event when the combobox is droped down and items are hightlighted as they move through the selection? I want to display a picture box in which the image changes and each item is highlighted. Is this possible? Most of the code I've looked at has to do with after a specific item is selected. Is there any way to use that change in the combobox to trigger the action I discribed? Much thanks!
  • Leaders
Posted
I was going to make that recommendation, but I was kind of hoping that someone would post an example that involved something like overriding WndProc to intercept the appropriate message. The OwnerDraw feature is intended for rendering the UI, not broadcasting events. It is unlikely that it will ever become a problem, but the concern would be that a future version of DotNet would implement owner drawing differently in a way that would render this technique malfunctional (i.e. if the drawn combo box items are chached and don't need to be redrawn). That being said, PD's suggestion is probably still the way I would go, but mostly out of laziness.
[sIGPIC]e[/sIGPIC]

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...