例 次のコード例では、派生クラス を使用 TextBoxして、垂直スクロール バーを含む複数行 TextBox コントロールを作成します。 この例では、および WordWrap プロパティをAcceptsTabAcceptsReturn使用して、複数行のテキスト ボックス コントロールをテキスト ドキュメントの作成に役立てることもできます。 public: void CreateMyMultilineTextBox() { // Create an instance of a TextBox control. TextBox^ textBox1 = gcnew TextBox; // Set the Multiline property to true. textBox1->Multiline = true; // Add vertical scroll bars to the TextB
![TextBoxBase クラス (System.Windows.Forms)](https://cdn-ak-scissors.b.st-hatena.com/image/square/d6e4cb632c7025e9f5e05fd314fbf6dcd6144e8d/height=288;version=1;width=512/https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fmedia%2Fopen-graph-image.png)