Windows.forms application
-
Hi, i'm starting C#, and i have a problem: I'm developing a application that should open one "window", which should be created from a form that has buttons, like a menu selector. When i click the button it should open a new especific form, e.g. button 1 opens form1; button 2 opens form 2 ... That i can do, but i want to open it in the same "window", not openning a new window with my new form, an when i hit a save button i want to go to the previous form. Can´t it be done??? thank for your time.
-
Hi, i'm starting C#, and i have a problem: I'm developing a application that should open one "window", which should be created from a form that has buttons, like a menu selector. When i click the button it should open a new especific form, e.g. button 1 opens form1; button 2 opens form 2 ... That i can do, but i want to open it in the same "window", not openning a new window with my new form, an when i hit a save button i want to go to the previous form. Can´t it be done??? thank for your time.
-
Hi, i'm starting C#, and i have a problem: I'm developing a application that should open one "window", which should be created from a form that has buttons, like a menu selector. When i click the button it should open a new especific form, e.g. button 1 opens form1; button 2 opens form 2 ... That i can do, but i want to open it in the same "window", not openning a new window with my new form, an when i hit a save button i want to go to the previous form. Can´t it be done??? thank for your time.
It sounds like you want to create an MDI application. This gives you one main window while allowing you to open various child window applications. One of the authors on here wrote a cool little tutorial that should help you out. Check out this link: http://www.codeproject.com/csharp/mdiformstutorial.asp?target=mdi Ryan
-
It sounds like you want to create an MDI application. This gives you one main window while allowing you to open various child window applications. One of the authors on here wrote a cool little tutorial that should help you out. Check out this link: http://www.codeproject.com/csharp/mdiformstutorial.asp?target=mdi Ryan
-
Thanks for your sujection. I tried it and hit worked. I have a small question, how can i remove de icon in my child form?. I want to open it maximized without de maximize, minimize and close button, and change the menubar. Thanks
Its funny you say that, because I posted a question similar to that just a little while ago, here are a couple of solutions for you: http://www.codeproject.com/script/comments/forums.asp?forumid=1649&select=491274&df=100&fr=51#xx490206xx S. Rod gives you a great solution, I give a simple one. Good luck, its titled form design quandries. Good luck, Ryan
-
Hi, i'm starting C#, and i have a problem: I'm developing a application that should open one "window", which should be created from a form that has buttons, like a menu selector. When i click the button it should open a new especific form, e.g. button 1 opens form1; button 2 opens form 2 ... That i can do, but i want to open it in the same "window", not openning a new window with my new form, an when i hit a save button i want to go to the previous form. Can´t it be done??? thank for your time.
Instead of using MDI, you could create all of your "forms" as user controls and just handle their loading/unloading on the same form
-
Instead of using MDI, you could create all of your "forms" as user controls and just handle their loading/unloading on the same form
-
Hi, i'm starting C#, and i have a problem: I'm developing a application that should open one "window", which should be created from a form that has buttons, like a menu selector. When i click the button it should open a new especific form, e.g. button 1 opens form1; button 2 opens form 2 ... That i can do, but i want to open it in the same "window", not openning a new window with my new form, an when i hit a save button i want to go to the previous form. Can´t it be done??? thank for your time.
It's more easy to use a panel in form and you cant make him on run-time like this . In the dinamic construction the bad point is that the RAM is more use that for static declaration , but the diference is very small . in Click event of the window make the code { Panel p=new Panel(); //give Panel properties this.Controls.Add(p); }