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
Post a Comment