Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/303.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 正在查找可以表示时间值的WinForms控件_C#_Winforms_Timer_Controls - Fatal编程技术网

C# 正在查找可以表示时间值的WinForms控件

C# 正在查找可以表示时间值的WinForms控件,c#,winforms,timer,controls,C#,Winforms,Timer,Controls,我正在寻找可以表示以下值的第三方开源或商业WinForms控件: 任务的总持续时间。 时间流逝。 剩下的时间 无法找到。Infragistics在Winforms中非常流行,并且可以选择DateTimePicker ... setting the MaskInput to {time} should get the behavior you are looking for. If you only set the FormatString property, the the time will

我正在寻找可以表示以下值的第三方开源或商业WinForms控件:

任务的总持续时间。
时间流逝。
剩下的时间


无法找到。Infragistics在Winforms中非常流行,并且可以选择DateTimePicker

... setting the MaskInput to {time} should get the behavior you are looking for. 
If you only set the FormatString property, the the time will display only when 
the control is in edit mode (when the cursor is in the control).

但我认为第三方会得到报酬

如果您正在查找windows内部控件,则DatePicker具有可设置为时间的属性格式。确保将“决战”设置为True

private void dateTimePicker1_ValueChanged(object sender, EventArgs e)
{
    MessageBox.Show(dateTimePicker1.Value.TimeOfDay.ToString());
}

Infragistics在Winforms中非常流行,并且可以选择DateTimePicker

... setting the MaskInput to {time} should get the behavior you are looking for. 
If you only set the FormatString property, the the time will display only when 
the control is in edit mode (when the cursor is in the control).

但我认为第三方会得到报酬

如果您正在查找windows内部控件,则DatePicker具有可设置为时间的属性格式。确保将“决战”设置为True

private void dateTimePicker1_ValueChanged(object sender, EventArgs e)
{
    MessageBox.Show(dateTimePicker1.Value.TimeOfDay.ToString());
}

System.Diagnostic
名称空间中有一个名称空间,您应该能够使用它来创建自己的控件

秒表实例可以测量一个间隔的运行时间,也可以测量多个间隔的总运行时间。在典型的秒表场景中,调用Start方法,然后最终调用Stop方法,然后使用appeased属性检查经过的时间


System.Diagnostic
名称空间中有一个名称空间,您应该能够使用它来创建自己的控件

秒表实例可以测量一个间隔的运行时间,也可以测量多个间隔的总运行时间。在典型的秒表场景中,调用Start方法,然后最终调用Stop方法,然后使用appeased属性检查经过的时间


你试过定时器控制器吗?这是由标准控件支持的。如果您只想显示它,请使用普通标签。如果您想允许输入或编辑,请使用MaskedEditBox。您是否尝试过计时器控件这是标准控件非常支持的。如果您只想显示它,请使用普通标签。如果您想允许输入或编辑,请使用MaskedEditBox。这正是我要找的。也许我应该把这个问题说得更清楚些。谢谢。这正是我想要的。也许我应该把这个问题说得更清楚些。谢谢