|
-
Mar 27th, 2014, 03:36 AM
#1
Thread Starter
Addicted Member
Last edited by polas; Mar 27th, 2014 at 03:44 AM.
-
Mar 27th, 2014, 03:59 AM
#2
Re: How can i hide my second form dialog without bliking form not closing my first fo
Um, no, closing Form2 is not going to close Form1. Form1 will only close if you close it, which that code does not do. If you want to hide Form1 before showing Form2 then call Form1's Hide method. If you want show Form1 again after Form2 closes then call Form1's Show method.
-
Mar 27th, 2014, 04:05 AM
#3
Addicted Member
Re: How can i hide my second form dialog without bliking form not closing my first fo
what about
Code:
Form2.Show()
Form1.Hide()
-
Mar 27th, 2014, 05:53 AM
#4
Thread Starter
Addicted Member
Re: How can i hide my second form dialog without bliking form not closing my first fo
You didn't understand what i want.
I do not wanna hide it i just wanna close form like in other programs.
When i click x button to close form2 it should close not all forms but only form2 and back to form1 as it was.
How to do that ?
I know that it is really possible and i know that my code just set position after i open form2 it's ok but i need code to not hide but close form not all program.
-
Mar 27th, 2014, 06:15 AM
#5
Re: How can i hide my second form dialog without bliking form not closing my first fo
Change the Application Shutdown Mode to 'When last form closes'. Then after showing form2 you can close form1.
If you want from2 to show form1 when it closes then show form1 in form2's FormClosing event handler.
Tags for this Thread
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
|