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 / Languages / Managed C++ / July 2005

Tip: Looking for answers? Try searching our database.

Drawings in front of an image

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Marcelo - 11 Jul 2005 10:38 GMT
Greetings!
I'm developing a multiple forms application in Microsoft Visual Studio
C++ .NET 2003. I have a problems with graphics: I draw my diagrams in a
pictureBox using its paint event and using the Invalidate() function to
call it. It works very well.
What I need now is drawing (for example) a rectangle over this image
(the diagrams) and afterwards (with a click button, for example) erase
it again. But my diagrams in the background must continue there. I'd
thank very much for any idea of how I could do that.
Manny Silva - 11 Jul 2005 21:19 GMT
If I'm not mistaken, this should be handled in the same paint event that you
are already using to draw your diagrams.  After the diagrams have been drawn,
depending on the state of the application, you either draw your rectangle(s)
or you don't.  That is probably how I would do it
Marcelo - 12 Jul 2005 10:01 GMT
Ok, thank you, you are right!
I hadn't realyzed. I just need to work with some 'if' clauses.

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.