Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / Drawing / August 2004

Tip: Looking for answers? Try searching our database.

Z-order problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
G. Alper Alaca - 23 Aug 2004 10:45 GMT
Hi, I draw some rectangles for some purpose, but all of those appears behing
controls such as groupbox,
panel. I want my drawings to appear on top. How can I make it?

Thanks.
Ken Tucker [MVP] - 23 Aug 2004 11:51 GMT
Hi,

           Draw on the control instead of the form.

Ken
-----------------------------
Hi, I draw some rectangles for some purpose, but all of those appears behing
controls such as groupbox,
panel. I want my drawings to appear on top. How can I make it?

Thanks.
G. Alper Alaca - 24 Aug 2004 07:17 GMT
thanks for replying,
but I am trying to draw a series of rectangles to get a transitio
effect --like when you press save button in word, series of rectangles goes
to bottom.

> Hi,
>
[quoted text clipped - 7 lines]
>
> Thanks.
G. Alper Alaca - 24 Aug 2004 08:22 GMT
or imagine, you need to draw a diagonal line form top-left corner to
right-bottom corner.

And it will overlay all of the controls.

> Hi,
>
[quoted text clipped - 7 lines]
>
> Thanks.
Tommy Carlier - 25 Aug 2004 16:04 GMT
If you just want to draw some movement lines (that are reversible:
painting them again removes them), you can use the
ControlPaint.DrawReversibleLine-method:
- translate your coordinates to absolute screen coordinates
(Control.PointToScreen-method)
- call the method ControlPaint.DrawReversibleLine(startPoint,
endPoint, color)

Remember: both startPoint and endPoint should be SCREEN-coordinates.
G. Alper Alaca - 27 Aug 2004 10:01 GMT
thank you, I'll try it.

> If you just want to draw some movement lines (that are reversible:
> painting them again removes them), you can use the
[quoted text clipped - 5 lines]
>
> Remember: both startPoint and endPoint should be SCREEN-coordinates.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.