Hi, can someone help me?

i have 5 textbox, and 5 column in listview, how can i put the data from textbox into columns?

and also using F5 key( key event) to add the data(not using butons).

Thanks.

Recommended Answers

All 2 Replies

Assume
textbox1 name is Textbox1
textbox2 name is Textbox2
.......
.......
listview name is ListView1
End Assume

Google for the Ascii value for F5 Key and use the Keypress event. Then you can use the code below to do the insertion.

dim li as new ListViewItem
li = ListView1.items.add(Textbox1.Text)
li.subitems.add(Textbox2.Text)
....
....
li.subitems.add(Textbox5.Text)
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.