Click here to Skip to main content
15,912,205 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to dynamically create a form in c# Pin
Kristian Sixhøj26-Nov-08 23:48
Kristian Sixhøj26-Nov-08 23:48 
AnswerRe: How to dynamically create a form in c# Pin
Sần Hải Quang27-Nov-08 0:13
Sần Hải Quang27-Nov-08 0:13 
GeneralRe: How to dynamically create a form in c# Pin
tonyjsebastian127-Nov-08 0:49
tonyjsebastian127-Nov-08 0:49 
GeneralRe: How to dynamically create a form in c# Pin
tonyjsebastian127-Nov-08 0:55
tonyjsebastian127-Nov-08 0:55 
GeneralRe: How to dynamically create a form in c# Pin
Sần Hải Quang27-Nov-08 1:23
Sần Hải Quang27-Nov-08 1:23 
GeneralRe: How to dynamically create a form in c# Pin
tonyjsebastian127-Nov-08 1:35
tonyjsebastian127-Nov-08 1:35 
GeneralRe: How to dynamically create a form in c# Pin
EliottA27-Nov-08 2:33
EliottA27-Nov-08 2:33 
AnswerRe: How to dynamically create a form in c# Pin
jas0n2328-Nov-08 19:44
jas0n2328-Nov-08 19:44 
Okay, when you click on the button the code below will open a new form. First, create an event handler for the button you want to click on, and then type the following inside the event handler:

Form MyNewForm = new MyNewForm();
MyNewForm.Show();



That's all there is to it. If you would like to know how to go about setting the properties programatically for your new form write back.

Hope this helps,
j.t.

j.t.

AnswerRe: How to dynamically create a form in c# Pin
nelsonpaixao30-Nov-08 4:53
nelsonpaixao30-Nov-08 4:53 
NewsEncode PHP file by Illuminations Tools Pin
Sần Hải Quang26-Nov-08 23:26
Sần Hải Quang26-Nov-08 23:26 
GeneralRe: Encode PHP file by Illuminations Tools Pin
Christian Graus26-Nov-08 23:34
protectorChristian Graus26-Nov-08 23:34 
GeneralRe: Encode PHP file by Illuminations Tools Pin
Sần Hải Quang27-Nov-08 0:06
Sần Hải Quang27-Nov-08 0:06 
GeneralRe: Encode PHP file by Illuminations Tools Pin
leppie27-Nov-08 0:50
leppie27-Nov-08 0:50 
QuestionP/Invoke Exceptions Pin
HosamAly26-Nov-08 23:13
HosamAly26-Nov-08 23:13 
AnswerRe: P/Invoke Exceptions Pin
Christian Graus26-Nov-08 23:15
protectorChristian Graus26-Nov-08 23:15 
AnswerRe: P/Invoke Exceptions Pin
Mark Salsbery28-Nov-08 13:28
Mark Salsbery28-Nov-08 13:28 
GeneralRe: P/Invoke Exceptions Pin
HosamAly28-Nov-08 20:57
HosamAly28-Nov-08 20:57 
Questioncalling another compiler from c# Pin
tonyjsebastian126-Nov-08 23:09
tonyjsebastian126-Nov-08 23:09 
AnswerRe: calling another compiler from c# Pin
Christian Graus26-Nov-08 23:10
protectorChristian Graus26-Nov-08 23:10 
QuestionGetActiveObject doesn't work when run from ASP. Pin
Zyraph26-Nov-08 23:07
Zyraph26-Nov-08 23:07 
AnswerRe: GetActiveObject doesn't work when run from ASP. Pin
Christian Graus26-Nov-08 23:09
protectorChristian Graus26-Nov-08 23:09 
GeneralRe: GetActiveObject doesn't work when run from ASP. Pin
Zyraph27-Nov-08 14:16
Zyraph27-Nov-08 14:16 
Question.net remoting Pin
krinaljariwala26-Nov-08 22:46
krinaljariwala26-Nov-08 22:46 
AnswerRe: .net remoting Pin
tonyjsebastian126-Nov-08 23:03
tonyjsebastian126-Nov-08 23:03 
GeneralRe: .net remoting Pin
krinaljariwala26-Nov-08 23:13
krinaljariwala26-Nov-08 23:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.