代码之家  ›  专栏  ›  技术社区  ›  Gaurav_0093

如何清除winforms中的devexpress timeedit控件?

  •  -1
  • Gaurav_0093  · 技术社区  · 6 年前

    我在Winforms应用程序中有一个devexpress timeedit控件。
    我希望在用户单击“取消”按钮时将其清除。

    timeedit控件的id是 马克斯特

    下面是控件的图像:

    enter image description here

    1 回复  |  直到 6 年前
        1
  •  0
  •   Chandra Shakar    6 年前

    启动按钮单击事件并添加此代码:

    timeEdit1.EditValue = null;
    

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