Listview in vb6? [closed]

-1

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

    
asked by anonymous 14.07.2016 / 16:43

2 answers

0

In my opinion this language is obsolete, however, you can perform the operation you want.

  "How to display data that was entered in TextBox in a ListView in 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 through the IDE properties you are using.

    
14.07.2016 / 17:29
0

Okay it worked, thank you for the help.

Another question about listview with a very generic example. I have a table of "Students" in the database SQL Server 2008 with the fields "matricula" and name until then I was able to display them in the listview, so with difficulty make the crud "search by student name" and display this result in the listview. How do I do this procedure? Note: The ERP system here from the company where I work was developed in this language so I'm running after learning the most urgent as I'm in training. I'm waiting

    
18.07.2016 / 15:47