|Hello all hope all is good and fine
i am making an application which have a main form opened at first this main form contain a menu half of thi menu is enabled and the other half is not enabled so the user will use the enabled part when he use it it will ask for a password if the user enter the password right so the not enabled half of the menu will be enabled
i wanna some ideas for how to achieve that
i have think and make that code :
Dim Str As String
Dim Str1 As String
Dim Str2 As String
Str = "Hema"
Str1 = "U Can Access As The Manager Now"
Str2 = "The Password is incorrect"
Dim F1 As Form1
F1 = New Form1()
If (TextBox1.Text.Equals(Str)) Then
F1.MenuItem5.Enabled = True
F1.MenuItem6.Enabled = True
F1.MenuItem7.Enabled = True
F1.MenuItem8.Enabled = True
that piece of code work when the user enter the password and click enter
the problem in it is it open another main form so there is two i wanna only to change the property of the menuitem on the same form which is already opened
hope anyone could help me
thanks in advance