473,769 Members | 6,538 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

transparent panel

Hi,

I have a picturebox with a bitmap inside. I need to add a panel to the
picturebox, but I have to see behind. Meaning, the panel has to be
transparent but not invisible. This panel will hold other images that I
will or wont display through code.

I'm saying panel, but it really doesn't matter. It could be any container
control that has height/width and location properties.

Any ideas would be greatly appreciated.

regards,

Marco
Nov 15 '05 #1
1 14459
Found a way. By overriding the onPaintBackgrou nd method:

private class TransparentPane l : Panel

{

public TransparentPane l()

{

}

//This method makes sure that the background is what is directly behind the
control

//and not what is behind the form...

override protected CreateParams CreateParams

{

get

{

CreateParams cp = base.CreatePara ms;

cp.ExStyle |= 0x20;

return cp;

}

}

override protected void OnPaintBackgrou nd(PaintEventAr gs e)

{

// do nothing

}

}

"Marco Martin" <ma**********@s ympatico.ca> wrote in message
news:mV******** ************@ne ws20.bellglobal .com...
Hi,

I have a picturebox with a bitmap inside. I need to add a panel to the
picturebox, but I have to see behind. Meaning, the panel has to be
transparent but not invisible. This panel will hold other images that I
will or wont display through code.

I'm saying panel, but it really doesn't matter. It could be any container
control that has height/width and location properties.

Any ideas would be greatly appreciated.

regards,

Marco

Nov 15 '05 #2

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

Similar topics

0
965
by: Max | last post by:
Hello Everyone, I have written a VB.NET application that uses a transparent panel. I display various forms and one external COM application in my transparent panel (one at a time). When I resize my panel or change its location, then theform or application that fills the transparent panel resizes or moves as needed. However, I have a problem when a user selects another
4
1735
by: UJ | last post by:
I've got multiple controls on a win forms page - and I have a panel that I want the user to be able to click on to have something happen which I have put on top of some of the control. I make the panel transparent but it doesn't show what's behind it, it shows the form background. Is there anyway to have something transparent so it shows what's behind it, not the form? What I'm really trying to do is have a shockwave or browser control...
1
5262
by: choffi | last post by:
Hi, I have a problem which, having looked through various previous postings, I notice that others have also come across. The problem I have as follows: I have incorporated an external Active-X control into my VB.NET project. The control itself works very well (it parses and displays AutoCAD DXF files). The problem is that I need my users to be able to use the graphical UI for drawing shapes on a panel I have designed
5
2545
by: Tony Clark | last post by:
Hi, I have a bmp that is set in a panel, i want to make the white color in the bmp image transparent so i can see the color of the panel below. How is this done? thanks tony
0
1319
by: anishkphilip | last post by:
Hi, I've a Panel on a Windows form. I've set the TransparencyKey property of the Form as the BackColor of the panel so that the portion of the Form occupied by the panel will be transparent. I want to get the mouse events on this panel. But when the Panel is transparent, all the mouse events are going to the window below the application. How can I get these events in the Panel?
0
1463
by: SippanJ | last post by:
Hi. I'm implementing a GIS application using C#. I wish to draw lines and dots on a map so to achieve this I use a browser to show the map images and places a transparent panel on top of the browser. The Panel is inherited from the Control Panel and overrides these methods: protected override void OnPaint(PaintEventArgs e) {
8
10176
by: Brian Ward | last post by:
I am looking for a simple way to set the image transparency in a PictureBox. I have a moving PictureBox containing a graphic image .. moving by incrementing its Left property. The background however shows white as the PictureBox moves but I want it to be transparent. The PictureBox BackColor is set to Transparent .. but no affect. I have used PhotoShop to make the image background transparent .. again no affect. If I make the image a...
0
2872
by: MasterOfTheDark | last post by:
This one's a hairy one to explain. What I've got is a class called "VistaGroupBox" that I put some nice-looking Vista-style gradients in the background and made to look like the ribbon categories you see in Office 2007. I got it working great, and created a few more controls, including a "VistaButton", which is primarily transparent when the cursor does not hover over it. However, when I added a standard Panel in the VistaGroupBox and put my...
0
9589
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10049
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9998
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8876
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5310
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3967
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3567
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.