1,105,384 Community Members

Add Table in listbox.

Member Avatar
DM Galaxy
Junior Poster in Training
65 posts since Aug 2013
Reputation Points: -6 [?]
Q&As Helped to Solve: 2 [?]
Skill Endorsements: 5 [?]
 
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

Attachments
Member Avatar
Hazuan Nazri
Junior Poster in Training
91 posts since Apr 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 8 [?]
Skill Endorsements: 5 [?]
 
0
 

what do you mean by file directory? you said you want to add a table, do you mean database?

Member Avatar
DM Galaxy
Junior Poster in Training
65 posts since Aug 2013
Reputation Points: -6 [?]
Q&As Helped to Solve: 2 [?]
Skill Endorsements: 5 [?]
 
0
 

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

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

Member Avatar
Hazuan Nazri
Junior Poster in Training
91 posts since Apr 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 8 [?]
Skill Endorsements: 5 [?]
 
0
 

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

Member Avatar
oussama_1
Junior Poster
190 posts since Sep 2013
Reputation Points: 9 [?]
Q&As Helped to Solve: 34 [?]
Skill Endorsements: 7 [?]
 
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)
Member Avatar
DM Galaxy
Junior Poster in Training
65 posts since Aug 2013
Reputation Points: -6 [?]
Q&As Helped to Solve: 2 [?]
Skill Endorsements: 5 [?]
 
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?

Member Avatar
oussama_1
Junior Poster
190 posts since Sep 2013
Reputation Points: 9 [?]
Q&As Helped to Solve: 34 [?]
Skill Endorsements: 7 [?]
 
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)
Member Avatar
DM Galaxy
Junior Poster in Training
65 posts since Aug 2013
Reputation Points: -6 [?]
Q&As Helped to Solve: 2 [?]
Skill Endorsements: 5 [?]
 
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.

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: