Click here to Skip to main content
15,891,864 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to set ERRORLEVEL in C# ? Pin
forrest feng16-Jan-11 20:50
forrest feng16-Jan-11 20:50 
QuestionProblem with Word.doc generating C# Application, installed on another local computer Pin
Rafferty Uy11-Oct-07 0:05
Rafferty Uy11-Oct-07 0:05 
AnswerRe: Problem with Word.doc generating C# Application, installed on another local computer Pin
Abisodun11-Oct-07 1:47
Abisodun11-Oct-07 1:47 
QuestionForm inside another form Pin
half-life10-Oct-07 23:22
half-life10-Oct-07 23:22 
AnswerRe: Form inside another form Pin
Christian Graus10-Oct-07 23:26
protectorChristian Graus10-Oct-07 23:26 
GeneralRe: Form inside another form Pin
half-life10-Oct-07 23:38
half-life10-Oct-07 23:38 
AnswerRe: Form inside another form Pin
Spunky Coder10-Oct-07 23:27
Spunky Coder10-Oct-07 23:27 
AnswerRe: Form inside another form [modified] Pin
Martin#10-Oct-07 23:37
Martin#10-Oct-07 23:37 
Hello,

Yes, it is possible;

By setting the 'TopLevel' property of the SubForm to 'false'.
Then you can Add the SubForm to the MainForm.Controls.
//Inside MainForm
Form SubForm = new Form();
SubForm.TopLevel = false;
this.Controls.Add(SubForm );
SubForm.Show();


By setting the TopLevel property to false, it is no more possible to call the form modal with ShowDialog.

Hope it helps!


-- modified at 5:48 Thursday 11th October, 2007

A second possibility is the IsMdiContainer
//Inside MainForm
this.IsMdiContainer = true;
SubForm.MdiParent = this;
this.Controls.Add(SubForm);
SubForm.Show();


All the best,

Martin

GeneralRe: Form inside another form Pin
Spunky Coder10-Oct-07 23:46
Spunky Coder10-Oct-07 23:46 
GeneralRe: Form inside another form Pin
half-life10-Oct-07 23:48
half-life10-Oct-07 23:48 
GeneralRe: Form inside another form Pin
Martin#10-Oct-07 23:50
Martin#10-Oct-07 23:50 
Questionis the order of parameters addition to a command for update command realy required? Pin
nicolus10-Oct-07 23:10
nicolus10-Oct-07 23:10 
AnswerRe: is the order of parameters addition to a command for update command realy required? Pin
Christian Graus10-Oct-07 23:28
protectorChristian Graus10-Oct-07 23:28 
GeneralRe: is the order of parameters addition to a command for update command realy required? Pin
nicolus10-Oct-07 23:52
nicolus10-Oct-07 23:52 
GeneralRe: is the order of parameters addition to a command for update command realy required? Pin
Dave Kreskowiak11-Oct-07 4:09
mveDave Kreskowiak11-Oct-07 4:09 
GeneralRe: is the order of parameters addition to a command for update command realy required? Pin
PIEBALDconsult11-Oct-07 5:37
mvePIEBALDconsult11-Oct-07 5:37 
GeneralRe: is the order of parameters addition to a command for update command realy required? Pin
Dave Kreskowiak11-Oct-07 12:07
mveDave Kreskowiak11-Oct-07 12:07 
Questionpicturebox image Pin
NewToAspDotNet10-Oct-07 23:07
NewToAspDotNet10-Oct-07 23:07 
AnswerRe: picturebox image Pin
half-life10-Oct-07 23:24
half-life10-Oct-07 23:24 
QuestionProperty Grid Pin
Lucian.Palcu10-Oct-07 23:05
Lucian.Palcu10-Oct-07 23:05 
AnswerRe: Property Grid Pin
TJoe11-Oct-07 2:22
TJoe11-Oct-07 2:22 
GeneralRe: Property Grid Pin
visualhint11-Oct-07 9:11
visualhint11-Oct-07 9:11 
QuestionTreeveiw(add nodes) Pin
chanzeb10-Oct-07 22:53
chanzeb10-Oct-07 22:53 
AnswerRe: Treeveiw(add nodes) Pin
Spunky Coder10-Oct-07 22:57
Spunky Coder10-Oct-07 22:57 
GeneralRe: Treeveiw(add nodes) Pin
chanzeb10-Oct-07 23:03
chanzeb10-Oct-07 23:03 

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.