I have created by own Texbox class and i have the following override:
Expand|Select|Wrap|Line Numbers
- virtual bool IsInputKey(Keys keyData) //override
- {
- if (Keys::Tab == keyData)
- {
- return true;
- }
- else
- {
- return false;
- }
- //check keyData is key value and return true or false
- //return false;
- }
The problem is, i dont know how to handle the LostFocus/GetFocus events. How do i handle this and pass focus to the next control. Remembering that this is done within my Textbox class, but i could have other types of controls instantiated on the form (comboboxes etc).
At present my control remanins on in the textbox and i have to manually click out of the controls to the next one.
IM USING VISUAL STUDIO 2005 on Vista Ulitmate