【问题标题】:Why is my DatePicker (BunifuUI) not showing when clicked on client?为什么单击客户端时我的 DatePicker (BunifuUI) 不显示?
【发布时间】:2020-10-13 09:03:54
【问题描述】:

我有一个带有 Bunifu 日期选择器的 C# WPF 应用程序。当我单击日期选择器“下拉菜单”时,日历将显示。这也适用于其他客户。但是,我现在有一个无法单击下拉列表的客户。或者至少,什么都没有发生。不会弹出日历窗口。

由于我在编程方面不是很好,所以我不知道它会是什么。代码对我和其他客户都有效。

// DateProductivity
// 
this.DateProductivity.BackColor = System.Drawing.Color.SeaGreen;
this.DateProductivity.BorderRadius = 0;
this.DateProductivity.ForeColor = System.Drawing.Color.White;
this.DateProductivity.Format = System.Windows.Forms.DateTimePickerFormat.Long;
this.DateProductivity.FormatCustom = null;
this.DateProductivity.Location = new System.Drawing.Point(96, 28);
this.DateProductivity.Name = "DateProductivity";
this.DateProductivity.Size = new System.Drawing.Size(210, 35);
this.DateProductivity.TabIndex = 0;
this.DateProductivity.Value = new System.DateTime(2019, 5, 27, 22, 31, 49, 0);

【问题讨论】:

  • 两个Bunifu.dll文件和.exe文件在同一个文件夹中
  • 评论此行并检查this.DateProductivity.Location = new System.Drawing.Point(96, 28);
  • @RaoHammas 很快就会试试这个!

标签: c# wpf datepicker bunifu


【解决方案1】:

注释掉 this.Dateproductivity 的解决方案不起作用。

但是,我将 BunifuUI 中的 datpicker 替换为常规的 datepicker。现在它似乎工作了。

【讨论】:

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