SpeakComputers.com online store
Electronics Software Computers Handhelds Laptops and Tablets Mobile Phones Digital Cameras Camcorders Games Music Books Sport Mens and Womens Watches Power Tools Household appliances

PRODUCTS

Software Downloads 2012 Software Mac Software Security Student Editions Windows 7 Office 2010

C++ TextBox Control.

The C++ TextBox control is typically used by the user to enter some text into part of the application or form. More commonly used to enter small text data, it can be used with the multiline feature for longer text fields. You can also limit the text length field as well as use the control for special fields as passwords. The text entered in the textbox field can be used to update a database field, written to new file or update an exiting file. It is a control that is found in most if not all software programs.

Namespace: System::Windows::Forms
System.Windows.Forms (in system.windows.forms.dll)

Creating an new C++ Windows forms TextBox.
TextBox^ textbox = gcnew TextBox;

Assigning a new location for the C++ Windows Forms TextBox.
textbox->Location = Point(10,10);

Assigning a text value to the C++ TextBox control.
textbox->Text = "Please enter your name";

Setting the size of the TextBox Control.
textbox->Size = System::Drawing::Size(200, 23);

Adding a C++ Button control to the form.
this->Controls->Add(textbox);



C++ TextBox control Tutorial.
Home About Privacy Policy Resouces Search

Copy Right 2006 SpeakComputers.com - All Rights Reserved.