|
-
May 28th, 2002, 10:22 PM
#1
Thread Starter
Hyperactive Member
Opening multiple files at once
How would this be possible (with the common dialog box)
I know other programs let you select more than one file from the dialog box. How would you do this in vb? I tried clicking with control held down, but that didn't work.
Also, is there a way you can resize a picture box at runtime with the mouse? Or does anyone know of a control that would let you do this?
-
May 28th, 2002, 10:27 PM
#2
The picture isn't missing
cd1.Flags = cdlOFNExplorer Or cdlOFNAllowMultiselect Or cdlOFNHideReadOnly ' yah this makes it multiselect
cd1.MaxFileSize = 2048 'allots more space for the extra filenames so it doesnt run out.
CD1. is the common dialog
Remember, if someone's post was not helpful, you can always rate their post negatively  .
-
May 28th, 2002, 10:27 PM
#3
The picture isn't missing
o yeh and to read it after:
VB Code:
If InStr(cd1.FileName, vbNullChar) = 0 Then List1.AddItem cd1.FileName
With cd1
iCounter = 1
sfolder = Mid(.FileName, 1, InStr(iCounter, .FileName, vbNullChar) - 1)
Do Until InStr(iCounter + 1, .FileName, vbNullChar) = 0
iCounter = InStr(iCounter + 1, .FileName, vbNullChar) + 1
If InStr(iCounter, .FileName, vbNullChar) = 0 Then
List1.AddItem sfolder & "\" & Mid(.FileName, iCounter)
Else
List1.AddItem sfolder & "\" & Mid(.FileName, iCounter, InStr(iCounter + 1, .FileName, vbNullChar) - iCounter)
End If
Loop
End With
v
Remember, if someone's post was not helpful, you can always rate their post negatively  .
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|