Is there any control or in way to use DateTime slider in windows form
问题 I have a winForm, in which have a requirement to use Silder that could slide on DateTime and grid is refreshed according to the date selected. Is there any control that provides above functionality. Thanks in advance. 回答1: Yes, this control has name TrackBar. You can use it without labels: DateTime beginDate = // DateTime endDate = // datesTrackBar.Maximum = (int)(endDate - beginDate).TotalDays; And filter your grid on Scroll event: private void datesTrackBar_Scroll(object sender, EventArgs e