sam002:textBoxのテスト
テキストボックスの中身をメッセージボックスに出力するテスト
private string strFormName; private void F_sam02_Load(object sender, System.EventArgs e) { //フォーム名の格納 strFormName = "sam02"; this.Text = strFormName; //テキストボックス初期化 //textBox1.Text = ""; textBox1.Clear(); textBox1.ImeMode = ImeMode.Disable; } private void button1_Click(object sender, System.EventArgs e) { //メッセージボックスの表示 MessageBox.Show(textBox1.Text,strFormName); } |
最初の画面
ボタンを押した後