Problem with Textbox

Joined
Jul 6, 2006
Messages
4
Programming Experience
3-5
Hi,
I am using Windows TabControl for developing windows application.My requirement is i have 3 tab pages in one tab control. The first page contains text boxes once user type something in these text boxes and press any other tab then we need to ask save the text box changes to the databse and go to next tab.for this i have used Got_Focus method of tabControl but this event is firing every time means the message box is coming infinite loop.If i have used seleced index change event then it will goes to next tab and asking the first tab changes. please let me know how can i proced this situtation.

Thanks
Ramana
 
I am no expert, but I would say that you need to create your own Handler and add a click event to the tab control and raise the event when the user clicks on the tab and set a global variable to true if they save the information. Test for that glabal var before you proceed to the next tab.
 
Back
Top