Darren Bartrup
Well-known Member
- Joined
- Mar 13, 2006
- Messages
- 1,296
- Office Version
- 365
- Platform
- Windows
ok, here's the problem (and I really hope I explain it clearly):
I have a form which contains a number of textboxes (added at runtime). Each textbox contains between zero and three email addressess seperated by a ';'.
When a textbox is double-clicked a new form appears which shows each email address in a seperate textbox within a frame (again, these are added at runtime).
I put the textboxes within a frame so that a scrollbar can be added if more textboxes need to be added than the form can hold.
Now here's the problem:
Beneath the frame I've put a command button which eventually will allow the user to remove email addressess from the list.
I've set the 'TakeFocusOnClick' option to False so that the user can select an email and press the button.
The ActiveControl points to the frame and not the selected textbox though. How do I achieve this?
Any help is greatly appreciated as usual!
I have a form which contains a number of textboxes (added at runtime). Each textbox contains between zero and three email addressess seperated by a ';'.
When a textbox is double-clicked a new form appears which shows each email address in a seperate textbox within a frame (again, these are added at runtime).
I put the textboxes within a frame so that a scrollbar can be added if more textboxes need to be added than the form can hold.
Now here's the problem:
Beneath the frame I've put a command button which eventually will allow the user to remove email addressess from the list.
I've set the 'TakeFocusOnClick' option to False so that the user can select an email and press the button.
The ActiveControl points to the frame and not the selected textbox though. How do I achieve this?
Any help is greatly appreciated as usual!