子窗体本身给隐藏了:
public RightForm right; //成员列表窗体 public BottomForm bottom;//作答窗体 public PreviewForm prev;// prev = new PreviewForm(this); prev.Show(this.dockPanel1); right.Show(this.dockPanel1, WeifenLuo.WinFormsUI.DockState.DockRightAutoHide); bottom.Show(this.dockPanel1, WeifenLuo.WinFormsUI.DockState.DockBottomAutoHide);
然后设置了一个事件,当这个事件触发之后再调用这里的子窗体:
prev = new PreviewForm(this); prev.Show(this.dockPanel1); right.Show(this.dockPanel1, WeifenLuo.WinFormsUI.DockState.DockRightAutoHide); bottom.Show(this.dockPanel1, WeifenLuo.WinFormsUI.DockState.DockBottomAutoHide);
然后就线程就出错了,我估计我这样写是不对的,求大神指教
主要是这样的话,然后程序直接奔溃了