custom control
-
well, we make a custom control . its a custom date time control . it has three textbox and a DateTimePicker . The user can either enter date through the textbox or select a date from the DateTimePicker. On the validating event of the control,the code checks if the date entered through the textbox is valid or not. if the date is not valid the event sequence is cancelled so that the control doesnot loose the focus . well the control works fine . BUT THE PROBLEM IS , when the control is used in TabedPane,it does fire validating event but doesnot retain focus.
-
well, we make a custom control . its a custom date time control . it has three textbox and a DateTimePicker . The user can either enter date through the textbox or select a date from the DateTimePicker. On the validating event of the control,the code checks if the date entered through the textbox is valid or not. if the date is not valid the event sequence is cancelled so that the control doesnot loose the focus . well the control works fine . BUT THE PROBLEM IS , when the control is used in TabedPane,it does fire validating event but doesnot retain focus.
First, find what what's stealing the focus. See if there's some way to programmatically prevent that from receiving focus. Or, manually add focus through code when you need it.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Virginia Tech Shootings, Guns, and Politics The apostle Paul, modernly speaking: Epistles of Paul Judah Himango