hi there
i've about 10 textboxes in each tab (5 tabs)
i've an explorer bar on the left and when user clicks on each item the correspoding tab & textbox is focused.
I'd like non-empty textboxes to have a different color in the explorer bar and when the user empties the textbox, i'd like correspoding explorer item to set to default color.
now i know how to do this one by one. but not a good programming practice.
the textboxes are named according to the tabs they belong to.
for example:
1st tab 1st textbox: MyBox0_0
1st tab 2nd textbox: MyBox0_1
...
...
2nd tab 1st textbox: MyBox1_0 ... etc etc..
and items in the explorer bar have the same key values.
group 1 item 1 key: MyBox0_0
group 1 item 2 key: MyBox0_1
how can I write a sub to do this for me?
TIA!!!
(ps did 2 years of vb.net but time passed and I forgot sub routines and etc ( )
i've about 10 textboxes in each tab (5 tabs)
i've an explorer bar on the left and when user clicks on each item the correspoding tab & textbox is focused.
I'd like non-empty textboxes to have a different color in the explorer bar and when the user empties the textbox, i'd like correspoding explorer item to set to default color.
now i know how to do this one by one. but not a good programming practice.
the textboxes are named according to the tabs they belong to.
for example:
1st tab 1st textbox: MyBox0_0
1st tab 2nd textbox: MyBox0_1
...
...
2nd tab 1st textbox: MyBox1_0 ... etc etc..
and items in the explorer bar have the same key values.
group 1 item 1 key: MyBox0_0
group 1 item 2 key: MyBox0_1
how can I write a sub to do this for me?
TIA!!!
(ps did 2 years of vb.net but time passed and I forgot sub routines and etc ( )