|
-
Feb 10th, 2009, 03:52 PM
#1
Thread Starter
Addicted Member
[RESOLVED] Problem with disabling buttons in other forms
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
Im using visual basic 2008 express edition so any posts that include coding or stuff PLEASE refer to vb 2008.
"A clever person solves problems, a wise person avoids them" 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|