Hi, i have a problem, My situation is this, I have a login screen (frmLoginScreen) which links to a main menu(frmMainMenu) then to another form (frmUserDetails). Their are two possible usernames. The first one the user logs in as Admin and the password is 4321, then the second one is Guest and no password. This is the code i have so far:

Dim G As New frmUserDetails
If txtUsername.Text = "Guest" Then
G.btnDelete.Enabled = False
End If

There are no errors and i don't know whats wrong can someone give me a code sample that works?

Thanks