Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15667

conditional formatting of textbox font on a form

$
0
0
Hi,

Hope you are safe and well :)

I have a form which contains number of textboxes, among which 32 are populated by data grid values, which is turn is populated by a sql query. All this works fine, however what I would like is some kind of loop that goes through the text boxes and if the value is <0 then make that textbox font colour red and green if >= 0.

There are other textboxes on the form for example the title which I believe you wont be able to convert to integer if that's what is needed.

This will save me doing an if statement for every text box I would like to check.

Thank you in advance.

Viewing all articles
Browse latest Browse all 15667

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>