On my first tab the user enter some information, which is checked as they enter the info. I also have a flexgrid on the form. What I need is that the user must not be allowed to move to other tabs if the is information displayed on the FG. In the tabstrip_click I check if there is info in FG, in not well fine, otherwise I msgbox a message.
the problem is: I get the message displayed but the program shows the second or third tab selected not the first. I need to show that the first tab is selected.
Use BeforeClick Event. It has single argument Cancel. Set it to True and change will not happen. Notice however, that if you use MsgBox in BeforeClick event, Click event will not occur.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.