private void MainWindow_Load(object sender, EventArgs e) { promptTextBox.Prompt = ""; promptTextBox.MouseWheel += promptTextBox_MouseWheel; HistoryCollection his = Properties.Settings.Default.CommandHistory; if (his != null) { promptTextBox.History = his.ToArray(); } this.Size = Properties.Settings.Default.MainWindowSize; this.Location = Properties.Settings.Default.MainWindowLocation; this.WindowState = Properties.Settings.Default.MainWindowState; }