C# Beginners Tutorial - 91 - ListView Control pt 1

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

thanks, i was searching for this stuff and finally ur tutorial came for rescue.

arpitnotu
Автор

This is great stuff, thank you man!!!

IskeSRB
Автор

Exactly what I was looking for! But email addresses can be long. Is there a way to anchor just that third column so that if the form is resized, the column expands accordingly?

spicebrush
Автор

I would create an array of the strings I want to add to the listview and then just add them:

string[] row = { comboBox1.Text, textBox1.Text };
ListViewItem lvi = new ListViewItem(row);
listView1.Items.Add(lvi);

RealMcDudu
Автор

My VS (2015) is saying, that there is an constructore missing, who would accept the arguments (Textboxes). What is the differemce in VS 2015? How can i do that there?

LautHelmchen
Автор

Or you can do
TextBox1.Text.Clear();
and so on.

xMercuryx
Автор

Oh my bad. It's suppose to be "textBox1.Clear();"

xMercuryx
Автор

doesn't work like that. It returns the error " 'string' does not contain a definition for 'clear' and no extension method 'clear' accepting a first argument of type 'string' could be found"

=) turns out that cant be used in C#, i would recommend testing out code before you go blabbing out like that and make yourself look like a idiot lol

ThatGuyNamedBender