Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
355
Problem adding a UltraCombo to a windows Context Menu
posted

Hi,

I am attempting to add an UltraCombo to a normal windows ContextMenuStrip.

I have done this like so:

  

ToolStripControlHost host = new ToolStripControlHost(_ultraCombo);

contextMenuStripPositions.Items.AddRange(

new System.Windows.Forms.ToolStripItem[] { host });

 

Everything seems to be happy except that when you click to open up the grid in the ultraCombo, the grid pops up behind the context menu. This is fine normally because the grid appears below the menu. However if I right click towards the bottom of the screen, the grid appears higher up and is completely hidden by the context menu.

I have tried bringing the ultraCombo to the front when triggering the AfterDropDown event:

 

private void AfterDropDown(object sender, EventArgs e)

{    ucBondFilter.BringToFront();    }

 

However this doesn't work. I was hoping that someone might be able to help? It would be much appreciated!

 

Thanks,

Alastair