|
Post by TweeZz on Feb 19, 2004 10:48:00 GMT -5
Hello all... I have a problem (of course) and I can't seem to find a solution (of course). Let me describe the problem. I have a GroupBox (VisualShed) which can contain a few PictureBoxes (Carpets). If there are no Carpet's in the VisualShed and I draw a rectangle, the rectangle is visible. So far so good... But when the VisualShed contains some Carpets and I draw the rectangle again, I only can see the rectangle in the VisualShed on the places where there is no carpet. Is there a way to bring the drawn rectangle in front of the Carpets? To make it more clear I have made a screenshot which you can find here br]http://users.pandora.be/bratislava_TJ/screenShot.jpg The problem (I think) is that I have to use the Graphics object of the GroupBox, because that is where I have to draw the rectangle. I have to be able to draw the rectangle over more than 1 Carpet. I also tried to draw a rectangle on a Carpet itself (so with the graphics object of a carpet) and even that wouldn't work? I have tried different things: SetStyle(opaque, true); BringToFront(); I hope someone can help me out here because the problem is driving me I don't have much experience in C# but I'm learning... I realy want to get this program solved! Thanks in advance! GreetZz, TweeZz. ps: If the problem doesnt seem clear... You can always ask me for the sourcecode!
|
|
Tewl
xTeam
C# & VB Developer
Posts: 495
|
Post by Tewl on Feb 19, 2004 15:53:18 GMT -5
why do you have to use the group box .net has classes for drawing images
|
|
|
Post by TweeZz on Feb 19, 2004 16:07:48 GMT -5
Because I don't only have to draw them... The carpets are objects (Carpet). I still have to be able to click them and moven them around and so on... The screenshot may look like only a picture but it isn't... I've put the exe file online... Maybe this can clear out my problem better than a screenshot... Hope you can help me out here! GreetZz, TweeZz. users.pandora.be/bratislava_TJ/DragDropModule.zip
|
|