Hallo,
wie der Titel schon sagt, möchte ich alle Controls in einem Toolstripmenu ändern. Dies gelingt mir bis auf die MenuItem's.
wie der Titel schon sagt, möchte ich alle Controls in einem Toolstripmenu ändern. Dies gelingt mir bis auf die MenuItem's.
VB.NET-Quellcode
- Dim TooLMenueEintrag As ToolStripDropDownButton
- For Each Toolitem As System.Windows.Forms.ToolStripItem In Me.ToolStrip_Oben.Items
- With Toolitem
- .BackColor = Color.Blue
- .Font = Drawing.Font.FromHfont(Monitor.SchriftNormal.ToHfont)
- End With
- If TypeOf Toolitem Is ToolStripDropDownButton Then
- TooLMenueEintrag = New ToolStripDropDownButton
- TooLMenueEintrag.Name = Toolitem.Name
- For Each SubToolItem As ToolStripMenuItem In TooLMenueEintrag.DropDownItems
- ' Hier passiert nichts
- With Toolitem
- .BackColor = Color.Blue
- .Font = Drawing.Font.FromHfont(Monitor.SchriftNormal.ToHfont)
- End With
- Next
- End If
- Next
Gruß Markus