T
Tenick
Guest
-----some info-----
I have one form (login)
In this form there are 3 user controls (loginSection, guestLogin, adminLogin)
In loginSection I have two buttons (guest, admin)
guest button will hide loginSection then show guestLogin
admin button will hide loginSection then show adminLogin
---------------------
My problem is when I hover my mouse to loginSection and click the any buttons, let's say the guest button, it wont hide the loginSection and it wont show the guestLogin usercontrol...
this is my code for the loginSection(user control) button(guest)
{
login log = new login();
log.loginSection1.Hide();
log.guestLogin1.Show();
log.guestLogin1.BringToFront();
}
but when I add log.Show(); to the code, it worked, the only problem is there are now two login forms open.
Also another thing, I tried the code above to a test button that is located inside the login form and it worked as expected without adding log.Show(); it just updated instantly, and that's what I want my usercontrols to work
I'm a beginner, please make it easy for me to understand
Continue reading...
I have one form (login)
In this form there are 3 user controls (loginSection, guestLogin, adminLogin)
In loginSection I have two buttons (guest, admin)
guest button will hide loginSection then show guestLogin
admin button will hide loginSection then show adminLogin
---------------------
My problem is when I hover my mouse to loginSection and click the any buttons, let's say the guest button, it wont hide the loginSection and it wont show the guestLogin usercontrol...
this is my code for the loginSection(user control) button(guest)
{
login log = new login();
log.loginSection1.Hide();
log.guestLogin1.Show();
log.guestLogin1.BringToFront();
}
but when I add log.Show(); to the code, it worked, the only problem is there are now two login forms open.
Also another thing, I tried the code above to a test button that is located inside the login form and it worked as expected without adding log.Show(); it just updated instantly, and that's what I want my usercontrols to work
I'm a beginner, please make it easy for me to understand
Continue reading...