我在winforms中使用WeifenLuo Dockpanel Suite。
我有 2 个表单(主表单和子表单),主表单有停靠面板,子表单将停靠在此停靠面板中。
在子窗体中,除了 DockChanged 和 DockStateChanged 之外,没有任何事件被触发
private: Void CamWindow_ResizeBegin(System::Object^ sender, System::EventArgs^ e) {
Console::WriteLine("Resize begin"); //doesn't work, tried many other mouse events as well
}
private: Void CamWindow_DockStateChanged(System::Object^ sender, System::EventArgs^ e) {
Console::WriteLine("Dock state Changed"); //works
}
我不认为这是错误,如何使这些事件触发?