0

how to create or code 2 design forms in 1 workspace?

25th Jun 2016, 8:24 AM
khyle Alforque
khyle Alforque - avatar
3 odpowiedzi
+ 2
If you want to do it in Visual Studio with the ability to design the Form before compiling, open the Project and then choose Project > Add new Windows Form (or something similar; I don't remember it exactly). Mehaboobmunna's answer should work just as fine, but it creates the form on runtime and you are not able to design it like you can design the Main form.
25th Jun 2016, 1:18 PM
hyrex
hyrex - avatar
+ 1
add a new form in design then in code use. form form2 = new form() Edit : I guess I wrote it too simple. you need to add it using the options like @hyrex has written. then to invoke the second form you need to write formName.show() later I'll write a detailed description
25th Jun 2016, 9:55 AM
Mehaboobmunna Annigeri
Mehaboobmunna Annigeri - avatar
0
thanks a lot guys ill try it
25th Jun 2016, 1:36 PM
khyle Alforque
khyle Alforque - avatar