|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
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 ! |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
Quote:
PictureBox Class (.NET Framework) Represents a Windows picture box control for displaying an image. MrKoala |
![]() |
| Viewing: Dev Articles Community Forums > Programming > .NET Development > C# - Drawing an image on a panel |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|