You gotta be kiddin me
-
Ok! So Im into a c# programs that involes multiple forms. Ya know guys, in VB, we'd just do this Unload form1 form2.show And that was it.. ;-)p Well that ain'T working so telle me, how do we switch from one form to another in C#, like in the example above!!!??? Thanks, ;-) Orlanda
-
Ok! So Im into a c# programs that involes multiple forms. Ya know guys, in VB, we'd just do this Unload form1 form2.show And that was it.. ;-)p Well that ain'T working so telle me, how do we switch from one form to another in C#, like in the example above!!!??? Thanks, ;-) Orlanda
Well, you have to be a little more specific on what you're trying to do. Do you want to show a 2nd Form from the Form currently displayed? If you have a Windows Forms application then you gotta be carefull, because you will have the Applications MessageLoop attached to (most probably) your main Application Form. You can put the MessageLoop onto a different Form using the ApplicationContext class and its MainWindow (I think) Property. If you provide us with a little more info we might be able to help better. Matthias
You'll never master any language, except maybe VB, because there's nothing to it. (Lounge/Christian Graus)
www.mattbart.org
Sonork ID: 100.32002 -
Well, you have to be a little more specific on what you're trying to do. Do you want to show a 2nd Form from the Form currently displayed? If you have a Windows Forms application then you gotta be carefull, because you will have the Applications MessageLoop attached to (most probably) your main Application Form. You can put the MessageLoop onto a different Form using the ApplicationContext class and its MainWindow (I think) Property. If you provide us with a little more info we might be able to help better. Matthias
You'll never master any language, except maybe VB, because there's nothing to it. (Lounge/Christian Graus)
www.mattbart.org
Sonork ID: 100.32002Hi! Thanks for the reply. :-) Ok I'll be specific. I need to open up seemlessly Form_2 exactly where was Form_1. That probably means Unloading Form_1. The user press a buton, and Form_2 opens up (with Form_1 flushed out of the way). Thanks! Orlanda Coding is a family business
-
Hi! Thanks for the reply. :-) Ok I'll be specific. I need to open up seemlessly Form_2 exactly where was Form_1. That probably means Unloading Form_1. The user press a buton, and Form_2 opens up (with Form_1 flushed out of the way). Thanks! Orlanda Coding is a family business
Well, what is your application main form? What form do you use in Application.Run()? Or don't you use a MessageLoop? It's still not clear to me what you are actually trying to do. Key question is: Do you need to open Form_2 from Form_1? Or can you just do something like this:
Form Form_1 = new Form(); Form Form_2 = new Form(); Form_1.ShowDialog(); Form_2.ShowDialog();
When the first dialog gets dismissed, the second one is shown. hthYou'll never master any language, except maybe VB, because there's nothing to it. (Lounge/Christian Graus)
www.mattbart.org
Sonork ID: 100.32002