Home

SpeakComputers.com | Text-to-Speech Software

Natural sounding TTS voice support | Cepstral TTS voices | Text to MP3 | Natural Readers

Text to Speech Software Text to Speech Voices SpeakComputer Text to Speech Software

C++ ListView Control.

The C++ System.Windows.Forms.ListView control enabled you to display a list of items from which the user can select one or multiple items from the list. Each item displayed within the ListView can have an optional icon associated with the item type it is representing. You can set the view property to Large Icons, Small Icons, Details, List and Tile.

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

Creating an new C++ Windows forms ListView.
ListView^ listview = gcnew ListView;

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

Setting the size of the C++ ListView Control.
listview->Size = System::Drawing::Size(150, 150);

Setting the view style for the C++ ListView Control.
listview->View = View::List;

Adding a C++ ListView control to the form.
Controls->Add(listview);

Adding Listview items to the C++ ListView Control.
ListViewItem^ li1 = gcnew ListViewItem();
li1->Text = "DELL";
ListViewItem^ li2 = gcnew ListViewItem();
li2->Text = "HP";
ListViewItem^ li3 = gcnew ListViewItem();
li3->Text = "SONY";

listview->Items->AddRange(gcnew cli::array<ListViewItem^ >(3) {li1, li2, li3});


C++ ListView control Tutorial.
Top of page
Text to Speech Speech synthesis Software TTS Software
Copy Right 2006 SpeakComputers.com - All Rights Reserved.
About Privacy Policy TTS Resouces
Free Text to Speech software
Free Text to Speech Software