473,399 Members | 2,478 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.

Truly transparent label.

Hi all.

I've been working on a small and very simple label design app for a few days
now, I've got most of my problems solved, although I'm sure there are some
more just around the corner!

The current issue is trying to get dynamically created labels to be truly
transparent. Setting the color value just doesn't do the job!

I may have many labels on the form at any one time, when moving a label over
another the underlying label is overdrawn, obviously by the 'topmost'
(BringToFront) label background.

So I need real transparency, does anyone have any ideas?

Oh, and I will have to do with with some 3rd party bar code controls as
well. IDAutomation Linear and 2D dlls.

Cheers,
Tull.
Sep 28 '06 #1
3 2365
Maybe this can help?

http://www.codeproject.com/csharp/tr...wsincsharp.asp
It's in C# though. Hope you can transpose.
HTH
Steve

"T Clancey" <tu**@idcodeware.co.ukwrote in message
news:Rf********************@bt.com...
Hi all.

I've been working on a small and very simple label design app for a few
days now, I've got most of my problems solved, although I'm sure there are
some more just around the corner!

The current issue is trying to get dynamically created labels to be truly
transparent. Setting the color value just doesn't do the job!

I may have many labels on the form at any one time, when moving a label
over another the underlying label is overdrawn, obviously by the 'topmost'
(BringToFront) label background.

So I need real transparency, does anyone have any ideas?

Oh, and I will have to do with with some 3rd party bar code controls as
well. IDAutomation Linear and 2D dlls.

Cheers,
Tull.

Sep 28 '06 #2
I looked into Transapency, but this can only be applied (through normal
properties) to forms, I need to do this kind of thing with the individual
labels. I don't really want transparency as this will dim the entire
control, I just want the white to be transparent.

I'll continue the search, but thanks for the link.
Cheers,
Tull.
"Steve Long" <St**********@NoSpam.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Maybe this can help?

http://www.codeproject.com/csharp/tr...wsincsharp.asp
It's in C# though. Hope you can transpose.
HTH
Steve

"T Clancey" <tu**@idcodeware.co.ukwrote in message
news:Rf********************@bt.com...
>Hi all.

I've been working on a small and very simple label design app for a few
days now, I've got most of my problems solved, although I'm sure there
are some more just around the corner!

The current issue is trying to get dynamically created labels to be truly
transparent. Setting the color value just doesn't do the job!

I may have many labels on the form at any one time, when moving a label
over another the underlying label is overdrawn, obviously by the
'topmost' (BringToFront) label background.

So I need real transparency, does anyone have any ideas?

Oh, and I will have to do with with some 3rd party bar code controls as
well. IDAutomation Linear and 2D dlls.

Cheers,
Tull.


Sep 29 '06 #3
You might want to look here then:

http://www.Planet-Source-Code.com/vb...2132&lngWId=10

Steve

"T Clancey" <tu**@idcodeware.co.ukwrote in message
news:fu********************@bt.com...
>I looked into Transapency, but this can only be applied (through normal
properties) to forms, I need to do this kind of thing with the individual
labels. I don't really want transparency as this will dim the entire
control, I just want the white to be transparent.

I'll continue the search, but thanks for the link.
Cheers,
Tull.
"Steve Long" <St**********@NoSpam.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>Maybe this can help?

http://www.codeproject.com/csharp/tr...wsincsharp.asp
It's in C# though. Hope you can transpose.
HTH
Steve

"T Clancey" <tu**@idcodeware.co.ukwrote in message
news:Rf********************@bt.com...
>>Hi all.

I've been working on a small and very simple label design app for a few
days now, I've got most of my problems solved, although I'm sure there
are some more just around the corner!

The current issue is trying to get dynamically created labels to be
truly transparent. Setting the color value just doesn't do the job!

I may have many labels on the form at any one time, when moving a label
over another the underlying label is overdrawn, obviously by the
'topmost' (BringToFront) label background.

So I need real transparency, does anyone have any ideas?

Oh, and I will have to do with with some 3rd party bar code controls as
well. IDAutomation Linear and 2D dlls.

Cheers,
Tull.



Sep 29 '06 #4

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

Similar topics

3
by: SStory | last post by:
Is there no way to make a label or link label transparent in vb.net? This is a real pain on about screens with nice graphics where you want your text backgroup to be transparent. I can...
4
by: jcrouse | last post by:
I am using the following code to move a label on a form at runtime: If myMousedown = lblP1JoyRight.Name Then If lblP1JoyRight.BackColor.Equals(Color.Transparent) Then bTransCk = True ...
1
by: Dean Slindee | last post by:
The code below runs in the form_paint event but changes nothing, anyone got a better idea or why this code is not effective? Imports System.Drawing.Drawing2D Dim ctl As Control Dim str As...
2
by: Dean Slindee | last post by:
It appears that I have two routines that don't play well together! First routine: a form's background is shaded with a gradient color. Second routine: then, the background of all labels on the...
2
by: UJ | last post by:
I have a browser object on a form with a label in front of it. I want the label to be transparent so that you can see what's going on in the browser behind it. When I make the label transparent...
2
by: melanieab | last post by:
Hi, I found this online: protected override CreateParams CreateParams { get { CreateParams cp = base.CreateParams; cp.ExStyle |= 0x00000020; //WS_EX_TRANSPARENT return cp; }
2
by: Martin | last post by:
I've been complaing about the VB2005 Help-Information (or rather the lack of it) before, but when I was looking how to set the backstyle of a label control to "Transparent" I found that the VB2005...
3
by: vul | last post by:
I used to use creating headers (label at the top of the screen) for VB6 forms as 2 labels shifted a little bit with different for colors to get a simulation of a shadow. I set BackColor of both...
8
by: MikeB | last post by:
Hi, I created a picturebox with a map as an image. I want to make certain areas on the map clickable hotspots and the way I'm trying to do this is to create a transparent label with a different...
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...
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
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
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...
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,...

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.