Sythe.Org Forums     Register     FAQ     Members List     Calendar     Mark Forums Read    
 
Sythe.Org Forums  
   Runescape Gold

Sythe.org — A Virtual Goods Trading Hub

Make real cash! buying and selling in-game items.

We have a no-scam policy.

You can make thousands playing your favourite games here at Sythe.org.

Just sign up an account and follow the rules!


Take me to

Runescape Markets

Other Game Markets

Support Center

Register an Account

Close
A method for closing form1 then opening form2
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 12-20-2009, 01:25 AM
Forum Addict
BANNED
 
Join Date: Sep 2009
Posts: 308
Default A method for closing form1 then opening form2

Well, say you want to make a login system, you would want form1 to close then your form2 (program people register on your site or need a pass/auth code to see)

Ok, so this is the code you would need.

Code:
                Form2 myForm2 = new Form2();
                myForm2.Show();
Code:
            Application.OpenForms["Form1"].Close();
You add this in main method (in program.cs) under form1 one.

Code:
            Application.Run(new Form2());
That should help you if you made a login or auth system.
Reply With Quote
Reply



Cheap RS Gold Store  Runescape Gold

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

All times are GMT +1. The time now is 06:31 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.1