Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Is there any way to use the context menus on an ComboBox while it is dropped down. Say I have 5 items in a drop down ComboBox. I click on the arrow, the box drops down, and right click on the third item.

 

I have only been able to get the context menu to open on the currently select item (after the ComboBox has closed up).

 

I use VB 2003. Checking for the SelectedIndex on the MouseDown event. I have also tried other methods and searched Googles and this form, MSDN and can't find anything on context menus and ComboBoxes.

 

The ComboBox does have a property called "ContextMenu" which I have set to the "ContextMenu1" component that I am using.

 

Can anyone confirm that in fact this can't be done.

 

Mark

Posted

It's not hard to translate C# to VB.net...

It's all quite the same. Have a look on that.

If I had a little more time a would translate it for you...

 

But I can help you translating the pieces you don't understand...

 

I'll be here if you need me :p

 

Alex :D

Software bugs are impossible to detect by anybody except the end user.

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...