CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2005
    Location
    algiers, Algeria
    Posts
    132

    Customize ContextMenuStrip

    Hi all, how i can create a customize ContextMenustrip, in other word i would like redifine a class thats extends from ContextMenuStrip

  2. #2
    Join Date
    Mar 2005
    Location
    Vienna, Austria
    Posts
    4,538

    Re: Customize ContextMenuStrip

    Quote Originally Posted by ledaker View Post
    Hi all, how i can create a customize ContextMenustrip, in other word i would like redifine a class thats extends from ContextMenuStrip
    Simple do
    Code:
     class MyContextMenue : ContextMenuStrip {
     
       public MyContextMenue():base(){
     
       }
     
    }
    But my question is: What do you want to achieve by doing that?
    Jonny Poet

    To be Alive is depending on the willingsness to help others and also to permit others to help you. So lets be alive. !
    Using Code Tags makes the difference: Code is easier to read, so its easier to help. Do it like this: [CODE] Put Your Code here [/code]
    If anyone felt he has got help, show it in rating the post.
    Also dont forget to set a post which is fully answered to 'resolved'. For more details look to FAQ's about Forum Usage. BTW I'm using Framework 3.5 and you ?
    My latest articles :
    Creating a Dockable Panel-Controlmanager Using C#, Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 | Part 7

  3. #3
    Join Date
    Dec 2005
    Location
    algiers, Algeria
    Posts
    132

    Re: Customize ContextMenuStrip

    Quote Originally Posted by JonnyPoet View Post
    Simple do
    Code:
     class MyContextMenue : ContextMenuStrip {
     
       public MyContextMenue():base(){
     
       }
     
    }
    thanks, the best solution solution i have found is to derive from ToolStripRenderer
    Code:
     class MyContextMenue : ToolStripRenderer
     {
       
    }
    But my question is: What do you want to achieve by doing that?
    Create ToolStripMenu like devexpress ToolStripMenu, if i can

  4. #4
    Join Date
    Mar 2005
    Location
    Vienna, Austria
    Posts
    4,538

    Re: Customize ContextMenuStrip

    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
    Jonny Poet

    To be Alive is depending on the willingsness to help others and also to permit others to help you. So lets be alive. !
    Using Code Tags makes the difference: Code is easier to read, so its easier to help. Do it like this: [CODE] Put Your Code here [/code]
    If anyone felt he has got help, show it in rating the post.
    Also dont forget to set a post which is fully answered to 'resolved'. For more details look to FAQ's about Forum Usage. BTW I'm using Framework 3.5 and you ?
    My latest articles :
    Creating a Dockable Panel-Controlmanager Using C#, Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 | Part 7

  5. #5
    Join Date
    Dec 2005
    Location
    algiers, Algeria
    Posts
    132

    Re: Customize ContextMenuStrip

    hi, i am working with c# (forms) only

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured