| ■65264 / ) |
別フォームのコントロール操作 |
□投稿者/ 震えるひよこ (8回)-(2013/02/15(Fri) 15:08:53)
|
分類:[C#]
いつもお世話になってます。 C#2010でプログラムをしております。
Form1に dataGridView1・dataGridView2・dataGridView3と 設置しております。
Form2に radioButton1・radioButton2・radioButton3と 設置しております。
dataGridViewのイベントCellContentDoubleClickで Form2をオープンしているのですが、その時
Form1のdataGridView1 → Form2のradioButton1をChecked = true; Form1のdataGridView2 → Form2のradioButton2をChecked = true; Form1のdataGridView3 → Form2のradioButton3をChecked = true;
としたいのですが、 Form2.radioButton1.Checked = true; ではアクセスできない保護レベルになっています。とエラーが出ます。
色々検索したんですが、これだ!という情報が見つけられず困っています。
Form1からForm2のコントロールの操作方法を 教えてください。m(_ _)mアドバイスお願いします。
|
|