473,386 Members | 1,706 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,386 software developers and data experts.

Transparent Link Label, over picturebox control?

I have a picturebox in my About form.

would like to have a link to my company website. Wanted the links
background to be transparent.
It seems that no one knows how to do this.

Have asked many times. VB help says that transparent is possible with a
background image but not above a control. So how can I provide a link (URL)
that is clickable, but transparent, over the picturebox in my about box?

Thanks,

Shane
Nov 20 '05 #1
9 14787
Hi,

LinkLabel1.BackColor = Color.Transparent

LinkLabel1.Parent = PictureBox1

LinkLabel1.Location = New Point(0, 0)
Ken
--------------------------
"SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
news:Oa*************@tk2msftngp13.phx.gbl...
I have a picturebox in my About form.

would like to have a link to my company website. Wanted the links
background to be transparent.
It seems that no one knows how to do this.

Have asked many times. VB help says that transparent is possible with a
background image but not above a control. So how can I provide a link (URL) that is clickable, but transparent, over the picturebox in my about box?

Thanks,

Shane

Nov 20 '05 #2
* "SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> scripsit:
would like to have a link to my company website. Wanted the links
background to be transparent.
It seems that no one knows how to do this.


Just add the LinkLabel to the PictureBox and set its 'BackColor'
property to 'Transparent'. Works for me (Windows XP Professional, .NET
1.1).

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3
hmm.

Well I just placed the link label on top of the picture box. Is that adding?

or do I need to do as Ken said and add it in code, setting the parent?

I will certainly try both.

Thanks,

Shane

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:c0*************@ID-208219.news.uni-berlin.de...
* "SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> scripsit:
would like to have a link to my company website. Wanted the links
background to be transparent.
It seems that no one knows how to do this.


Just add the LinkLabel to the PictureBox and set its 'BackColor'
property to 'Transparent'. Works for me (Windows XP Professional, .NET
1.1).

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #4
Ok.
One thing is that I was setting the image property of the picturebox and not
the background image property

Either way.
I put a simple picturebox on a form.
Set background image property to a jpg.
drag a link label control to it.
click BackColor property and select Web tab
then click Transparent.
It shows as control Grey for me.

I am using .net 2003

Any ideas?

Thanks,

Shane
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:c0*************@ID-208219.news.uni-berlin.de...
* "SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> scripsit:
Well I just placed the link label on top of the picture box. Is that
adding?
Drag the LinkLabel into the picturebox.
or do I need to do as Ken said and add it in code, setting the parent?


Placing the control inside the container will set the parent. For me,
everything works inside the IDE too. Just drag a LinkLabel into the
PictureBox and set its 'BackColor' to 'Transparent' (that's on the 2nd
color selection tab).

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #5
* "SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> scripsit:
One thing is that I was setting the image property of the picturebox and not
the background image property

Either way.
I put a simple picturebox on a form.
Set background image property to a jpg.
drag a link label control to it.
click BackColor property and select Web tab
then click Transparent.
It shows as control Grey for me.

I am using .net 2003


I tried it again in a blank project and in one picturebox it works, in
the other picturebox it doesn't work. Seems to depend on the image if
it works, but I am not really sure about that.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #6
Great! I am glad someone else gets the problem besides me.

Wonder if maybe someone at Microsoft is watching and could enlighten us.
This is a very needed capability.

A bit aggravating to have to paint my text on top of it just to get
transparency. I like seeing it there at designtime.

Danke Herfried.

ps.

If you get any more ideas on it please tell me. I have never gotten it to
work.

Shane

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:c0*************@ID-208219.news.uni-berlin.de...
* "SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> scripsit:
One thing is that I was setting the image property of the picturebox and not the background image property

Either way.
I put a simple picturebox on a form.
Set background image property to a jpg.
drag a link label control to it.
click BackColor property and select Web tab
then click Transparent.
It shows as control Grey for me.

I am using .net 2003


I tried it again in a blank project and in one picturebox it works, in
the other picturebox it doesn't work. Seems to depend on the image if
it works, but I am not really sure about that.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #7
* "SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> scripsit:
If you get any more ideas on it please tell me. I have never gotten it to
work.


I don't have an idea. I placed 2 pictureboxes on my form and chose 2
different GIF files. With one of the pictureboxes, it works, but it
doesn't work with the other picturebox (!?). I don't see any big
differences in the images' image formats.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #8
hmm..
Do you know an easy way to get this problem before Microsoft for an answer
or should we just hope one of them stumble across this news thread?

Thanks Herfried!
Glad I am not the only one in the twilight zone on this one.

And this is such a common need. I can do the label by Drawstring although
shouldn't have to... but the link control, I don't know how to do Drawstring
and make it hyperlink.... or anything of the kind..

Shane
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:c1*************@ID-208219.news.uni-berlin.de...
* "SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> scripsit:
If you get any more ideas on it please tell me. I have never gotten it to work.


I don't have an idea. I placed 2 pictureboxes on my form and chose 2
different GIF files. With one of the pictureboxes, it works, but it
doesn't work with the other picturebox (!?). I don't see any big
differences in the images' image formats.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #9
* "SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> scripsit:
Do you know an easy way to get this problem before Microsoft for an answer
or should we just hope one of them stumble across this news thread?
Let's hope that someone from Microsoft reads the thread. I am still not
sure if it's a bug, because it's very hard to repro the case when
transparency works.
And this is such a common need. I can do the label by Drawstring although
shouldn't have to... but the link control, I don't know how to do Drawstring
and make it hyperlink.... or anything of the kind..


You will have to perform hit testing in the control's 'MouseUp' event or
something like that.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #10

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

Similar topics

5
by: bat21 | last post by:
How create transparent background in "UserControl" ( Opacity regulated ) ? thanks for all bat21
2
by: Alex Gray | last post by:
Hi, I'm trying to make my PictureBox transparent to the BackgroundImage of the Form, not the BackColor of the form. Here's what i have: ---------------------------------------------------...
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...
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...
2
by: thi | last post by:
Hi Experts, I am new to C# moving from VB 6.0. Basic i want to know how do i make the label transparent with the control color it currently on. For example I have a picturebox control...
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...
8
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...
4
by: Rishabh Indianic | last post by:
i am developing smart phone application with VS 2005 using C#. i am trying to transparent the background of link label control which dynamically added in panel. i try with following code to...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.