Re: 100% Customizable MenuStrip / ToolStrip / StatusStrip, including common presets
Excuse me...
Also a 'normal' ContextMenustrip doesn't show the normal way, don't know why...
But with my shown method all functions with CustomContextMenustrip, That's OK.
Dietrich
Re: 100% Customizable MenuStrip / ToolStrip / StatusStrip, including common presets
Well, if the normal ContextMenuStrip doesn't behave as you want either then the problem is not my CustomContextMenuStrip. Perhaps you'd be better off posting the problem in the regular forum where you will get a lot more help. If it turns out to be a problem with my custom ContextMenuStrip I can take a look at it, but I doubt it.
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
Re: 100% Customizable MenuStrip / ToolStrip / StatusStrip, including common presets
Quote:
Originally Posted by
NickThissen
Most likely you don't have a reference to System.Drawing, which includes the System.Drawing.Drawing2D namespace in which the Color type exists. You mention a Class Library project which indeed by default does not have this reference, so all you need to do is add a reference to System.Drawing and then correct the errors by hovering over them (in the code editor, not the error list), clicking the little button that pops up and following the instructions.
Hello Nick, I absolutely love the customizable strips, I am having the same issue as this user. I have added the appropriate references but it comes up with 102 errors... They vary from: 'Invalidate is not a member of CustomizableStrips.CustomizableMenuStrip', 'Type color is not defined' and 'Value of type CustomizableStrips.CustomizableToolStrip cannot be converted to Systems.Windows.Form.Control' What should I do? When hovering over the errors in the code editor, they suggest generating method stubs or classes.