Solved

C# Timepicker Tool

Posted on 2016-10-02
2
17 Views
Last Modified: 2016-11-09
I am not getting value of time in textbox from the following? Any idea?


private void TimePicker_ValueChanged(object sender, RoutedPropertyChangedEventArgs<object> e)
        {
            TimePicker mytimepicker = new TimePicker();
            textBox.Text = mytimepicker.Value.ToString();
        }
0
Comment
Question by:zia khan
2 Comments
 
LVL 33

Accepted Solution

by:
ste5an earned 500 total points
ID: 41825300
Yup, cause you don't read the value from the existing time picker, but from a new one.

E.g.
private void TimePicker_ValueChanged(object sender, RoutedPropertyChangedEventArgs<object> e)
{
	TimePicker timePicker = (TimePicker)sender;
	textBox.Text = timePicker.Value.ToString();
} 

Open in new window

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now