Deny Switching to Tabpage in a tabcontrol
Posted
by Maneesh
on Stack Overflow
See other posts from Stack Overflow
or by Maneesh
Published on 2010-01-19T09:03:42Z
Indexed on
2010/03/13
15:05 UTC
Read the original article
Hit count: 571
c#
|tabcontrol
I have a form(C#) with a tab control and its has around five tab pages.
each of the tab have a few textboxes.
1) if a User is in say Tab A and edits certain fields i need to validate the text enetered if found invalid then i should not allow any tab switch ? is that possible?
2) Another case could be ... user edits some values and clicks on another tab, on doing so i need to check if the values that were enetered for Tab A is correct or not ? can i do this?
I am a novice to C#... so may be these questions sound very basic any help will be appreciated.
also i want to know what are these events of a tab page
Leave, validated or validating ?
© Stack Overflow or respective owner