Click here to Skip to main content
15,909,091 members
Home / Discussions / C#
   

C#

 
GeneralHidden Columns in ListView Pin
aka the guy20-Sep-03 3:44
aka the guy20-Sep-03 3:44 
GeneralRe: Hidden Columns in ListView Pin
Wjousts21-Sep-03 10:29
Wjousts21-Sep-03 10:29 
GeneralRe: Hidden Columns in ListView Pin
aka the guy21-Sep-03 14:06
aka the guy21-Sep-03 14:06 
GeneralNetwork Programming... Pin
fadee20-Sep-03 1:52
fadee20-Sep-03 1:52 
GeneralRe: Network Programming... Pin
Blake Coverett20-Sep-03 14:45
Blake Coverett20-Sep-03 14:45 
GeneralRe: Network Programming... Pin
fadee21-Sep-03 17:13
fadee21-Sep-03 17:13 
GeneralCom interop Pin
Abhijit Desai20-Sep-03 0:24
Abhijit Desai20-Sep-03 0:24 
GeneralmciSendString Question in C#,Please Help me! Pin
zoujiaming19-Sep-03 22:12
zoujiaming19-Sep-03 22:12 
GeneralRe: mciSendString Question in C#,Please Help me! Pin
creep23713-Feb-09 0:12
creep23713-Feb-09 0:12 
GeneralA few encryption questions Pin
Steve McLenithan19-Sep-03 19:33
Steve McLenithan19-Sep-03 19:33 
GeneralRe: A few encryption questions Pin
Blake Coverett20-Sep-03 14:58
Blake Coverett20-Sep-03 14:58 
GeneralSending keypresses to other applications Pin
MrEyes19-Sep-03 15:56
MrEyes19-Sep-03 15:56 
GeneralRe: Sending keypresses to other applications Pin
J. Dunlap19-Sep-03 16:31
J. Dunlap19-Sep-03 16:31 
GeneralRe: Sending keypresses to other applications Pin
Anonymous25-Sep-03 18:45
Anonymous25-Sep-03 18:45 
GeneralRe: Sending keypresses to other applications Pin
Jeremy Kimball25-Sep-03 20:11
Jeremy Kimball25-Sep-03 20:11 
GeneralFind a string in a string... Living hell. Pin
heelios19-Sep-03 15:54
heelios19-Sep-03 15:54 
GeneralRe: Find a string in a string... Living hell. Pin
Wjousts19-Sep-03 16:18
Wjousts19-Sep-03 16:18 
GeneralRe: Find a string in a string... Living hell. Pin
ravfingcoder20-Sep-03 5:15
ravfingcoder20-Sep-03 5:15 
GeneralRe: Find a string in a string... Living hell. Pin
fadee20-Sep-03 9:54
fadee20-Sep-03 9:54 
GeneralMDI as SDI Pin
Colin Angus Mackay19-Sep-03 12:56
Colin Angus Mackay19-Sep-03 12:56 
Hello,

I am trying to develope an SDI application that uses MDI to allow me to have lots of different types of child forms available, but only one is ever displayed.

Essentially my application has a common menu, toolbar and status bar. The parent window also has a tree control down the left side (like the folder view in Explorer). In the main body of this form I want to put an MDI child form, but disallow the Maximise, Minimise, etc. so that the child is always maximised inside the parent.

So far the best I've come up with for enforcing the rules I want are:

ChildA ca=new LessonA();<br />
ca.MaximizeBox=false;<br />
ca.MinimizeBox=false;<br />
ca.ControlBox=false;<br />
ca.WindowState=FormWindowState.Maximized;<br />
ca.MdiParent=this;<br />
ca.FormBorderStyle=FormBorderStyle.None;<br />
ca.Resize += new System.EventHandler(this.Child_Resize);<br />
ca.Show();


And the Child_Resize just sets the WindowState back to "Maximized".

However the problem with this is that the minimise and restore buttons exist and are clickable on the menu bar - The close button is also present, but not clickable. Cry | :(( How do I get rid of these buttons?

Or does anyone have any other suggestions abount how to have lots of types of child forms sitting in the parent form and have it appear like they are a natural extension of the parent form and not a MDI-acting-as-SDI-Kludge?

One line of thought I have on an alternative is to have the children inherit from the parent form class - but I think that would cause more trouble than it is worth. I have a feeling the VS designer would get confused.

Any help is appreciated,
Colin.
GeneralPointers to Functions Pin
Wjousts19-Sep-03 12:36
Wjousts19-Sep-03 12:36 
GeneralRe: Pointers to Functions Pin
J. Dunlap19-Sep-03 12:48
J. Dunlap19-Sep-03 12:48 
GeneralRe: Pointers to Functions Pin
aka the guy20-Sep-03 3:47
aka the guy20-Sep-03 3:47 
GeneralRe: Pointers to Functions Pin
Wjousts20-Sep-03 13:28
Wjousts20-Sep-03 13:28 
GeneralRe: Pointers to Functions Pin
Blake Coverett20-Sep-03 15:23
Blake Coverett20-Sep-03 15: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.