?
Solved

VB .net 2005 Closing a form.

Posted on 2007-10-06
1
Medium Priority
?
286 Views
Last Modified: 2013-11-26
I have a login form on my VB .net 2005 application that needs to run as soon as the program runs. But when I close the form it exit the application, how can I close the login form and keep the application running?
0
Comment
Question by:Medrise
1 Comment
 
LVL 48

Accepted Solution

by:
Wayne Taylor (webtubbs) earned 2000 total points
ID: 20029297
Hi Medrise,

Add a module, then use a routine like this....

    Sub Main()
        Dim frm As New frmLogin
        frm.ShowDialog()
        Application.Run(New MainForm)
    End Sub

Then set the Startup object to "Sub Main" in the project properties.

Regards,

Wayne

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Simulator games are perfect for generating sample realistic data streams, especially for learning data analysis. It is even useful for demoing offerings such as Azure stream analytics, PowerBI etc.
Integration Management Part 2
SQL Database Recovery Software repairs the MDF & NDF Files, corrupted due to hardware related issues or software related errors. Provides preview of recovered database objects and allows saving in either MSSQL, CSV, HTML or XLS format. Ensures recov…

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question