NcontextMenu Exeption


Author
Message
Volvick Derose
Volvick Derose
Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)
Group: Forum Members
Posts: 71, Visits: 1
Try to display a context menu from the following code. It works fine, however when I choose any other skin from the pallet like "Office 2007 Blue", "Blue" or any other skin name, I get an exception. Only vista plus is working without exception

private void Form1_MouseUp(object sender, MouseEventArgs e)
{
if (e.Button == System.Windows.Forms.MouseButtons.Right)
{
nContextMenu1.Show(MousePosition);
}
}


Reply
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
Hi Volvick,

Please, try to set the palette of the context menu by code not by the designer.

For example to set it to be Office 2007 Blue in the form constructor you can write the following after InitializeComponent() call in the form constructor:

nContextMenu1.Palette.Scheme = Nevron.UI.WinForm.Controls.ColorScheme.Office2007Blue;
nContextMenu1.PaletteInheritance = Nevron.UI.WinForm.Controls.PaletteInheritance.None;

When you set the palette in the designer it put the settings in resource, which may cause the problem.
Please, let us know if the problem persist.

Best Regards,
Nevron Support Team


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search