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

C#

 
GeneralRe: Nice antialiased icons Pin
leppie4-Jun-04 10:10
leppie4-Jun-04 10:10 
GeneralRe: Nice antialiased icons Pin
Heath Stewart4-Jun-04 10:12
protectorHeath Stewart4-Jun-04 10:12 
GeneralRe: Nice antialiased icons Pin
XanderSon4-Jun-04 12:57
XanderSon4-Jun-04 12:57 
GeneralRe: Nice antialiased icons Pin
Heath Stewart4-Jun-04 13:32
protectorHeath Stewart4-Jun-04 13:32 
GeneralEscape characters and regex Pin
cardboard423-Jun-04 14:34
cardboard423-Jun-04 14:34 
GeneralRe: Escape characters and regex Pin
Heath Stewart3-Jun-04 17:10
protectorHeath Stewart3-Jun-04 17:10 
GeneralRe: Escape characters and regex Pin
leppie4-Jun-04 10:44
leppie4-Jun-04 10:44 
GeneralGetting a - "Cannot implicitly convert type 'int' to 'byte'" error - Help! Pin
link_793-Jun-04 12:51
link_793-Jun-04 12:51 
GeneralRe: Getting a - "Cannot implicitly convert type 'int' to 'byte'" error - Help! Pin
Andrew McCarter3-Jun-04 13:29
Andrew McCarter3-Jun-04 13:29 
GeneralRe: Getting a - "Cannot implicitly convert type 'int' to 'byte'" error - Help! Pin
link_793-Jun-04 13:34
link_793-Jun-04 13:34 
GeneralRe: Getting a - "Cannot implicitly convert type 'int' to 'byte'" error - Help! Pin
leppie4-Jun-04 7:25
leppie4-Jun-04 7:25 
GeneralNew to Programming/C# Pin
tweakk3-Jun-04 11:22
tweakk3-Jun-04 11:22 
GeneralRe: New to Programming/C# Pin
palbano3-Jun-04 11:27
palbano3-Jun-04 11:27 
GeneralRe: New to Programming/C# Pin
Heath Stewart3-Jun-04 12:09
protectorHeath Stewart3-Jun-04 12:09 
GeneralRe: New to Programming/C# Pin
Wackatronic4-Jun-04 1:09
Wackatronic4-Jun-04 1:09 
GeneralMDI Forms From Hell Pin
antoine@orchus-tech3-Jun-04 9:31
antoine@orchus-tech3-Jun-04 9:31 
GeneralRe: MDI Forms From Hell Pin
bneacetp3-Jun-04 9:58
bneacetp3-Jun-04 9:58 
antoine@orchus-tech wrote:
I want to make an MDI application.
I want the Parent form (frmMain to hold a menu and a Panel (docked top).
And I want the MDIChild Forms to be encased, but below the Panel.

How do I do that ?



1. Make frmMain a MDI form by changing its IsMDIContainer property to true.
2. Add or "drag" a panel from the Toolbox to frmMain form in the form designer and then change its Dock property to Top.
3. Add or "drag" a menu from the Toolbox to frmMain.
4. Make sure that you have a form added to your project for the MDIChild window.
5. Depending on how you want to handle your child window creation, these steps may vary. If you will be implementing a "New" command, then in its event handler in the frmMain class, type (frmChild should be replaced with whatever name you named your child form):

line 1: frmChild child = new frmChild();
line 2: child.MdiParent = this;
line 3: child.Show();

6. If you want things to be a little nicer, add a member variable to your frmMain class, possibly by the name of "childCount" of the uint type. Then between lines 2 and 3 from above, type:

line 3: childCount += 1;
line 4: child.Text = "Document " + childCount.ToString();

Please note that the line numbers above are there merely for reference only. After performing these steps, you should have the beginning workings of an MDI App. Hope this helps. Smile | :)

Happy Programming and God Bless!

Internet::WWW::CodeProject::bneacetp
GeneralRe: MDI Forms From Hell Pin
antoine@orchus-tech3-Jun-04 10:03
antoine@orchus-tech3-Jun-04 10:03 
GeneralRe: MDI Forms From Hell Pin
bneacetp3-Jun-04 10:32
bneacetp3-Jun-04 10:32 
GeneralGetting The Screen Resolution Pin
bjaminn3-Jun-04 8:39
bjaminn3-Jun-04 8:39 
GeneralRe: Getting The Screen Resolution Pin
bneacetp3-Jun-04 9:33
bneacetp3-Jun-04 9:33 
GeneralRe: Getting The Screen Resolution Pin
Heath Stewart3-Jun-04 10:16
protectorHeath Stewart3-Jun-04 10:16 
GeneralRe: Getting The Screen Resolution Pin
bneacetp3-Jun-04 10:35
bneacetp3-Jun-04 10:35 
QuestionCreate a .pdf file programmatically? Pin
Manster3-Jun-04 7:58
Manster3-Jun-04 7:58 
AnswerRe: Create a .pdf file programmatically? Pin
Spanky33-Jun-04 9:37
Spanky33-Jun-04 9:37 

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.