J
Jerry C
I am trying to setup a asp:menu control and have the selected item chang to
red.
The menu is in a user control and the menu items are added dynamically with
the lines
Dim FMItem As New MenuItem
FMItem.Text = "Some Text"
FMItem.Value = 3 'any number
FMItem.Selectable = True
Menu1.Items.Add(FMItem)
This code is in a loop to add several menuitems depending on the data
I set the StaticSelectedStyle like this
Menu1.StaticSelectedStyle.ForeColor = Drawing.Color.Red
Menu1.StaticSelectedStyle.BackColor = Drawing.Color.Red
The menu works great but the color of the selected menu item does not change
How does this work
Thank you
red.
The menu is in a user control and the menu items are added dynamically with
the lines
Dim FMItem As New MenuItem
FMItem.Text = "Some Text"
FMItem.Value = 3 'any number
FMItem.Selectable = True
Menu1.Items.Add(FMItem)
This code is in a loop to add several menuitems depending on the data
I set the StaticSelectedStyle like this
Menu1.StaticSelectedStyle.ForeColor = Drawing.Color.Red
Menu1.StaticSelectedStyle.BackColor = Drawing.Color.Red
The menu works great but the color of the selected menu item does not change
How does this work
Thank you