Click here to Skip to main content
15,915,807 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Excel Interop with Existing File? Pin
Jim Matthews20-Dec-04 6:30
Jim Matthews20-Dec-04 6:30 
GeneralRe: Excel Interop with Existing File? Pin
halhamilton22-Dec-04 6:15
halhamilton22-Dec-04 6:15 
Questionhow to treat events async.? Pin
carlos_rocha20-Dec-04 3:17
carlos_rocha20-Dec-04 3:17 
AnswerRe: how to treat events async.? Pin
Nicholas Cardi20-Dec-04 5:24
Nicholas Cardi20-Dec-04 5:24 
GeneralAdd filenames to list box Pin
johnjsm20-Dec-04 2:07
johnjsm20-Dec-04 2:07 
GeneralRe: Add filenames to list box Pin
Nicholas Cardi20-Dec-04 5:54
Nicholas Cardi20-Dec-04 5:54 
GeneralRe: Add filenames to list box Pin
johnjsm20-Dec-04 22:09
johnjsm20-Dec-04 22:09 
GeneralRe: Add filenames to list box Pin
Nicholas Cardi21-Dec-04 4:14
Nicholas Cardi21-Dec-04 4:14 
Sorry about that. There is a small bug. I tested it with txt files.

Here is the fix you need to make.

In the MatchesExtension Function change

sTemp = sTemp & sChar

TO

sTemp = sChar & sTemp


if you want to add different/more file types you can do some thing like this in the
commandbutton click event

For Each fi In fld.Files
If MatchesExtension("cdimage", fi.Name) Then
List1.AddItem fi.Name
End If
If MatchesExtension("dvdimage", fi.Name) Then
List1.AddItem fi.Name
End If
'Keep adding file extensions. by duplicating the code above
Next




Forever Developing
GeneralRe: Add filenames to list box Pin
johnjsm21-Dec-04 4:56
johnjsm21-Dec-04 4:56 
GeneralRe: Add filenames to list box Pin
johnjsm22-Dec-04 0:25
johnjsm22-Dec-04 0:25 
GeneralRe: Add filenames to list box Pin
johnjsm22-Dec-04 0:24
johnjsm22-Dec-04 0:24 
GeneralRe: Add filenames to list box Pin
Nicholas Cardi22-Dec-04 5:04
Nicholas Cardi22-Dec-04 5:04 
GeneralRe: Add filenames to list box Pin
johnjsm22-Dec-04 5:35
johnjsm22-Dec-04 5:35 
GeneralRe: Add filenames to list box Pin
Nicholas Cardi22-Dec-04 5:51
Nicholas Cardi22-Dec-04 5:51 
GeneralRe: Add filenames to list box Pin
johnjsm22-Dec-04 6:18
johnjsm22-Dec-04 6:18 
GeneralUsing drag and Drop picture to a label or something else for a scrabble game Im developing Pin
sourcezilla20-Dec-04 0:51
sourcezilla20-Dec-04 0:51 
GeneralRe: Using drag and Drop picture to a label or something else for a scrabble game Im developing Pin
Tom John20-Dec-04 2:28
Tom John20-Dec-04 2:28 
GeneralResizing the Windows Form through code once it has been maximized Pin
Tweetyshwet19-Dec-04 23:12
Tweetyshwet19-Dec-04 23:12 
GeneralRe: Resizing the Windows Form through code once it has been maximized Pin
Tom John20-Dec-04 0:42
Tom John20-Dec-04 0:42 
GeneralRunning Bytes of array from memory Pin
matrixcine19-Dec-04 22:50
matrixcine19-Dec-04 22:50 
GeneralRe: Running Bytes of array from memory Pin
Dave Kreskowiak20-Dec-04 1:12
mveDave Kreskowiak20-Dec-04 1:12 
GeneralRe: Running Bytes of array from memory Pin
Anonymous20-Dec-04 2:17
Anonymous20-Dec-04 2:17 
GeneralRe: Running Bytes of array from memory Pin
Dave Kreskowiak20-Dec-04 3:31
mveDave Kreskowiak20-Dec-04 3:31 
Generalivr Pin
Geo Varghese19-Dec-04 22:21
Geo Varghese19-Dec-04 22:21 
GeneralRe: ivr Pin
Colin Angus Mackay20-Dec-04 1:58
Colin Angus Mackay20-Dec-04 1:58 

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.