Click here to Skip to main content
15,888,968 members
Home / Discussions / C#
   

C#

 
GeneralRe: accessing variables between forms. Pin
mikemilano5-Aug-03 8:45
mikemilano5-Aug-03 8:45 
GeneralRe: accessing variables between forms. Pin
Rocky Moore5-Aug-03 9:27
Rocky Moore5-Aug-03 9:27 
GeneralRe: accessing variables between forms. Pin
mikemilano5-Aug-03 9:48
mikemilano5-Aug-03 9:48 
Generalapplication hotkeys Pin
haimon155-Aug-03 6:56
haimon155-Aug-03 6:56 
GeneralTieing textboxes to grid Pin
Ista5-Aug-03 6:18
Ista5-Aug-03 6:18 
GeneralRe: Tieing textboxes to grid Pin
Ista5-Aug-03 9:48
Ista5-Aug-03 9:48 
Generalparent, showing a form Pin
THEMYTH5-Aug-03 5:07
THEMYTH5-Aug-03 5:07 
GeneralRe: parent, showing a form Pin
Rocky Moore5-Aug-03 9:51
Rocky Moore5-Aug-03 9:51 
One easy way that allows tabbing to work properly and looks natural is to use UserControls for your forms and create them as needed. You would place a panel control on your form where you want the embedded form to show and in your code, you would create the user control you want displayed and add the control to the Panel's Controls collection. When you want to change to another UserControl, you can clear the Panel's Controls collection and add the new one.

Another way is by using a tab control and convering the tabs.

And yet another way is to set the form's border you wish to embed to nothing and the control box to nothing (last step many not be needed) and set the Form's TopLevel to false; You can then add it to the Panel's Control list and use a Show() on the form. This will however cause you tabbing problems. I never went further than this since the UserControl method above gave me all that I could desire.

Rocky Moore <><
GeneralMdi-Application Pin
JM_FL5-Aug-03 1:47
JM_FL5-Aug-03 1:47 
GeneralRe: Mdi-Application Pin
apferreira5-Aug-03 7:39
apferreira5-Aug-03 7:39 
Generaloffset printing to paper but not in print preview Pin
misterbear5-Aug-03 0:45
misterbear5-Aug-03 0:45 
Generalcomment... Pin
misterbear5-Aug-03 0:46
misterbear5-Aug-03 0:46 
GeneralRemoting Pin
Ivan Fernandez5-Aug-03 0:27
Ivan Fernandez5-Aug-03 0:27 
GeneralRe: Remoting Pin
Valeria Bogdevich5-Aug-03 2:55
Valeria Bogdevich5-Aug-03 2:55 
GeneralAn activeX in C# Pin
mrpink5-Aug-03 0:27
mrpink5-Aug-03 0:27 
GeneralRe: An activeX in C# Pin
Anonymously5-Aug-03 1:04
Anonymously5-Aug-03 1:04 
GeneralRe: An activeX in C# Pin
p daddy5-Aug-03 3:38
p daddy5-Aug-03 3:38 
GeneralRe: An activeX in C# Pin
mrpink5-Aug-03 4:29
mrpink5-Aug-03 4:29 
GeneralRe: An activeX in C# Pin
Stephane Rodriguez.5-Aug-03 4:46
Stephane Rodriguez.5-Aug-03 4:46 
GeneralRe: An activeX in C# Pin
mrpink5-Aug-03 6:03
mrpink5-Aug-03 6:03 
GeneralRe: An activeX in C# Pin
Stephane Rodriguez.6-Aug-03 2:22
Stephane Rodriguez.6-Aug-03 2:22 
Generali,Remtoing Pin
Ivan Fernandez5-Aug-03 0:24
Ivan Fernandez5-Aug-03 0:24 
GeneralCreating child window Pin
S O S5-Aug-03 0:07
S O S5-Aug-03 0:07 
GeneralRe: Creating child window Pin
Furty5-Aug-03 0:54
Furty5-Aug-03 0:54 
GeneralRe: Creating child window Pin
S O S5-Aug-03 4:19
S O S5-Aug-03 4:19 

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.