Horizontal->ScrollBars = ScrollBars::Horizontal Increase the size of the Height property to ensure the be true and the WordWrap property must be false. For horizonal scroll bars, the Multiline property must Set the location of the four textboxes. String^ startString = "The scroll bar style for my textbox is: " Create a string for the Text property. This->none = gcnew System::Windows::Forms::TextBox This->both = gcnew System::Windows::Forms::TextBox This->horizontal = gcnew System::Windows::Forms::TextBox This->vertical = gcnew System::Windows::Forms::TextBox System::Windows::Forms::TextBox^ horizontal System::Windows::Forms::TextBox^ vertical Call the SetFourDifferentScrollBars method in the form's constructor or Load event-handling method. The following code example demonstrates how to use the ScrollBars enumeration.To run the example, paste the following code in a form. Both horizontal and vertical scroll bars are shown.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |