Hi there,
Can we draw line on MDI form?
Thnx
a_k93
Printable View
Hi there,
Can we draw line on MDI form?
Thnx
a_k93
I've tried everything I know, there does not appear to be a way to use any draw methods on an MDI container form. I searched MSDN, and there is no help there for this topic that I could find.
Thanks CyberHawke
Alternatively, I place Picturebox ctrl on MDI Parent form and set its dock property to fill. Now what happens is that whenever i call a form it is appearing behind the picture box. being picturebox's dock property is set to 'fill' the child form becomes invisible (basically it goes behind the Picturebox) and if i tried 'PictureBox1.SendToBack'. but this makes the PictureBox itself invisible.
Is there any way to get child form on the top of the Picturebox placed on mdi form?
Thanks
a_k93
Tried with both the PictureBox and the Panel controls and could not do it with standard available methods.
Use System.Drawing.Drawing2D
Use brush and draw a line
Did you try it?
I have used some complex drawing methods to create spectacular looking forms in some of the projects I have worked on, and I am very familiar with the Drawing methods in .NET. They simply don't work on an MDI container form.
I suspect the reason is that an MDI container form is obviously just another Form, and when you indicate that it is of a type MDI container, Microsoft behind the scenes is using those draw methods to make the background the darker color.