zia khan

zia khan

  • NA
  • 51
  • 791

Store Timepicker value in Textbox

Oct 2 2016 9:29 AM
Hi.
I have a timepicker from xceed toolkit in WPF. I want to get the time selected by user through timepicker in a textbox. My code is below which is not getting me what i need.
Thanks
 
  1. private void TimePicker_ValueChanged(object sender, RoutedPropertyChangedEventArgs<object> e)  
  2.        {  
  3.            TimePicker mytimepicker = new TimePicker();  
  4.   
  5.   
  6.            textBox.Text = mytimepicker.Value.Value.ToString();  
  7.            
  8.        }  

Answers (4)