public HourlyLog(String time, AlertForm parent) { InitializeComponent(); labelTime.Text = time; this.Time = time; this.Parent = parent; //focus this window and the text box //Activate(); //doesn't work! TextBoxLog.Focus(); }