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

Label Background

Hi, Is there a way to make the lable background transparent? I though I was
about to do this in Access 2.0... but its been a few years...
Brian
Jun 27 '08 #1
5 1145
Ok, I can get this to work with a group object.. but not a picture box...
anyone know why?

"Brian S." <bs********@community.nospamwrote in message
news:um*************@TK2MSFTNGP05.phx.gbl...
Hi, Is there a way to make the lable background transparent? I though I
was about to do this in Access 2.0... but its been a few years...
Brian

Jun 27 '08 #2
Hi Brian,

In the properties picker, select Web , then select Transparent. Or in code,
Label1.BackColor = Color.Transparent


"Brian S." <bs********@community.nospamwrote in message
news:um*************@TK2MSFTNGP05.phx.gbl...
Hi, Is there a way to make the lable background transparent? I though I
was about to do this in Access 2.0... but its been a few years...
Brian
Jun 27 '08 #3
Bill I can get this working i with a groupbox, but for some reason i can not
get it to work with a picture box.... where is the code I was using
this works....
me.label1..Parent = Me.GroupBox1

me.label1.BackColor = Color.Transparent

This does not work...

me.label1..Parent = Me.picturebox1

me.label1.BackColor = Color.Transparent

"Bill McCarthy" <Bi**@N0SPAM.comwrote in message
news:D0**********************************@microsof t.com...
Hi Brian,

In the properties picker, select Web , then select Transparent. Or in
code, Label1.BackColor = Color.Transparent


"Brian S." <bs********@community.nospamwrote in message
news:um*************@TK2MSFTNGP05.phx.gbl...
>Hi, Is there a way to make the lable background transparent? I though I
was about to do this in Access 2.0... but its been a few years...
Brian

Jun 27 '08 #4
Hi Brian,

Ah ... PictureBox in dotnet is not a container. I think you are thinking
like VB6. In dotnet use a Panel for a container control.


"Brian S." <bs********@community.nospamwrote in message
news:e5**************@TK2MSFTNGP05.phx.gbl...
Bill I can get this working i with a groupbox, but for some reason i can
not get it to work with a picture box.... where is the code I was using
this works....
me.label1..Parent = Me.GroupBox1

me.label1.BackColor = Color.Transparent

This does not work...

me.label1..Parent = Me.picturebox1

me.label1.BackColor = Color.Transparent

"Bill McCarthy" <Bi**@N0SPAM.comwrote in message
news:D0**********************************@microsof t.com...
>Hi Brian,

In the properties picker, select Web , then select Transparent. Or in
code, Label1.BackColor = Color.Transparent


"Brian S." <bs********@community.nospamwrote in message
news:um*************@TK2MSFTNGP05.phx.gbl...
>>Hi, Is there a way to make the lable background transparent? I though I
was about to do this in Access 2.0... but its been a few years...
Brian

Jun 27 '08 #5
Brian,

The background from the Picturebox is shadowed. You see the background in
your attributes because it is inherited from controls, but you cannot use
it. (I use the picturebox often as sample when somebody ask if you can hide
attributes from the attribute box which are inheritted, you cannot)

Cor

"Brian S." <bs********@community.nospamschreef in bericht
news:e5**************@TK2MSFTNGP05.phx.gbl...
Bill I can get this working i with a groupbox, but for some reason i can
not get it to work with a picture box.... where is the code I was using
this works....
me.label1..Parent = Me.GroupBox1

me.label1.BackColor = Color.Transparent

This does not work...

me.label1..Parent = Me.picturebox1

me.label1.BackColor = Color.Transparent

"Bill McCarthy" <Bi**@N0SPAM.comwrote in message
news:D0**********************************@microsof t.com...
>Hi Brian,

In the properties picker, select Web , then select Transparent. Or in
code, Label1.BackColor = Color.Transparent


"Brian S." <bs********@community.nospamwrote in message
news:um*************@TK2MSFTNGP05.phx.gbl...
>>Hi, Is there a way to make the lable background transparent? I though I
was about to do this in Access 2.0... but its been a few years...
Brian

Jun 27 '08 #6

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

Similar topics

2
by: localhost | last post by:
How can I style a TextBox so it appears like a label when rendered? Thanks.
1
by: NancyASAP | last post by:
I have a label on my ASP.NET form. It has a cssclass that includes a background color. I am dynamically putting text in this label. The text contains some embedded html (I want to display part...
2
by: CharlieOz1 | last post by:
Hi, I am having trouble with the datagrid. I have a label in an ItemTemplate. I have a simple function in the label which I have tested and works (the function does pass back a...
4
by: Adam Maltby | last post by:
Hi, I need to do a transparent label but with a difference. I have drawn on my form a custom background using CreateGraphics as I needed an ellipse looking fill in a rectangle - so the actual...
5
by: Matthew | last post by:
I have Visual Basic .NET 2003, and wanted to create a form that only shows the contents of a label. The form can't have a title bar or border. It seriously needs to just be the text inside 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...
1
by: cnixuser | last post by:
Hello, I am having a problem that I believe is related to the way a stream reader object looks for a text file by default. What I am doing is using a StreamReader object to read the text of a text...
9
by: =?Utf-8?B?RnJhbmsgVXJheQ==?= | last post by:
Hi all I have a MDI Container Form, with one label control on the Background of this container form. When I now open a child form, this form is behind the label ... and this looks ugly ... :-))...
0
by: Czechtim | last post by:
Hello, I have problem with databinding. I created small application using structure that I need to demonstrate problem. I need to change content of label when changing content of property...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.