Click here to Skip to main content
15,892,005 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: ERROR When I Show Openfiledialog.ShowDialog() Pin
Sang Nguyen Minh20-Jul-13 6:21
Sang Nguyen Minh20-Jul-13 6:21 
QuestionEncryption AES256 Trouble.. Pin
markapk18-Jul-13 7:56
markapk18-Jul-13 7:56 
AnswerRe: Encryption AES256 Trouble.. Pin
Kenneth Haugland18-Jul-13 20:09
mvaKenneth Haugland18-Jul-13 20:09 
GeneralRe: Encryption AES256 Trouble.. Pin
markapk18-Jul-13 22:04
markapk18-Jul-13 22:04 
GeneralRe: Encryption AES256 Trouble.. Pin
Matty2229-Jul-13 19:16
Matty2229-Jul-13 19:16 
GeneralRe: Encryption AES256 Trouble.. Pin
markapk29-Jul-13 20:21
markapk29-Jul-13 20:21 
GeneralRe: Encryption AES256 Trouble.. Pin
markapk8-Aug-15 11:41
markapk8-Aug-15 11:41 
QuestionHow to get ListView item Icons ? Pin
Biplob Singha Shee17-Jul-13 7:34
Biplob Singha Shee17-Jul-13 7:34 
Hi,
I would like to get filenames from a directory and populate its name and icons in a listview.

I tried for the filename and succeded.

VB
Private Sub PopulateData() '// Filename (user.dat) into listview
    Dim FilePath As String = Application.StartupPath & "\users\"
    Dim ContentItem As String = Dir(FilePath & "*.dat")
    ListView1.Items.Clear()
    If ContentItem = "" Then
        MsgBox("No users found.")
    End If
    Do Until ContentItem = ""
        ListView1.Items.Add(ContentItem)
        ContentItem = Dir()
    Loop
End Sub

and I am populating the listview in form loading event.
VB
Private Sub FormCreateUser_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    PopulateData()
End Sub

"users" is a folder from where I want to get the filename details.

But I want to get the file icons also and I don't know how to do this.

Please help.

modified 17-Jul-13 13:41pm.

AnswerRe: How to get ListView item Icons ? Pin
Richard MacCutchan17-Jul-13 21:20
mveRichard MacCutchan17-Jul-13 21:20 
AnswerRe: How to get ListView item Icons ? Pin
TnTinMn18-Jul-13 11:36
TnTinMn18-Jul-13 11:36 
QuestionHow To Populate Data In Another Form Of Display Pin
12345_abcde15-Jul-13 3:36
12345_abcde15-Jul-13 3:36 
AnswerRe: How To Populate Data In Another Form Of Display Pin
Eddy Vluggen18-Jul-13 6:38
professionalEddy Vluggen18-Jul-13 6:38 
QuestionVB.net connect to Access with master and child table Pin
dmtp10-Jul-13 11:30
dmtp10-Jul-13 11:30 
AnswerRe: VB.net connect to Access with master and child table Pin
Bernhard Hiller14-Jul-13 21:51
Bernhard Hiller14-Jul-13 21:51 
Questionhow to capture the url of a popup window. Pin
rshaheen9-Jul-13 5:24
rshaheen9-Jul-13 5:24 
AnswerRe: how to capture the url of a popup window. Pin
Dave Kreskowiak9-Jul-13 5:34
mveDave Kreskowiak9-Jul-13 5:34 
GeneralRe: how to capture the url of a popup window. Pin
rshaheen9-Jul-13 6:03
rshaheen9-Jul-13 6:03 
GeneralRe: how to capture the url of a popup window. Pin
Dave Kreskowiak9-Jul-13 6:30
mveDave Kreskowiak9-Jul-13 6:30 
AnswerRe: how to capture the url of a popup window. Pin
Brisingr Aerowing14-Jul-13 12:22
professionalBrisingr Aerowing14-Jul-13 12:22 
QuestionVB.NET Windows Service - Detect System Date Time Change Pin
Biplob Singha Shee9-Jul-13 1:03
Biplob Singha Shee9-Jul-13 1:03 
AnswerRe: VB.NET Windows Service - Detect System Date Time Change Pin
Richard Deeming9-Jul-13 1:15
mveRichard Deeming9-Jul-13 1:15 
GeneralRe: VB.NET Windows Service - Detect System Date Time Change Pin
Biplob Singha Shee9-Jul-13 1:47
Biplob Singha Shee9-Jul-13 1:47 
GeneralRe: VB.NET Windows Service - Detect System Date Time Change Pin
Richard Deeming9-Jul-13 1:52
mveRichard Deeming9-Jul-13 1:52 
GeneralRe: VB.NET Windows Service - Detect System Date Time Change Pin
Biplob Singha Shee9-Jul-13 2:02
Biplob Singha Shee9-Jul-13 2:02 
GeneralRe: VB.NET Windows Service - Detect System Date Time Change Pin
Dave Kreskowiak9-Jul-13 2:42
mveDave Kreskowiak9-Jul-13 2:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.