VB Code:
[color="#0000A0"]Private[/color] [color="#0000A0"]Sub[/color] mnuHidePop_Click([color="#0000A0"]ByVal[/color] sender [color="#0000A0"]As[/color] System.Object, [color="#0000A0"]ByVal[/color] e [color="#0000A0"]As[/color] System.EventArgs) Handles mnuHidePop.Click [color="#0000A0"]If[/color] mnuHide.Text = "&Hide" [color="#0000A0"]Then[/color] Me.WindowState = FormWindowState.Minimized mnuHide.Text = "&Show" [color="#0000A0"]ElseIf[/color] mnuHide.Text = "&Show" [color="#0000A0"]Then[/color] Me.WindowState = FormWindowState.Normal mnuHide.Text = "&Hide" [color="#0000A0"]End[/color] [color="#0000A0"]If[/color] [color="#0000A0"]End[/color] [color="#0000A0"]Sub[/color]
Hello.
I am trying to edit the name of a menu item when I click it. At the moment I am using the code above. With this code the text changes (When i go through it line by line), but it doesn't actually display the changes.
Anyone know the reason why?
Many thanks
Pete




Reply With Quote