listview

V

Vishruth Ranjit

Hi,

Suppose we have 5 textboxes and one commandbutton.as soon
as we click that button the contents should be added to
our listview.So for that what's to be done.
I would appreciate if u could provide me the coding.

Thanking You.
 
A

Ayende Rahien

Vishruth Ranjit said:
Hi,

Suppose we have 5 textboxes and one commandbutton.as soon
as we click that button the contents should be added to
our listview.So for that what's to be done.
I would appreciate if u could provide me the coding.

ListView.Items.Add(textBox1.Text);

Other then that, either ask a more spesific question, or give me your
teacher email, so I can send the homework directly to him.
 
J

Jan Tielens

In the click event handler of the button:
ListViewItem li;

li = new ListViewItem(textbox1.Text);
listView1.Items.Add(li);

li = new ListViewItem(textbox2.Text);
listView1.Items.Add(li);
 
H

Herfried K. Wagner [MVP]

* "Ayende Rahien said:
ListView.Items.Add(textBox1.Text);

Other then that, either ask a more spesific question, or give me your
teacher email, so I can send the homework directly to him.

LOL
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top