How can we change a controls name in runtime??
I a have a set of textboxs that are created by the press of a button, and also can be deleted by the press of a button, and are turned on/off (visible), by the selection on a combobox...
Since deleting an item in a combobox automaticaly resizes it, I need to re-associate the correct textbox to the correct combobox item...
like this
item0 is associated with textbox1
item1 is associated with textbox2
item2 is associated with textbox3
item3 is associated with textbox4
if i remove item 1 and therefore remove textbox2
item2 automatically becomes item2 so i need to re-name textbox3 to textbox2
and textbox4 to textbox3
HOW????
It doesnt seem to be possible to rename the controls...
I a have a set of textboxs that are created by the press of a button, and also can be deleted by the press of a button, and are turned on/off (visible), by the selection on a combobox...
Since deleting an item in a combobox automaticaly resizes it, I need to re-associate the correct textbox to the correct combobox item...
like this
item0 is associated with textbox1
item1 is associated with textbox2
item2 is associated with textbox3
item3 is associated with textbox4
if i remove item 1 and therefore remove textbox2
item2 automatically becomes item2 so i need to re-name textbox3 to textbox2
and textbox4 to textbox3
HOW????
It doesnt seem to be possible to rename the controls...