-
Opening and closing!
I dont know why im having such a problem. I have vb.net 2k3. i have this
Me.Hide()
mainform.Show()
in my login screen if the user enters the correct information.
When i try to exit my program from the mainform its like the program won't close. What the **** is going on?
Do i have to create instances of all the forms>? Like have a Main form. inside that have code like......
Dim main = New mainform
Dim login = New loginform
login.show()
if database.connect
login.hide()
mainform.show()
end if
?????
Im just confused. when i created projects in the initial vb .net (maybe 2000) you just created forms, added them to you project, gave them a name. Then just referenced them whenever you wanted to??????????
Last edited by bjr149; 07-08-2005 at 12:26 PM.
-
i just did what i said in the 2nd part i have a home form. MDIPARENT, then all my children inside of this.
in my home i just have the object of the login form. On a successful DB open within the login frm there is code to show the mainform. TY
-
If you follow your first solution, you must also close the login-form. It's still there, you just don't see it since it's hidden...
oes
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
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|