Click here to Skip to main content
15,887,822 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: Pointers to Functions Pin
Wjousts21-Sep-03 10:12
Wjousts21-Sep-03 10:12 
GeneralRe: Pointers to Functions Pin
Blake Coverett21-Sep-03 11:38
Blake Coverett21-Sep-03 11:38 
GeneralGetting size of Bitmap in bytes or kilobytes. Pin
TigerNinja_19-Sep-03 7:54
TigerNinja_19-Sep-03 7:54 
GeneralRe: Getting size of Bitmap in bytes or kilobytes. Pin
leppie19-Sep-03 8:29
leppie19-Sep-03 8:29 
GeneralRe: Getting size of Bitmap in bytes or kilobytes. Pin
Wjousts19-Sep-03 9:35
Wjousts19-Sep-03 9:35 
GeneralRe: Getting size of Bitmap in bytes or kilobytes. Pin
leppie19-Sep-03 10:34
leppie19-Sep-03 10:34 
GeneralRe: Getting size of Bitmap in bytes or kilobytes. Pin
Wjousts19-Sep-03 12:00
Wjousts19-Sep-03 12:00 
GeneralRe: Getting size of Bitmap in bytes or kilobytes. Pin
Blake Coverett20-Sep-03 15:25
Blake Coverett20-Sep-03 15:25 
GeneralRe: Getting size of Bitmap in bytes or kilobytes. Pin
leppie20-Sep-03 23:10
leppie20-Sep-03 23:10 
GeneralContext Menus will text box Pin
Wjousts19-Sep-03 6:56
Wjousts19-Sep-03 6:56 
GeneralRe: Context Menus will text box Pin
Carlos H. Perez19-Sep-03 10:39
Carlos H. Perez19-Sep-03 10:39 
GeneralRe: Context Menus will text box Pin
Wjousts19-Sep-03 11:59
Wjousts19-Sep-03 11:59 

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.