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

How Transparent the background of link label control?

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 .
Expand|Select|Wrap|Line Numbers
  1.   LinkLabel lnklbl = new LinkLabel();
  2. lnklbl .Text="Click Me";
  3. lnklbl .BackColor = Color.Transparent;
  4.  
this code not work and background show with white color.
please give me idea to transparent the background of this dynamic control.
thankx
Oct 22 '09 #1
4 3344
markmcgookin
648 Expert 512MB
Hmm... that is strange I thought it would be transparent by default.

You could always set it to

Expand|Select|Wrap|Line Numbers
  1.  lnklbl.BackColor = this.lnklbl.Parent.BackColor; 
which would set it to it's parent's backcolor, so it would LOOK transparent.
Oct 22 '09 #2
Thanx mr. markmcgookin ,
this code is not work well because the panel contain image as
background in picture box control and all link label display on image by
"BringToFront()" method.what is way to transparent control in this situation.
if u have a any other idea please share with me.
Oct 23 '09 #3
markmcgookin
648 Expert 512MB
I don't think you can ever get a truely transparant background ontop of an image in the compact framework.

It would require quite a bit of processing power to do this, as the bounds of the lable object would surely have to mimic the colours of the object below it. Why are you placing a link label on an image. Why not just set an onclick event for the image and have this mimic the behaviour of the link?

Mark
Oct 27 '09 #4
thanx for respons,
How i use bound object to do this?
Oct 28 '09 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Paul Schnitter | last post by:
Update: My custom control is based on the article "Creating Visual Basic .NET controls from scratch" in "Adventures in .NET" on MSDN. It is designed to be a replacement for the VB6 shape...
1
by: Efkas | last post by:
My application have some level : 1. MyButton class with Label inheritance 2. MyComponent as User Control loading and positionning some of MyButtons 3. MyApp loading and positionning MyComponent ...
4
by: Efkas | last post by:
Hi, I had some label with BackColor.Transparent and a User Control also with transparent background. When I put a label on the user control, instead to have transparent result I obtain a...
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...
9
by: SStory | last post by:
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...
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 ...
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: 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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
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...

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.