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

Where to look for textbox background color change at runtime

Hello!

I have been assigned for the first time an adp Access project and so
far I have managed to make the changes needed for some requirements.
However, I am struggling to find the place where the application
changes the color of the background of a textbox. Here the explanation
goes:

This is a form bound to an SQL view. The detail section has several
fields, one of them being a textbox of name "Type". I checked its
properties and the color for the background (Back Color property in
the Format tab) is 16777215 (white). When the form is loaded the
background color changes to yellow when the value of "Type" is "W"
(and the font even changes to Bold!!). I am sure the previous
programmer had a reason for that but I have searched the string "Type"
in the whole project and I could not find any place where this
property was modified by code.

Does anybody have an idea where I can look for the specific place
where the application makes changes in the properties of the textbox
when it loads its value? All hints will be greatly appreciated!

Regards,

Jose R. Castro
Nov 12 '05 #1
3 8781
Look at the OnCurrent event of the form.

"Roberto Castro" <jr********@yahoo.com> wrote in message
news:4e**************************@posting.google.c om...
Hello!

I have been assigned for the first time an adp Access project and so
far I have managed to make the changes needed for some requirements.
However, I am struggling to find the place where the application
changes the color of the background of a textbox. Here the explanation
goes:

This is a form bound to an SQL view. The detail section has several
fields, one of them being a textbox of name "Type". I checked its
properties and the color for the background (Back Color property in
the Format tab) is 16777215 (white). When the form is loaded the
background color changes to yellow when the value of "Type" is "W"
(and the font even changes to Bold!!). I am sure the previous
programmer had a reason for that but I have searched the string "Type"
in the whole project and I could not find any place where this
property was modified by code.

Does anybody have an idea where I can look for the specific place
where the application makes changes in the properties of the textbox
when it loads its value? All hints will be greatly appreciated!

Regards,

Jose R. Castro

Nov 12 '05 #2
As mentioned, it could be in the OnCurrent event of the form. It could also
be in the AfterUpdate event of the control and a couple of other places. The
first place I'd look though would be in Conditional Formatting. Open the
form in design mode, right click the control, and choose Conditional
Formatting...

--
Wayne Morgan
"Roberto Castro" <jr********@yahoo.com> wrote in message
news:4e**************************@posting.google.c om...
Hello!

I have been assigned for the first time an adp Access project and so
far I have managed to make the changes needed for some requirements.
However, I am struggling to find the place where the application
changes the color of the background of a textbox. Here the explanation
goes:

This is a form bound to an SQL view. The detail section has several
fields, one of them being a textbox of name "Type". I checked its
properties and the color for the background (Back Color property in
the Format tab) is 16777215 (white). When the form is loaded the
background color changes to yellow when the value of "Type" is "W"
(and the font even changes to Bold!!). I am sure the previous
programmer had a reason for that but I have searched the string "Type"
in the whole project and I could not find any place where this
property was modified by code.

Does anybody have an idea where I can look for the specific place
where the application makes changes in the properties of the textbox
when it loads its value? All hints will be greatly appreciated!

Regards,

Jose R. Castro

Nov 12 '05 #3
Wayne, thanks for your help. Conditional formatting was used to make
this change at runtime.

Jose R. Castro

"Wayne Morgan" <co***************************@hotmail.com> wrote in message news:<DS******************@newssvr16.news.prodigy. com>...
As mentioned, it could be in the OnCurrent event of the form. It could also
be in the AfterUpdate event of the control and a couple of other places. The
first place I'd look though would be in Conditional Formatting. Open the
form in design mode, right click the control, and choose Conditional
Formatting...

--
Wayne Morgan
"Roberto Castro" <jr********@yahoo.com> wrote in message
news:4e**************************@posting.google.c om...
Hello!

I have been assigned for the first time an adp Access project and so
far I have managed to make the changes needed for some requirements.
However, I am struggling to find the place where the application
changes the color of the background of a textbox. Here the explanation
goes:

This is a form bound to an SQL view. The detail section has several
fields, one of them being a textbox of name "Type". I checked its
properties and the color for the background (Back Color property in
the Format tab) is 16777215 (white). When the form is loaded the
background color changes to yellow when the value of "Type" is "W"
(and the font even changes to Bold!!). I am sure the previous
programmer had a reason for that but I have searched the string "Type"
in the whole project and I could not find any place where this
property was modified by code.

Does anybody have an idea where I can look for the specific place
where the application makes changes in the properties of the textbox
when it loads its value? All hints will be greatly appreciated!

Regards,

Jose R. Castro

Nov 12 '05 #4

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

Similar topics

11
by: Mr. B | last post by:
While at first this may seem a simple tast, it has plagued me for a while... What I want to do is to have the background colour of something like a TextBox to change from (say) White to Yellow to...
3
by: Steve | last post by:
I have windows form with the few TextBox controls. Under certain conditions I disable or enable this controls by setting Enable property to true or false: For example: this.m_txtIP.Enabled =...
2
by: tshad | last post by:
I have a screen that is displaying an asp:textbox that has about 20 lines of text with line feeds that I read out of my Database. This displays fine as a multiline textbox. It doesn't as a...
8
by: tshad | last post by:
I cannot seem to get the asp:textbox to use classes. Style works fine. I am trying to set the textbox to act like a label in some instance so it doesn't have a border, readonly and the background...
2
by: Simon | last post by:
I've only recently got started using VB.net Compact Framework, and I'm struggling to create a read-only Textbox with a white background. Even though I can set the background colour of a textbox,...
1
by: ngpost1 | last post by:
I have a Crystal Reports.Net report being generated from my C# application. I would like to change the background color of the details section (not the text mind you) of the report on certain...
0
by: sjickells | last post by:
Hi I am having a problem using asp:TextBox's in a transparent table. I have a background image on the page and a table in the middle of the page. I have set the background colour of the table...
1
by: da5namroi | last post by:
One of my my textboxes has a nice white background when running on an XP machine, but becomes dark blak when running on a Vista. Does anybody know how I can fix this? Thank you.
8
by: Marco Pais | last post by:
Hi there. How can I change the background color of a textbox when it gets the focus? I can handle the "Enter" event and do this private void txtDummie_Enter(object sender, EventArgs e) { ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...

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.