C#中父窗体和子窗体的[ToolStrip]控件合并问题

2024-12-18 02:30:26
推荐回答(1个)
回答1:

改成如下即可
if ((ActiveMdiChild as ITools) != null && (ActiveMdiChild as ITools).CipherToolStrip != null)