|
-
Apr 24th, 2004, 07:18 AM
#1
Thread Starter
Fanatic Member
Close form and open another?
This sounds pretty simple, but I am having a time with it. Can someone please give me an example?
Thanks!
-
Apr 25th, 2004, 02:21 AM
#2
Hyperactive Member
Code:
Form2 myNewForm = new Form2();
myNewForm.Show();
this.Hide();
//this.Close();
If your first Form is your mainForm you should only hide it, since closing it will stop your application.
Hope that helps,
Stephan
Keep Smiling - even if its hard 
Frankie Says Relax, wossname Says Yeah!
wossname:--Currently I'm wearing a gimp suit and a parachute.
C# - Base64 Blog
-
Apr 25th, 2004, 03:22 PM
#3
Thread Starter
Fanatic Member
Hiding it works, but when I close the other form, the splash form stay open in the background. How do I close everything?
Thanks!
-
Apr 25th, 2004, 04:48 PM
#4
try this link ( i posted under my other id Csharp on it ) , it describes using a login form , but the idea is the same for a splash form ... Link
~
if a post is resolved, please mark it as [Resolved]
protected string get_Signature(){return Censored;}
[vbcode][php] please use code tags when posting any code [/php][/vbcode]
-
Apr 27th, 2004, 06:35 AM
#5
Thread Starter
Fanatic Member
Thanks...
I used:
Application.Exit();
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|