473,466 Members | 1,366 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Changing Detail BackColor in VB.Net

Thank you in advance for any and all assistance. I have a group of checkboxes;
when the female gender is checked, I would like to change the backcolor
property to reflect (pink) and if the checkbox male is checked to change the
backcolor property to lightblue.

In Access it's Me.Detail.BackColor = (color)

When I try BackColor.Color(Pink) I get it's undeclared or something.

Michael
Nov 20 '05 #1
5 3415
Hi,

CheckBox1.BackColor = Color.Pink

Ken

---------------

"Lumpierbritches" <lu*************@aol.com> wrote in message
news:20***************************@mb-m04.aol.com...
Thank you in advance for any and all assistance. I have a group of checkboxes; when the female gender is checked, I would like to change the backcolor
property to reflect (pink) and if the checkbox male is checked to change the backcolor property to lightblue.

In Access it's Me.Detail.BackColor = (color)

When I try BackColor.Color(Pink) I get it's undeclared or something.

Michael

Nov 20 '05 #2
Ken, Thank you, this however only changes the ckBox.Property BackColor. I'm
trying to change the Forms.Detail.BackColor when the ckBox is checked.
Nov 20 '05 #3
Hi,

The form does not have a detail property. You can change the forms
backcolor.

Ken
-------------
"Lumpierbritches" <lu*************@aol.com> wrote in message
news:20***************************@mb-m22.aol.com...
Ken, Thank you, this however only changes the ckBox.Property BackColor. I'm trying to change the Forms.Detail.BackColor when the ckBox is checked.

Nov 20 '05 #4
How do I change the background color of the form, when the ckBox.checked =
True?

Michael
Nov 20 '05 #5
* lu*************@aol.com (Lumpierbritches) scripsit:
How do I change the background color of the form, when the ckBox.checked =
True?


Why did you start a new thread?!

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

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

Similar topics

1
by: Calan | last post by:
I have a form with some picture boxes as buttons. I'm setting the picture property to a gif file for "normal", and to a different gif for the "pressed" state. This works fine. I get into trouble...
1
by: Chris Bond | last post by:
I have a asp vb.net webform that uses a dataset to bind from a mssql backend via a stored proc and displays its results in a datagrid. In one of the datagrid columns i have a field called status...
1
by: Omar Llanos | last post by:
How can I change the background color of an MDI form? I read in msdn that it takes the background of windows (and not the BackColor) but I wanted to really make sure. I know that in VC it can be...
4
by: Jon Paal | last post by:
need help trying to associate master/detail in ASP.net 2.0 with VWD2k5EE Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs)...
1
by: Firewalker | last post by:
I am attempting to change the backColor property on the previously instantiated buttons FROM a listbox_doubleClick event. I thought it would be something like this: If...
3
by: Mad Scientist Jr | last post by:
Can someone post a clear example of how to change the background color of an individual datagrid cell for a Windows desktop app? (preferably in vb.net) I found some code on how to do this when...
0
by: Yeti | last post by:
Hey everyone..I have no idea why this is happening..its so weird. I am trying to change the backcolor of a panel when a textbox changes value. The code is as follows: Private Sub...
12
by: Henry Jones | last post by:
I have a VS 2005 VB.NET project and would like to change the color of the textbox when the user hovers over it. In a Module I have the following routines: Public Sub Button_Hover(ByRef btnName...
0
by: svx | last post by:
Hello, I am painting individual rows in a ListView control with different colors, depending on state. I am also using a SmallImageList in Detail view. When I set the...
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
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
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...
1
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.