Create this class:
Public Class MyCustomToolStr ipProfessionalR enderer
Inherits ToolStripProfes sionalRenderer
Protected Overrides Sub OnRenderItemChe ck(ByVal e As
System.Windows. Forms.ToolStrip ItemImageRender EventArgs)
Dim stringFormat As New StringFormat
stringFormat.Al ignment = StringAlignment .Center
e.Graphics.Draw String("i", New Font("Marlett", 12, FontStyle.Bold) ,
SystemBrushes.M enuText, e.ImageRectangl e, stringFormat)
'or you can use this instead for an interesting look
'RadioButtonRen derer.DrawRadio Button(e.Graphi cs,
e.ImageRectangl e.Location,
System.Windows. Forms.VisualSty les.RadioButton State.CheckedNo rmal)
End Sub
End Class
In your Form_Load, do this:
Me.MenuStrip1.R enderer = New MyCustomToolStr ipProfessionalR enderer
--
-C. Moya
www.cmoya.com
"Pascal" <sc*********@wa nadoo.rf> wrote in message
news:44******** *************** @news.wanadoo.f r...
oops it seems too hard to understand and use for me.... arrrgh It is a
pity!
############### ############### ############### ############
menuStrip1.Rend erer = new RadioCheckRende rer();
public class RadioCheckRende rer : ToolStripProfes sionalRenderer {
protected override void
OnRenderItemChe ck(ToolStripIte mImageRenderEve ntArgs e) {
RadioButtonRend erer.DrawRadioB utton(e.Graphic s,
e.ImageRectangl e.Location,
System.Windows. Forms.VisualSty les.RadioButton State.CheckedNo rmal);
}
}
############### ############### ############### ###########
what's the way to use this part of code ? Mystery...
thanks Thank you nevertheless.