/// <summary> /// 显示白板 /// </summary> public void ShowWhiteBoard() { if (this.InvokeRequired) { ShowWhiteBoardDelegate d = new ShowWhiteBoardDelegate(ShowWhiteBoard); this.BeginInvoke(d, new object[] { }); } else { this.Show(); } }
/// <summary> /// 显示白板 /// </summary> public void ShowWhiteBoard() { if (this.InvokeRequired) { ShowWhiteBoardDelegate d = new ShowWhiteBoardDelegate(ShowWhiteBoard); this.BeginInvoke(d, new object[] { }); } else { this.Show(); //白板显示过后再获取画图板,否则会出现不能画到任务栏上 if (graphics == null) { graphics = Graphics.FromHwnd(this.Handle); } } }