Listview in the vb6?

Asked

Viewed 177 times

-1

I started programming with this language and would like a help of how to display data that was inserted in textbox in a listview in vb6?

2 answers

0


In my opinion this language is obsolete, however it is possible to carry out the operation you want.

"How to display data that has been entered into Textbox in a Listview in the VB6"

//Obter o texto do Textbox
Dim text As String = TextBox1.Text

//ColumnHeader associado ao texto
ListView1.ColumnsHeaders.Add("Coluna1")

//Adicionar texto ao ListView na Coluna1
ListView1.ListItems.Add(text)

For this question this is the resolution. You can also add columns to the control via the properties of the IDE you’re using.

0

Okay it worked, thanks for the help.

Another question about listview with a very generic example. I suppose I have a table of "Students" in the SQL server 2008 database with the fields "matricula" and name so far managed to display them in the listview, with difficulty to crud "search by student name" and display this result in listview. How do I do this? Obs.: The ERP system here of the company where I work was developed in this language so I’m running to learn as urgently as possible, because I’m in training. On hold

  • The following are good studies, http://www.macoratti.net/lstview2.htm http://www.macoratti.net/vb_tdl1.htm http://www.macoratti.net/listview.htm http://www.macoratti.net/lstv_vb.htm http://www.macoratti.net/lstview3.htm

Browser other questions tagged

You are not signed in. Login or sign up in order to post.