dcsimg


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Opening and closing!

  1. #1
    Join Date
    Apr 2005
    Posts
    12

    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.

  2. #2
    Join Date
    Apr 2005
    Posts
    12
    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

  3. #3
    Join Date
    Nov 2004
    Location
    Oslo
    Posts
    73
    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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center