protected override void OnActivated(EventArgs e) { DScanLocatorCtrl.Activate(); }
protected override void OnClosing(CancelEventArgs e) { Properties.Settings.Default.DScanLocatorSize = new Size((int)Width, (int)Height); Properties.Settings.Default.DScanLocatorPosition = new Point((int)Left, (int)Top); DScanLocatorCtrl.Dispose(); }