Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
2つのテキストボックスtext1_aとtext2_aを持つ「FormA」というフォームがあるとします。実行時に「FormB」と呼ばれるフォームを動的に作成するにはどうすればよいですか? text1_b と text2_b
このコードで試してください:
FormA cloningForm = new FormA(); cloningForm.Show(); cloningForm.Name = "FormB"; cloningForm.text1_a.Name = "text1_b"; cloningForm.text2_a.Name = "text2_b";