Hi All,
I want to add some admin privaliges to my program, its simple enough, when the user is logged in as admin certain buttons are enabled, when the user is logged in as anyone else, these buttons are disabled.
Please see my code below
Private Sub MRMMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If Me.Text = "Meeting Room Manager - ADMIN" Then
btnNewUsers.Enabled = True
btnCurrentBookings.Enabled = True
Else
btnNewUsers.Enabled = False
btnCurrentBookings.Enabled = False
End If
End Sub
the problem I have is that the buttons are disabled even when logged in as ADMIN.
I dont understand why this wont work it seems simple enough, can anyone see what I have done wrong.
Thanks very much
John