PLEASE =D

Do you need something made? then ask in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
5 posts Page 1 of 1
Contributors
User avatar
NeedHelp
Member
Member
Posts: 42
Joined: Fri Feb 19, 2010 3:57 pm

PLEASE =D
NeedHelp
It starts with form 2 and when you've clicked a button and closed the program it starts with form1, for ever xD?

Is that possible
User avatar
NeedHelp
Member
Member
Posts: 42
Joined: Fri Feb 19, 2010 3:57 pm

Re: PLEASE =D
NeedHelp
bump =(
User avatar
CodenStuff
Site Admin
Site Admin
Posts: 4392
Joined: Tue Aug 04, 2009 1:47 am

Re: PLEASE =D
CodenStuff
Hello,

Yes you could store that in a setting I guess. Create a new setting called, for example "FormToLoad" and then in the "Button_Click" event use:
Code: Select all
My.Settings.FormToLoad = "1"
My.Settings.Save()
And then in your "Form_Load" event add:
Code: Select all
If Not Convert.ToString(My.Settings.FormToLoad) ="1" Then
Form2.Showdialog()
End If
Something like that.
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
User avatar
NeedHelp
Member
Member
Posts: 42
Joined: Fri Feb 19, 2010 3:57 pm

Re: PLEASE =D
NeedHelp
Didnt work :S

It opens the form 1 first then form2 :/ and it does it all the time
User avatar
Livengood
Serious Programmer
Serious Programmer
Posts: 445
Joined: Tue Feb 16, 2010 6:24 am

Re: PLEASE =D
Livengood
Hold on i will make a project for you :)
its very easy

-----------------------------------------------------------------
Ok here, i made this up fast :)
and it works
VB Help.zip
this has 3 forms - Loader, Form1, and form2
the loader form will read the settings and tell which form to open and then it will close its self :D
your welcome,
- Livengood
You do not have the required permissions to view the files attached to this post.
Image
5 posts Page 1 of 1
Return to “Tutorial Requests”