473,406 Members | 2,620 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Drawing on panel removes graphics.

I know the answer to this is right under my nose, but I think I'm too tired
to recall it. I have a form that uses a picture as it's background upon
loading. I then have a panel on top of it that is used to click on and
create a box on the area that was clicked on. What happens is when the box
appears, the background image disappears. What simple thing am I forgetting?

Feb 24 '06 #1
3 954

"Shawn" <sh**********@ccci.org> wrote in message
news:eF*************@TK2MSFTNGP14.phx.gbl...
I know the answer to this is right under my nose, but I think I'm too tired
to recall it. I have a form that uses a picture as it's background upon
loading. I then have a panel on top of it that is used to click on and
create a box on the area that was clicked on. What happens is when the box
appears, the background image disappears. What simple thing am I
forgetting?


Is the box transparent?

Feb 24 '06 #2
Yes, but I actually figured out a bett work around. I create a button that
looks like the box I created and just change it's location according to
where the box would have been. After setting it's color to transparent, it
actually works great.

"Homer J Simpson" <no****@nowhere.com> wrote in message
news:vqtLf.3758$Cp4.1394@edtnps90...

"Shawn" <sh**********@ccci.org> wrote in message
news:eF*************@TK2MSFTNGP14.phx.gbl...
I know the answer to this is right under my nose, but I think I'm too
tired
to recall it. I have a form that uses a picture as it's background upon
loading. I then have a panel on top of it that is used to click on and
create a box on the area that was clicked on. What happens is when the
box
appears, the background image disappears. What simple thing am I
forgetting?


Is the box transparent?

Feb 24 '06 #3

"Shawn" <ss******@bellsouth.net> wrote in message
news:e$**************@TK2MSFTNGP11.phx.gbl...
Yes, but I actually figured out a bett work around. I create a button that
looks like the box I created and just change it's location according to
where the box would have been. After setting it's color to transparent, it
actually works great.


OK. You have to find out which item you actually need to draw on. You can
wind up with 2 or 3 layers on top of your form at times.

Feb 24 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Martin | last post by:
I have Panel embedded in a Form. The panel has a PaintEventHandler to catch PaintEvents. When a PaintEvent occurs a new Thread which moves a Ellipse should be created. The Code: private void...
9
by: Steve Long | last post by:
Hello, (total GDI newbie) I'm having trouble drawing just a simple line to display in a picturebox. I just want a straight, dotdash line. I have two methods, one works and one doesn't (it cause...
3
by: Alberto | last post by:
I'm drawing an image in a panel control with this sentence in the Paint method: e.Graphics.DrawImageUnscaled(Image, panelImage.AutoScrollPosition); The problem is that I only want to paint a...
1
by: Niels Jensen | last post by:
Hi guys, I have the following code which is supposed to draw a grid in a panel consisting of a specified number of squares. I can get it to draw the grid and activate the autoscroll feature,...
2
by: osmarjunior | last post by:
Hello there... I have a custom user control, in which i put a panel on the top. In the Paint event of the panel, i have the following code: VisualStyleRenderer x = new...
11
by: dongarbage | last post by:
Hi there, I'm very much a C# novice. How do you do freehand drawing on a panel with a mouse in c#? Thanks, Don
4
by: =?Utf-8?B?R2lkaQ==?= | last post by:
Hi, I've windows form, in this form i've a panel. I want to draw lines inside the panel using the panel coordinates( meaing that the left upper corner of the panel is 0,0), how can i do it? ...
12
by: Petra Rohmer | last post by:
Hello, I want to ake following 0,0 (900mm,900mm) -------------------------------------- |....................................| |....................................|...
1
by: YouPoP | last post by:
I am doing an app (C# 2.0) where you can draw in a panel with your mouse in "real time". I actually have 2 problems; 1- it does not really is "real time", if your mouse move fast or very fast the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.