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!

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top