473,399 Members | 3,656 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,399 software developers and data experts.

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
"Transparency" 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 5213
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.pipex.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
"Transparency" 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
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...
0
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...
4
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...
3
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...
5
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
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...
0
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...
0
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.