Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Issue with Visual Basic Express Programming:
#1
So I have 3 forms inside a project:
1: Login
2: Launchpad
3: Irrelevant but: About

The first one that comes up upon start is "Login"
It has 2 text box forms, with "Username" and "Password"
and then a login button (See code Below)

My problem is, I have it set to if the login information is correct, close the "Login" window and open the "Launchpad" Form. And what happens is, when I fill it out correctly, and click login, it opens launchpad really fast and then closes everything. Please help.

Code:
If TextBox1.Text = "a" And TextBox2.Text = "a" Then
            Launchpad.Show()
            Me.Close()
        Else : MsgBox("You have specified an Incorrect Username or Password, Please Try Again. If problems still persist, please contact Support.")
        End If
#2
You have to change the application Properties (Alt-Enter)

and go under the tab Application (The very first one)

Now find the drop down box with the label above it saying: Shutdown mode

now change that from: when startup form closes

to: when last form closes

[attachment=0]<!-- ia0 -->4.png<!-- ia0 -->[/attachment]


Attached Files Thumbnail(s)
   
Website: <!-- m --><a class="postlink" href="http://www.PBAProductions.com">http://www.PBAProductions.com</a><!-- m -->
E-Mail: <!-- e --><a href="mailtoTongueatrick@AriSystems.Org">Patrick@AriSystems.Org</a><!-- e -->
Skype: Qwaxer
Youtube: Qwaxer
[Image: 2hnx8av.jpg]
#3
That did it! Thanks so much for your help! <!-- sSmile --><img src="{SMILIES_PATH}/icon_e_smile.gif" alt="Smile" title="Smile" /><!-- sSmile -->
#4
No problem!
Website: <!-- m --><a class="postlink" href="http://www.PBAProductions.com">http://www.PBAProductions.com</a><!-- m -->
E-Mail: <!-- e --><a href="mailtoTongueatrick@AriSystems.Org">Patrick@AriSystems.Org</a><!-- e -->
Skype: Qwaxer
Youtube: Qwaxer
[Image: 2hnx8av.jpg]


Possibly Related Threads...
Thread Author Replies Views Last Post
  Choosing Programming Language manishshrestha60 2 1,961 09-02-2012, 12:16 PM
Last Post: Macatone
  What is your opinion on Visual Studio 2012? Moldraxian 5 3,984 08-17-2012, 05:35 AM
Last Post: Moldraxian
  Possible Visual C++ Topic Page? Moldraxian 2 2,179 08-09-2012, 12:33 PM
Last Post: brandonio21
  Visual basic 2008 /Error/ Need Urgent Help// Himansh 0 1,081 03-18-2012, 06:38 AM
Last Post: Himansh
  PHP Programming... =D Duckman 4 2,715 03-18-2011, 10:29 AM
Last Post: Duckman
  Visual basic related xolara 4 2,733 10-17-2010, 10:57 AM
Last Post: selimaydi

Forum Jump:


Users browsing this thread: 1 Guest(s)