Click here to Skip to main content
15,892,927 members
Home / Discussions / C#
   

C#

 
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 
Generalobsfucator for C# Pin
ppp0013-Jun-04 7:21
ppp0013-Jun-04 7:21 
GeneralRe: obsfucator for C# Pin
Heath Stewart3-Jun-04 10:15
protectorHeath Stewart3-Jun-04 10:15 
Generaldynamic form programming Pin
ppp0013-Jun-04 7:18
ppp0013-Jun-04 7:18 
GeneralRe: dynamic form programming Pin
Dave Kreskowiak3-Jun-04 7:23
mveDave Kreskowiak3-Jun-04 7:23 
GeneralRe: dynamic form programming Pin
Spanky33-Jun-04 7:24
Spanky33-Jun-04 7:24 
GeneralRe: dynamic form programming Pin
Michael P Butler3-Jun-04 8:01
Michael P Butler3-Jun-04 8:01 
GeneralLZW compression algorithm Pin
Bettie3-Jun-04 7:00
Bettie3-Jun-04 7:00 
GeneralRe: LZW compression algorithm Pin
Heath Stewart3-Jun-04 7:10
protectorHeath Stewart3-Jun-04 7:10 
GeneralRe: LZW compression algorithm Pin
Bettie3-Jun-04 7:23
Bettie3-Jun-04 7:23 

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.