|
-
Jul 1st, 2004, 05:47 AM
#1
Thread Starter
Member
Line on MDI form?????
Hi there,
Can we draw line on MDI form?
Thnx
a_k93
when u get an error, means u r code getting executed
-
Jul 1st, 2004, 06:08 AM
#2
Hyperactive Member
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.
-
Jul 1st, 2004, 08:13 AM
#3
Thread Starter
Member
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
when u get an error, means u r code getting executed
-
Jul 1st, 2004, 08:27 AM
#4
Hyperactive Member
Tried with both the PictureBox and the Panel controls and could not do it with standard available methods.
-
Jul 1st, 2004, 08:37 AM
#5
Junior Member
Drawing Class will help
Use System.Drawing.Drawing2D
Use brush and draw a line
Give me a place to stand and I will move the Earth 
-
Jul 1st, 2004, 08:38 AM
#6
Hyperactive Member
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.
Last edited by CyberHawke; Jul 1st, 2004 at 08:47 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|