Tab control validating

posted by | Leave a comment

I'm using the Error Provider component todisplay error information which I set in the Validating handlers forthe controls that need validating. Enable Allow Focus Change and then in mybutton that I want the validation performed in (I have a save buttonin each tab) I was hoping I could use the Validate Children method toinvoke all of those handlers.The problem is that Validate Childrenwould seem to only apply to the form as a whole and I want to treatthe controls on each tab separately.

I think a good rule to follow when using the validation controls is that if a control is used for nothing but navigation it should not cause validation to occur.

If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.

Hello Thomas, When you give the Tab Control a Content Template and bind it to some collection of items, then switching between tabs makes the Tab Control unload the content of the last active item and load the content of the newly selected item.

According to the docs I should be able to call the method on any class that is a Container Control but I dont know of any classes that are derived from that one! Hi, I'm very new to windows forms and C# so this is my first post in thisgroup :-) I have a very simple forms app with a tab control containingtwo tabs.

Its related to football and one tab relates to players andthe other tab to teams.

Leave a Reply

Live free chat adult web cams