Hi fellas,
I've been attempting to create a dynamic GUI, where the plan is to add textboxes from a database file.
So far I've managed to create textboxes from the database file, and save new objects added quite nicely.
Now this is my plan:
1. Add a textbox
2. Write something in the textbox
3. Save the text, remove the textbox after a Enter keypress or a programmatically added button beside the textbox
4. display the text on a Label.
Now, I think step 1 and 2 and 4 is quite easy. But on 3, how do I raise the Keydown/keypress event (as the common method I've seen previously but not sure if there are better ways) for a programmatically added object?
I only understood that adding a RaiseEvent function happens in the code when it detects the presence of the object in the form...
Any tips are greatly appreciated.
Thanks.
Vizier87
I've been attempting to create a dynamic GUI, where the plan is to add textboxes from a database file.
So far I've managed to create textboxes from the database file, and save new objects added quite nicely.
Now this is my plan:
1. Add a textbox
2. Write something in the textbox
3. Save the text, remove the textbox after a Enter keypress or a programmatically added button beside the textbox
4. display the text on a Label.
Now, I think step 1 and 2 and 4 is quite easy. But on 3, how do I raise the Keydown/keypress event (as the common method I've seen previously but not sure if there are better ways) for a programmatically added object?
I only understood that adding a RaiseEvent function happens in the code when it detects the presence of the object in the form...
Any tips are greatly appreciated.
Thanks.
Vizier87