Combobox validating Adult descreet webcam chat
You use regular expressions with the Reg Exp Validator.
I can get the permissions and check them OK, but I don't know how tomanage the combobox. Selected Index Changed isn't much help because it fires off when theform opens because the value is being set programatically.
My code: private void cmb Status_Validating(object sender, System. Cancel Event Args e) Using Win Forms, certain users may change the value in a combobox,others may not. I need to check the user's rights before committing his or herchanges in the box and restore the previous value if he or she is notallowed (or not let the value be changed in the first place). Now the only thing I need to be able to do is reset the original value and allow the user to continue.
For example, you could use a data model that contains three fields that represent the day, month, and year portions of a date, or three Text Input controls that let a user enter a date as three separate fields.
Even if you specify a date format that excludes a day, month, or year element, you must specify all three fields to the validator.