c# - Deny Switching to Tabpage in a tabcontrol -


i have form(c#) tab control , has around 5 tab pages.

each of tab have few textboxes.

1) if user in tab , edits fields need validate text enetered if found invalid should not allow tab switch ? possible?

2) case ... user edits values , clicks on tab, on doing need check if values enetered tab correct or not ? can this?

i novice c#... may these questions sound basic appreciated.

also want know these events of tab page

leave, validated or validating ?

i had similar problem, thankfully came across msdn page. set tab selecting event , add logic cancel/continue there.

http://msdn.microsoft.com/en-us/library/system.windows.forms.tabcontrol.selecting.aspx


Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -