.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old April 30th, 2004, 06:29 AM
rsood rsood is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 2 rsood User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
C# - Drawing an image on a panel

Hey Guys
I am writing a windows application where based on user's selection I am supposed to draw a new image on the panel control, I have managed to do that the panel has mathematically drawn lines over which labels are dragged, what happens is that when a label is dragged over another label that has been marked with this image, it repaints the surface and the image disappears, in other words the Panel is returned to its original state without the image.
How do I prevent dragged labels to prevent from repainting. I would like my changes to stay intact. Any pointers to this effect will be appreciated.

Reply With Quote
  #2  
Old April 30th, 2004, 04:28 PM
StudioReview StudioReview is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 30 StudioReview User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 15
Write your own control. Inherit from Label. Then override the onPaint event.
__________________
Tivo Codes, Hacking the Tivo, and Adding a Second Drive to Your Tivo.
All this information at www.TivoSpy.com !

Reply With Quote
  #3  
Old May 2nd, 2004, 10:03 PM
rsood rsood is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 2 rsood User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
C# Paint problem

Hi StudioViewer
Thanks for the pointer, I haven't implemented it yet but as soon as I do, I will let you either way and may ask for more pointers if necessary.

Reply With Quote
  #4  
Old October 4th, 2004, 03:16 AM
MrKoala MrKoala is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 13 MrKoala User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by rsood
Hi StudioViewer
Thanks for the pointer, I haven't implemented it yet but as soon as I do, I will let you either way and may ask for more pointers if necessary.
Or you might want to use a PictureBox, which is designed for that.

PictureBox Class (.NET Framework)
Represents a Windows picture box control for displaying an image.

MrKoala

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgramming.NET Development > C# - Drawing an image on a panel


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap