Click here to Skip to main content
15,917,059 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionExport text to MS Word with VB.NET 2005 [modified] Pin
DJ-P3-Nov-06 7:02
DJ-P3-Nov-06 7:02 
QuestionGlobal.aspx Pin
Pete Newman3-Nov-06 5:41
Pete Newman3-Nov-06 5:41 
AnswerRe: Global.aspx Pin
Dave Kreskowiak3-Nov-06 6:52
mveDave Kreskowiak3-Nov-06 6:52 
QuestionHowTo display File Names + extension in a ListBox Pin
Zaegra3-Nov-06 4:32
Zaegra3-Nov-06 4:32 
AnswerRe: HowTo display File Names + extension in a ListBox Pin
Are Jay3-Nov-06 6:23
Are Jay3-Nov-06 6:23 
AnswerRe: HowTo display File Names + extension in a ListBox Pin
nlarson113-Nov-06 6:26
nlarson113-Nov-06 6:26 
GeneralRe: HowTo display File Names + extension in a ListBox Pin
Zaegra3-Nov-06 6:32
Zaegra3-Nov-06 6:32 
GeneralRe: HowTo display File Names + extension in a ListBox Pin
nlarson113-Nov-06 7:52
nlarson113-Nov-06 7:52 
sure you just need to apply a filter

Imports System.IO

Public Class Form2

Private Sub Form2_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim oItem As ListViewItem,sExt as string

For Each sFile As String In Directory.GetFiles("c:\picturePath")
sExt = Mid(sFile, InStrRev(sFile, ".") + 1).tolower()

Select case sExt
case "bmp","gif","tif","jpg","jpeg" 'etc.
oItem = New ListViewItem(Mid(sFile, InStrRev(sFile, "\") + 1).ToLower)
oItem.SubItems.Add(sExt)
Me.ListView1.Items.Add(oItem)
oItem = Nothing
case else
'ignore file
end select

Next
End Sub
End Class

Questionfunction to format partnumbers (alpha numeric) Pin
jds12073-Nov-06 2:54
jds12073-Nov-06 2:54 
AnswerRe: function to format partnumbers (alpha numeric) Pin
nlarson113-Nov-06 8:30
nlarson113-Nov-06 8:30 
GeneralRe: function to format partnumbers (alpha numeric) Pin
jds12073-Nov-06 9:00
jds12073-Nov-06 9:00 
GeneralRe: function to format partnumbers (alpha numeric) Pin
nlarson113-Nov-06 9:02
nlarson113-Nov-06 9:02 
GeneralRe: function to format partnumbers (alpha numeric) Pin
jds12073-Nov-06 9:25
jds12073-Nov-06 9:25 
GeneralRe: function to format partnumbers (alpha numeric) Pin
nlarson113-Nov-06 9:32
nlarson113-Nov-06 9:32 
QuestionHow to create a users manual Pin
rafaguilarsol3-Nov-06 1:56
rafaguilarsol3-Nov-06 1:56 
AnswerRe: How to create a users manual Pin
Dave Kreskowiak3-Nov-06 6:44
mveDave Kreskowiak3-Nov-06 6:44 
GeneralRe: How to create a users manual Pin
rafaguilarsol3-Nov-06 7:47
rafaguilarsol3-Nov-06 7:47 
QuestionSend image path to Crystal report8 through VB6 [modified] Pin
Kiran S. S.2-Nov-06 23:26
Kiran S. S.2-Nov-06 23:26 
QuestionHow to swap values in database with the help of combobox Pin
Khan.Bangash2-Nov-06 23:19
Khan.Bangash2-Nov-06 23:19 
AnswerRe: How to swap values in database with the help of combobox Pin
Akhilesh Yadav2-Nov-06 23:25
Akhilesh Yadav2-Nov-06 23:25 
AnswerRe: How to swap values in database with the help of combobox Pin
OldWarhorse3-Nov-06 3:09
OldWarhorse3-Nov-06 3:09 
Questionformat a time to 24 hours [modified] Pin
steve_rm2-Nov-06 22:19
steve_rm2-Nov-06 22:19 
AnswerRe: format a time to 24 hours Pin
Steven J Jowett2-Nov-06 22:30
Steven J Jowett2-Nov-06 22:30 
GeneralRe: format a time to 24 hours Pin
steve_rm2-Nov-06 23:22
steve_rm2-Nov-06 23:22 
QuestionSwaping Pin
Khan.Bangash2-Nov-06 22:00
Khan.Bangash2-Nov-06 22:00 

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.