Results 1 to 6 of 6

Thread: Line on MDI form?????

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2001
    Posts
    57

    Question 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

  2. #2
    Hyperactive Member CyberHawke's Avatar
    Join Date
    May 2004
    Location
    Washington DC
    Posts
    477
    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.

  3. #3

    Thread Starter
    Member
    Join Date
    Aug 2001
    Posts
    57
    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

  4. #4
    Hyperactive Member CyberHawke's Avatar
    Join Date
    May 2004
    Location
    Washington DC
    Posts
    477
    Tried with both the PictureBox and the Panel controls and could not do it with standard available methods.

  5. #5
    Junior Member
    Join Date
    Jun 2004
    Posts
    29

    Wink 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

  6. #6
    Hyperactive Member CyberHawke's Avatar
    Join Date
    May 2004
    Location
    Washington DC
    Posts
    477
    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
  •  



Click Here to Expand Forum to Full Width