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 9 14821
Hi,
LinkLabel1.Back Color = Color.Transpare nt
LinkLabel1.Pare nt = PictureBox1
LinkLabel1.Loca tion = New Point(0, 0)
Ken
--------------------------
"SStory" <Th*******@TAKE OUTTHISSPAMBUST ERsofthome.net> wrote in message
news:Oa******** *****@tk2msftng p13.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
* "SStory" <Th*******@TAKE OUTTHISSPAMBUST ERsofthome.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>
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*******@TAKE OUTTHISSPAMBUST ERsofthome.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>
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*******@TAKE OUTTHISSPAMBUST ERsofthome.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>
* "SStory" <Th*******@TAKE OUTTHISSPAMBUST ERsofthome.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>
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*******@TAKE OUTTHISSPAMBUST ERsofthome.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>
* "SStory" <Th*******@TAKE OUTTHISSPAMBUST ERsofthome.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>
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*******@TAKE OUTTHISSPAMBUST ERsofthome.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>
* "SStory" <Th*******@TAKE OUTTHISSPAMBUST ERsofthome.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> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: bat21 |
last post by:
How create transparent background in "UserControl" ( Opacity regulated ) ?
thanks for all
bat21
|
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:
---------------------------------------------------
this.BackColor = Color.Wheat;
this.gameBackgroundBMP = new
Bitmap(GetType(),"MyForm.backGround.bmp");
|
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 drawstring most of it--shouldn't have to.
But how to do the linklabel I don't know--other than using the control.
Ideas? solutions?
|
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 documentation has reached
an all-time low (please note the part about the z-order):
MSDN:
In Visual Basic 6.0, the BackStyle property of the Label control determines
whether the label had a transparent background. Setting the BackStyle...
|
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 in my form, I set the picture property to
| |
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 cursor (hand)
and then I code the click_event for that label. However, I cannot make
the label transparent, even if I choose the Transparent option for the
attribute for the background color of the label. Any ideas or
suggestions?
Thanks
|
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...
|
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 transparent the background of link label control .
LinkLabel lnklbl = new LinkLabel();
lnklbl .Text="Click Me";
lnklbl .BackColor = Color.Transparent;
this code not work and background show with white color.
please give me idea to transparent...
|
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...
|
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,...
|
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...
| |
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,...
|
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...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| | |