Hi There
Im trying to create my own User Control for a Date Time Picker
The purpose of creating my own is so that i can have a readonly text box displaying the date everytime the field is not 'Enabled'. this is my preference to swapping the visibliity of seperate text box over A normal Date time picker.
I have called the Control simply CtlDtp
Sadly im having problems straight off the Bat. I have set up Value Property using the code
but i can't Change the Value of the property usingCode:public DateTime Value { get { return Dtp.Value; } set { Dtp.Value = Value;} }
or even by changing the property in the property windowCode:CtlDtp.Value = Convert.ToDateTme("09/08/2012")
there must be something that i am missing
Maany thanks
Ian


Reply With Quote