Question

Is it possible to make the input of textbox as column header in listview and table column in mysql?

I want to make something like this:

textbox: name

listview columnheader: name

table column: name

another input:

textbox: year

listview columnheader: name    year

table column: name    year

How to achieve this one? I can't search this on net. Just asking if this is possible in vb6 and mysql as database. Thanks!

Was it helpful?

Solution

You can add columns dynamically using the ListViewColumnHeaders.Add() method, something like:

ListView.ColumnHeaders.Add , , Text1.Text, 2000, lvwColumnLeft 

The first two parameters (omitted in my sample) allow you to specify the index (to control the position) and an optional key value to refer to the column later on.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top