Closing the form
-
Hi Guys, In my application.. 1)I am having one starting form with progress bar which shows the loading process... 2)After completing the progess its starting the actual application form. 3)But when I am closing the first form with progess bar..its closing the whole application.. 4)Right now I am making the first form hidden, but I cant close it.. I completely want to close the form.... Thanx Nishu
-
Hi Guys, In my application.. 1)I am having one starting form with progress bar which shows the loading process... 2)After completing the progess its starting the actual application form. 3)But when I am closing the first form with progess bar..its closing the whole application.. 4)Right now I am making the first form hidden, but I cant close it.. I completely want to close the form.... Thanx Nishu
You can not close it nor dispose it. It is like the mother form. If the mother dies all the children will die too. You must keep on hiding it. Why are u insisting to completly close it?? Any good reason for that??
-
You can not close it nor dispose it. It is like the mother form. If the mother dies all the children will die too. You must keep on hiding it. Why are u insisting to completly close it?? Any good reason for that??
Right now I am doing that only..But is this the only solution...??? Nishu
-
Right now I am doing that only..But is this the only solution...??? Nishu
Yea i think so
-
Hi Guys, In my application.. 1)I am having one starting form with progress bar which shows the loading process... 2)After completing the progess its starting the actual application form. 3)But when I am closing the first form with progess bar..its closing the whole application.. 4)Right now I am making the first form hidden, but I cant close it.. I completely want to close the form.... Thanx Nishu
Hi, have a look at your Main method. Somewhere there you will find something like this:
Application.Run(new FormStartup());
Change it to something like this:
new FormStartup().ShowDialog();
Application.Run(new FormMainApp());When
FormStartup
is done just close it and the other form will appear. Robert -
Hi, have a look at your Main method. Somewhere there you will find something like this:
Application.Run(new FormStartup());
Change it to something like this:
new FormStartup().ShowDialog();
Application.Run(new FormMainApp());When
FormStartup
is done just close it and the other form will appear. RobertThat sounds cool. I will try it.:)
-
Hi Guys, In my application.. 1)I am having one starting form with progress bar which shows the loading process... 2)After completing the progess its starting the actual application form. 3)But when I am closing the first form with progess bar..its closing the whole application.. 4)Right now I am making the first form hidden, but I cant close it.. I completely want to close the form.... Thanx Nishu
The functionality you're describing is called splash screen and there are some articles here on Codeproject that cover this topic and should give you some ideas how to implement this effectively and nicely. Just search the articles for "splash screen".
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
-
The functionality you're describing is called splash screen and there are some articles here on Codeproject that cover this topic and should give you some ideas how to implement this effectively and nicely. Just search the articles for "splash screen".
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
Thanx guys.... Nishu....