0

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.

2
Contributors
2
Replies
14
Views
6 Years
Discussion Span
Last Post by zarifin99ska
0

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)
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.