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.
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.