0

I want to know that How I can Add the table in VB?
As for wxample we see in IDM: a43a3a52847803516eab225b30abb76f

As You can see here: there were partition in th listbox.
Same I want to create:

I try to use multicolumn: checked = true and also adjust width of it.
but it not's work for me.
I mean it does not show me the result as I want?

Actually:
I want to add the Details of product in listbox:
same as IDM,
1st column has Product Name:
2nd: File Directory
3rd: size
and etc...
...

If someone can help me then please

3
Contributors
7
Replies
47
Views
3 Years
Discussion Span
Last Post by DM Galaxy
0

No,
I mean Column in the listbox.
as in excel.

1st column: name,
2nd column: email,
3rd column: ip address.
4th.... ... ...
...
...

0

ok, so do you want to add the name, email and ipadress manually or you want to call it from somewhere like database?

0

Manually :

Toolbox
drag drop a listview into your form design
set listview view to details
Edit Columns

Programmatically :

        Me.Size = New Size(700, 300)
        Dim list As New ListView
        list.Size = New Size(684, 262)
        list.View = View.Details
        list.Columns.Add("File Directory")
        list.Columns.Add("name")
        list.Columns.Add("email")
        list.Columns.Add(" ip address")
        Me.Controls.Add(list)

Edited by oussama_1

0

You still want to clarify that How can I add the Entries?
Ya you have shown me that this can be done in this manner but how to add the Different entries on different column?

0

each row in listview is considered a one single item, in listview a different columns doesn't mean a different items
use subitems

List.Items(index).SubItems.Add(string)
0

ok,
I have done it so...
And etc work...
You show me to create the table list and add the items.
But can you tell me that what I have to do for The other two buttons:?
Delete Entry. (whole Row)
Delete Item (Delete sub item)
Edit Entry.

If you know this then please reply so that I can add the button delete history on my app.

This question has already been answered. Start a new discussion instead.
Please be thoughtful and detailed and be sure to adhere to our posting rules.