public InputBox(string caption, object content) { InitializeComponent(); this.Title = caption; Text.Content = content; this.Loaded += (_, __) => TxtValue.Focus(); }
private void UnsetEditBtn() { BtnConfirm.Enabled = false; BtnRollBack.Enabled = false; TxtValue.Text = string.Empty; TxtValue.Focus(); }
private void BtnNew_Click(object sender, EventArgs e) { var str = TxtValue.Text.Trim(); // Console.WriteLine(pathName); EnvironmentListView.Items.Add(str); envirList.Add(str); TxtValue.Clear(); TxtValue.Focus(); }
public FrmGetDetail(string request) { InitializeComponent(); LblRequest.Text = request; TxtValue.Focus(); }
public void SelText() { TxtValue.Focus(); TxtValue.SelectAll(); }