Click to See Complete Forum and Search --> : Customize ContextMenuStrip


ledaker
November 22nd, 2008, 07:05 AM
Hi all, how i can create a customize ContextMenustrip, in other word i would like redifine a class thats extends from ContextMenuStrip :ehh:

JonnyPoet
November 22nd, 2008, 12:20 PM
Hi all, how i can create a customize ContextMenustrip, in other word i would like redifine a class thats extends from ContextMenuStrip :ehh:Simple do
class MyContextMenue : ContextMenuStrip {

public MyContextMenue():base(){

}

}But my question is: What do you want to achieve by doing that?

ledaker
November 23rd, 2008, 03:07 AM
Simple do
class MyContextMenue : ContextMenuStrip {

public MyContextMenue():base(){

}

}
thanks, the best solution solution i have found is to derive from ToolStripRenderer
class MyContextMenue : ToolStripRenderer
{

}But my question is: What do you want to achieve by doing that?Create ToolStripMenu like devexpress (http://www.devexpress.com) ToolStripMenu, if i can :D

JonnyPoet
November 23rd, 2008, 03:33 AM
So are you working using silverlight ? You didn't mention this in the first place. You really should have mentioned that you are talking about web controls, as you would get much better results givng needed information :wave:

ledaker
November 23rd, 2008, 04:50 AM
hi, i am working with c# (forms) only :)