Results 1 to 40 of 64

Thread: 100% Customizable MenuStrip / ToolStrip / StatusStrip, including common presets

Hybrid View

  1. #1
    Member
    Join Date
    Sep 2010
    Location
    Huntsville, AL
    Posts
    62

    Re: 100% Customizable MenuStrip / ToolStrip / StatusStrip, including common presets

    Quote Originally Posted by AMedina View Post
    Yes, I just add the files to the project and build. After click on built vb is showing the error list.
    I've had those errors too. The name of the solution that NickThissen used to create the Customizable Strips was named "CustomizableStrips", so when you added them to your project, they are referencing a NameSpace that doesn't exist. If you go to each line of code that has that error and change "CustomizableStrips" to the name of your solution, the errors should go away.

  2. #2

    Thread Starter
    PowerPoster
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,070

    Re: 100% Customizable MenuStrip / ToolStrip / StatusStrip, including common presets

    Quote Originally Posted by arcanine View Post
    I've had those errors too. The name of the solution that NickThissen used to create the Customizable Strips was named "CustomizableStrips", so when you added them to your project, they are referencing a NameSpace that doesn't exist. If you go to each line of code that has that error and change "CustomizableStrips" to the name of your solution, the errors should go away.
    Ah, good catch! An easier fix is to put the files in a new control library project called CustomizableStrips, or just wrap each class in a namespace called called like that.

  3. #3
    Member
    Join Date
    Sep 2010
    Location
    Huntsville, AL
    Posts
    62

    Re: 100% Customizable MenuStrip / ToolStrip / StatusStrip, including common presets

    Quote Originally Posted by NickThissen View Post
    Ah, good catch! An easier fix is to put the files in a new control library project called CustomizableStrips, or just wrap each class in a namespace called called like that.
    Agreed! I added them manually a couple of times and then started using the controls library method, and it is a whole lot better!

  4. #4
    New Member
    Join Date
    Nov 2011
    Posts
    8

    Re: 100% Customizable MenuStrip / ToolStrip / StatusStrip, including common presets

    Quote Originally Posted by arcanine View Post
    Agreed! I added them manually a couple of times and then started using the controls library method, and it is a whole lot better!
    Thank you, Arcanine and Nick. I have the application working.
    One question: is possible to get menus such as Visual Studio 2010, where there are items with color gradients?. I've tried, but I have not been able to achieve.

  5. #5

    Thread Starter
    PowerPoster
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,070

    Re: 100% Customizable MenuStrip / ToolStrip / StatusStrip, including common presets

    Quote Originally Posted by AMedina View Post
    One question: is possible to get menus such as Visual Studio 2010, where there are items with color gradients?. I've tried, but I have not been able to achieve.
    Not with these controls.

    There are basically two ways to custom render a ToolStrip (and MenuStrip, etc):

    (1) Implement your own ProfessionalColorTable, where you specify which colors the ToolStrip uses.

    (2) Implement your own ToolStripProfessionalRenderer, where you draw everything manually using GDI+ techniques.


    My control here uses option (1). It basically tells the ToolStrip to render itself like it usually does, except you tell it to use some different colors. Simply said: you can only change the colors, but you cannot add new colors or color stuff where the regular ToolStrip doesn't paint. You cannot create gradients that don't exist in the regular ToolStrip.


    Option (2) gives you much more freedom, you can draw whatever you want and however you want it. This way you are free to draw a gradient wherever you want. Unfortunately, it's a lot more work!


    Luckily for you, I happened to have created quite a few custom ToolStripProfessionalRenderers (option 2), including a VS2008 style and a VS2010 style You can find the links in my signature.

  6. #6
    Junior Member
    Join Date
    Oct 2011
    Posts
    20

    Re: 100% Customizable MenuStrip / ToolStrip / StatusStrip, including common presets

    Hi Nick,

    a question to you about CustomizableStatusstrip:
    when you choose the colorscheme black for instance then should be the forecolor of the texts in 'white'.
    How can I do that?...

    Dietrich

  7. #7
    New Member
    Join Date
    Feb 2012
    Posts
    1

    Re: 100% Customizable MenuStrip / ToolStrip / StatusStrip, including common presets

    Hello dear,
    I am having a problem while I try to add these files in a vb class library project and recieve a lot of errors like 'Error 101 Type 'Color' is not defined.
    ' . As i am a newbie in VB.Net and have no clue how to deal with these errors. M i missing something to add ? Can someone help me n this

  8. #8
    Member
    Join Date
    May 2011
    Location
    Russia, N.Novgorod
    Posts
    35

    Re: 100% Customizable MenuStrip / ToolStrip / StatusStrip, including common presets

    I'd want to implement your AppearanceControl -it's nice, but when I set a form for your AppearaceEditor it requires a parameter (ap) (I downloaded CustomizableStripsLibrary.zip ). What does it mean and what must I do?
    Alex

  9. #9
    Junior Member
    Join Date
    Oct 2011
    Posts
    20

    Re: 100% Customizable MenuStrip / ToolStrip / StatusStrip, including common presets

    Hi Nick,
    I try to use the ContextMenustrip.
    The situation:
    A MDI-Cildform with a Datagridview and I want to show the Contextmenustrip at Mousedownevent. The menu shows but not at mouseposition but rather in the left upper corner of the screen...

    What's wrong?

    Regards-
    Dietrich

  10. #10
    Junior Member
    Join Date
    Oct 2011
    Posts
    20

    Re: 100% Customizable MenuStrip / ToolStrip / StatusStrip, including common presets

    Hi all,
    do you use the ReportViewer control (I use version 11.0) eventually?
    This control has a internal Toolstrip too! And you can adapt the AppearanceControl to this Toolstrip with the following code:
    Dim ts() As Control = ReportViewer1.Controls.Find("ToolStrip1", True)
    If Not IsNothing(ts) Then
    Dim tsItem As ToolStrip = DirectCast(ts(0), ToolStrip)
    With tsItem
    .AutoSize = True
    .RenderMode = ToolStripRenderMode.Professional
    .Renderer = AppearanceControl1.Renderer
    End With
    End If

    Greetings-
    Dietrich

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