Return textbox from container in VB6
Posted on 2007-11-23
In my VB6 app, the user employs 'Drag & Drop' to move a textbox from its original position to one of 20 different picture boxes which act as containers. I'd like to have a "restart" option for mid-game. I tried to create a public module which, when called, would put all the textboxes back to their original (start) positions. I tried to use code like:
Form1.Title(0).Move 78, 102
to bring the textbox 'Title(0)' back to Left 78, Top 102 . The code seems to be ignored. Is there something special about 'Container' behavior which has to be released for my textboxes to move back where they started? Is there some better way to restart - without 'End' ing the code, which I don't want to do.