Click here to Skip to main content
16,006,707 members
Home / Discussions / C#
   

C#

 
GeneralRe: unions Pin
grv57530-May-03 16:23
grv57530-May-03 16:23 
GeneralRe: unions Pin
James T. Johnson31-May-03 19:02
James T. Johnson31-May-03 19:02 
GeneralOpening and converting targa (TGA) images.. Pin
Yazilliclick29-May-03 14:37
Yazilliclick29-May-03 14:37 
GeneralNeed a Report to Open on Top of the Calling Page Pin
dturton29-May-03 11:45
dturton29-May-03 11:45 
QuestionIs it possible to add a form to a panel? Pin
zuhx29-May-03 11:41
zuhx29-May-03 11:41 
AnswerRe: Is it possible to add a form to a panel? Pin
shaunAustin29-May-03 22:07
shaunAustin29-May-03 22:07 
GeneralRe: Is it possible to add a form to a panel? Pin
zuhx30-May-03 8:10
zuhx30-May-03 8:10 
AnswerRe: Is it possible to add a form to a panel? Pin
James T. Johnson31-May-03 19:07
James T. Johnson31-May-03 19:07 
zuhx wrote:
Does any one know if it is possible to add a form to a panel?

Yes, it is possible, but not really recommended unless you change the FormBorderStyle.

MyForm form = new MyForm();
form.TopLevel = false;
form.Location = new Point(5, 5);
 
this.Controls.Add(form);
form.Show();
The only two things you HAVE to do is set TopLevel to false, and call Show. Don't forget that if the user clicks the close button on the form then the form object get's Dispose'd -- yet another reason to change the forms FormBorderStyle or at least hook the form's Closing event.

James

"I despise the city and much prefer being where a traffic jam means a line-up at McDonald's"
Me when telling a friend why I wouldn't want to live with him

GeneralRe: Is it possible to add a form to a panel? Pin
zuhx3-Jun-03 9:14
zuhx3-Jun-03 9:14 
GeneralRe: Is it possible to add a form to a panel? Pin
James T. Johnson3-Jun-03 10:34
James T. Johnson3-Jun-03 10:34 
GeneralTypeBuilder Problems in My Compiler. Pin
Defiant0029-May-03 10:53
Defiant0029-May-03 10:53 
GeneralRe: TypeBuilder Problems in My Compiler. Pin
leppie29-May-03 11:34
leppie29-May-03 11:34 
GeneralRe: TypeBuilder Problems in My Compiler. Pin
Burt Harris31-May-03 10:03
Burt Harris31-May-03 10:03 
GeneralShortcut keys Pin
Bo Hunter29-May-03 10:18
Bo Hunter29-May-03 10:18 
GeneralRe: Shortcut keys Pin
James T. Johnson31-May-03 19:15
James T. Johnson31-May-03 19:15 
GeneralTreeView Does Not Display Nodes Properly Pin
Zachery29-May-03 7:48
Zachery29-May-03 7:48 
GeneralRe: TreeView Does Not Display Nodes Properly Pin
James T. Johnson31-May-03 19:37
James T. Johnson31-May-03 19:37 
GeneralSuper Control Pin
RB@Emphasys29-May-03 6:50
RB@Emphasys29-May-03 6:50 
GeneralRe: Super Control Pin
RB@Emphasys29-May-03 8:01
RB@Emphasys29-May-03 8:01 
GeneralTransaction has already been implicitly or explicitly commited or aborted Pin
zerooz18229-May-03 5:44
zerooz18229-May-03 5:44 
QuestionFile Association in dot net? Pin
Bog29-May-03 5:03
Bog29-May-03 5:03 
QuestionHow do I draw a ruler ? Pin
JeffSayHi29-May-03 1:16
JeffSayHi29-May-03 1:16 
AnswerRe: How do I draw a ruler ? Pin
J. Dunlap29-May-03 7:55
J. Dunlap29-May-03 7:55 
QuestionHow to use MS DTC in dotnet? Pin
rexxxa29-May-03 0:26
rexxxa29-May-03 0:26 
AnswerRe: How to use MS DTC in dotnet? Pin
evr7629-May-03 5:41
evr7629-May-03 5:41 

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.