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.
私のwinformsプロジェクトには、幅300のテキストボックスを持ついくつかのパネルが含まれています。パネルの1つには別のパネルが含まれていますが、内側のパネルのテキストボックスははるかに大きく見えます。内部パネルのサイズを独自のデザイナーで正確に設定すると、テキストボックスが切り取られます。テキストボックスがどのパネルにあっても同じサイズに見えるようにするにはどうすればよいですか? 宜しくお願いします。
テキストボックスの幅を明示的に設定しましたか?
これは、次の 3 つの方法のいずれかで実行できます。
textBox1.Width = 300;