towerbit

Results 6 comments of towerbit

Rename your project, remove any dot in it.

You can not build the linux version on windows at all since "https://service.electron.build/find-build-agent" is out of service. Try to build the linux version on linux or WSL.

OnDoubleClick event can not be fired neither. - Version: 13.5.1 - .Net: 5.0 - Target: Win10 - Sample code: > Electron.Tray.OnDoubleClick += (args, rect) => > { > Console.WriteLine("Electron.Tray.OnDoubleClick"); >...

实际修改的是 Control.cs, Form.cs 和 UserControl.cs 以及验证功能的 Form4.cs 这4个文件

很高兴从更新中看到 FormBase 中通过 this.Close += FormBase_Close; 可以拦截 ESC 关闭事件了 我在这个基础上,做了一点优化,供参考。 FormBase.cs ==== // 通常只有 ShowDialog() 打开窗口,才允许ESC关闭窗口 public bool AllowEscapeClose { get; set; } = false; private void FormBase_Close(object sender, EventArgs...

我尝试把对话框移出 FormBase_Close,发现就无法拦截 Esc 关闭的动作了,请问这是为什么呢? 修改的目的是希望实现仅 Form.ShowDialog 时才支持 Esc 取消关闭,Form.Show 直接忽略掉 Esc 关闭这个动作 ``` /// /// 默认为 Window 模式,不允许 Esc 关闭对话框 /// 仅 Form.ShowDialog 时,需设置 AllowEscFormClose = true, 允许 Esc 关闭对话框...