在bindingNavigator1中加入具有更好体验性的DateTimePicker

public Form1()
{
   InitializeComponent();
   bindingNavigator1.Items.Add(
       new ToolStripDateTimePicker());
}

public class ToolStripDateTimePicker
   : ToolStripControlHost
{
   public ToolStripDateTimePicker()
        : base(new DateTimePicker()) {}
}

你可能感兴趣的:(datetimepicker)