|
-
Jan 5th, 2008, 10:28 PM
#1
Thread Starter
Junior Member
urg...another question - Clearing specific areas?
I hate to make so many topics, but I'm sure you're glad to help
So, my question is; is it possible to click to clear one area on a picturebox? It would be used as an eraser for a drawing. I've just used white on a white background in the past, but that's just painting over in white.
-
Jan 5th, 2008, 10:47 PM
#2
Re: urg...another question - Clearing specific areas?
which is ok if the drawings don't overlap
one possible solution is to keep all the drawing parameters in an array or collection, so they can be redrawn, after cls, less the ones you want to errase
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Jan 5th, 2008, 11:58 PM
#3
Re: urg...another question - Clearing specific areas?
I think a really easy way is to draw a filled box in the form's bkg color, no?
-
Jan 6th, 2008, 04:31 AM
#4
Re: urg...another question - Clearing specific areas?
Yes, that is like what MS Paint does.. You can "erase" with a circle or a square region as a "eraser brush". Just paint with your background color to simulate erasing.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
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
|