【问题标题】:How to clear a DevExpress TimeEdit control in WinForms?如何清除 WinForms 中的 DevExpress TimeEdit 控件?
【发布时间】:2019-01-15 11:39:59
【问题描述】:

我在 WinForms 应用程序中有一个 DevExpress TimeEdit 控件。
我希望在用户单击取消按钮时将其清除。

TimeEdit 控件的 ID 是 ma​​kretst

这是控件的图像:

【问题讨论】:

  • 它是 DateTimePicker 吗?
  • 它是 devexpress timeedit 对象吗?
  • 看不到你的图片。你必须复制粘贴你的代码。
  • DateEdit1.EditValue = DBNull.Value 是否有效,否则这有帮助吗? devexpress.com/Support/Center/Question/Details/DQ16840/…
  • 是的,它是 deveexpress 时间控制

标签: c# winforms time devexpress


【解决方案1】:

Fire Button Click 事件并添加此代码:

timeEdit1.EditValue = null;

private void simpleButton1_Click(object sender, EventArgs e)
{
    timeEdit1.EditValue = null;
}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-04-06
    • 1970-01-01
    相关资源
    最近更新 更多