473,758 Members | 2,401 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Transparent Panel Problem

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
superimposed over this control so they can trace the lines etc. within.
I had thought that this would be a very straightforward process but the
"Transparen cy" that is supported by the panel is just a fudge to paint
the control with the background of the form which is no good to me. I
need a control at the same level but behind the panel to be
transparently behind it. I have been banging my head against the screen
for most of the day trying to get some kind of work-around working. I
have tried everything I can think of. I have also tried including
suggestions gleaned from these forums, e.g. trying to invalidate the
parent control. I have also tried another idea which was to try and
make the control opaque using a technique I found on another website.
Nothing so far has worked.

I think one of the problems is that I am using double bufferring,
however I am pretty sure I need this otherwise the whole UI for
designing just looks flickery and rubbish.

I would be willing to start trying some low-level stuff such as
blitting from the Active-X control to my panel if that's possible but
to be honest I would not know where to begin with that.

I am running out of ideas. Does anybody have any suggestions? I am
willing to consider any workaround for this now as I need to get it
working!

Thanks,

Mark Thompson.

Jan 13 '06 #1
1 5261
You might try a picture box instead of a panel and in the paint event, use
blbit to transfer a bitmap with a transparent background. You could draw on
the bitmap. Just a suggestion which may or not work but could give you some
ideas.
--
Dennis in Houston
"ch****@dsl.pip ex.com" wrote:
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
superimposed over this control so they can trace the lines etc. within.
I had thought that this would be a very straightforward process but the
"Transparen cy" that is supported by the panel is just a fudge to paint
the control with the background of the form which is no good to me. I
need a control at the same level but behind the panel to be
transparently behind it. I have been banging my head against the screen
for most of the day trying to get some kind of work-around working. I
have tried everything I can think of. I have also tried including
suggestions gleaned from these forums, e.g. trying to invalidate the
parent control. I have also tried another idea which was to try and
make the control opaque using a technique I found on another website.
Nothing so far has worked.

I think one of the problems is that I am using double bufferring,
however I am pretty sure I need this otherwise the whole UI for
designing just looks flickery and rubbish.

I would be willing to start trying some low-level stuff such as
blitting from the Active-X control to my panel if that's possible but
to be honest I would not know where to begin with that.

I am running out of ideas. Does anybody have any suggestions? I am
willing to consider any workaround for this now as I need to get it
working!

Thanks,

Mark Thompson.

Jan 14 '06 #2

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

Similar topics

1
14459
by: Marco Martin | last post by:
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.
0
964
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
1734
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...
3
5000
by: JJ | last post by:
I remember reading somewhere that transparent forms will not display correctly on some systems. The Microsoft help says the about the opacity setting: "Windows 2000, Windows Server 2003 family Platform Note: This property has no effect on platforms that cannot display layered windows." and this about transparent areas of forms: "Monitors set to a color depth of greater than 24-bit can display problems with certain parts of the form...
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
1318
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) {
0
2871
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
9492
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
9299
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,...
1
9885
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
8744
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...
1
7287
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5175
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
5332
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3832
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
3
2702
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.