473,785 Members | 2,449 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1164
Ok, I can get this to work with a group object.. but not a picture box...
anyone know why?

"Brian S." <bs********@com munity.nospamwr ote in message
news:um******** *****@TK2MSFTNG P05.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.BackColo r = Color.Transpare nt


"Brian S." <bs********@com munity.nospamwr ote in message
news:um******** *****@TK2MSFTNG P05.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..Pare nt = Me.GroupBox1

me.label1.BackC olor = Color.Transpare nt

This does not work...

me.label1..Pare nt = Me.picturebox1

me.label1.BackC olor = Color.Transpare nt

"Bill McCarthy" <Bi**@N0SPAM.co mwrote in message
news:D0******** *************** ***********@mic rosoft.com...
Hi Brian,

In the properties picker, select Web , then select Transparent. Or in
code, Label1.BackColo r = Color.Transpare nt


"Brian S." <bs********@com munity.nospamwr ote in message
news:um******** *****@TK2MSFTNG P05.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********@com munity.nospamwr ote in message
news:e5******** ******@TK2MSFTN GP05.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..Pare nt = Me.GroupBox1

me.label1.BackC olor = Color.Transpare nt

This does not work...

me.label1..Pare nt = Me.picturebox1

me.label1.BackC olor = Color.Transpare nt

"Bill McCarthy" <Bi**@N0SPAM.co mwrote in message
news:D0******** *************** ***********@mic rosoft.com...
>Hi Brian,

In the properties picker, select Web , then select Transparent. Or in
code, Label1.BackColo r = Color.Transpare nt


"Brian S." <bs********@com munity.nospamwr ote in message
news:um******* ******@TK2MSFTN GP05.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********@com munity.nospamsc hreef in bericht
news:e5******** ******@TK2MSFTN GP05.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..Pare nt = Me.GroupBox1

me.label1.BackC olor = Color.Transpare nt

This does not work...

me.label1..Pare nt = Me.picturebox1

me.label1.BackC olor = Color.Transpare nt

"Bill McCarthy" <Bi**@N0SPAM.co mwrote in message
news:D0******** *************** ***********@mic rosoft.com...
>Hi Brian,

In the properties picker, select Web , then select Transparent. Or in
code, Label1.BackColo r = Color.Transpare nt


"Brian S." <bs********@com munity.nospamwr ote in message
news:um******* ******@TK2MSFTN GP05.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
6544
by: localhost | last post by:
How can I style a TextBox so it appears like a label when rendered? Thanks.
1
1705
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 of label contents as a list so it uses <ul> and <li>). The format of the string assigned to label text looks like this: "An error occurred:<ul><li>message 1</li><li>message2</li></ul>" The label renders in both browsers the same. Here's the...
2
1236
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 system.drawing.colour) I do not know the syntax to pass "theID" into this function! I am trying stuff like
4
1486
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 background colour of the form is still set to "control" colour. If I use the background transparent setting instead of seeing my drawn on background and it's gradient i see the forms background colour. If the label was on a solid coloured bit of...
5
6106
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 label. Can this be done? Matthew
2
10987
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...
1
2898
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 file which includes some html code to populate html formatted content as the text of an asp:label (<asp:label>). The reading of the text file itself goes just fine ;however, this only occurs when I use an absolute file path which will not work of...
9
8029
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 ... :-)) When I set the label with "SendToBack", it completely disapears. I also tried to set the child form like "BringToFront" but this also does not help.
0
4352
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 "Promena". I change content of property "Promena" from "Origin text" to "Changed text" using thread but content of label is still the same - databinding isn´t working according to my vision. Does somebody know, please, why content of label doesn´t change...
0
9645
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, 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...
0
9480
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,...
0
10325
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10147
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 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...
0
9950
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7499
isladogs
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...
0
5381
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.