MDI Container

solus

Freshman
Joined
Apr 5, 2003
Messages
30
Location
Phoenix
I'm using c#

The application I'm writing uses an MDIContainer. The wierd thing is, when i resize the form, the actual container stays the same size, leaving a gray area around it that should be part of the container, but isn't. I can see the "3d" lines showing the container staying the same size when i resize the form to a larger width and/or heigh. Any one heard of this?
 
Okay, foudn the problem, thanks to a friend:

C#:
		protected override void OnResize(EventArgs e_Resize)
		{
			if (this.WindowState == FormWindowState.Minimized)
			{
				this.Visible = false;
			}
		}

And here was the fix:

C#:
		protected override void OnResize(EventArgs e_Resize)
		{
			[b]base.OnResize(e_Resize);[/b]

			if (this.WindowState == FormWindowState.Minimized)
			{
				this.Visible = false;
			}
		}
 
Back
Top