Click here to Skip to main content
15,897,273 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Catching an exception from a control Pin
Chinners15-May-08 0:55
Chinners15-May-08 0:55 
GeneralRe: Catching an exception from a control Pin
Steven J Jowett15-May-08 1:08
Steven J Jowett15-May-08 1:08 
QuestionCompressing in vb .net 2003 Pin
aphei14-May-08 22:23
aphei14-May-08 22:23 
AnswerRe: Compressing in vb .net 2003 Pin
Steven J Jowett14-May-08 22:50
Steven J Jowett14-May-08 22:50 
AnswerRe: Compressing in vb .net 2003 Pin
Steven J Jowett14-May-08 23:07
Steven J Jowett14-May-08 23:07 
QuestionVB 6 question, Pin
nitin314-May-08 20:57
nitin314-May-08 20:57 
AnswerRe: VB 6 question, Pin
helelark12315-May-08 3:34
helelark12315-May-08 3:34 
QuestionSelect Multiple File in Single Open File Dialog Box Pin
TeiUKei14-May-08 20:52
TeiUKei14-May-08 20:52 
I would like to create a open file dialog that can display multiple images in 1 single click. However, i only manage to select an image in 1 time. Could anyone please teach me how to select multiple image per open file dialog? Thanks so much!

Dim OpenFile As OpenFileDialog = New OpenFileDialog

Dim ImgName() As String
Dim LoopCtrl As Integer

OpenFile.Filter = "JPG Images|*.JPG|Bitmaps|*.BMP|GIF Images|*.GIF|All Images|*.BMP;*.GIF;*.JPG"
OpenFile.FilterIndex = 10
OpenFile.Multiselect = True

If OpenFile.ShowDialog = Windows.Forms.DialogResult.OK Then

ImgName = OpenFile.FileNames

For LoopCtrl = 0 To ImgName.Length - 1

objImage(LoopCtrl) = Image.FromFile(ImgName(LoopCtrl))

Next

OriginalPic.Image = objImage(0)
OriginalPic1.Image = objImage(1)

End If

This is how i write the code. Could anyone please kindly teach me how to select multiple image per open file dialog? Thanks so much!
AnswerRe: Select Multiple File in Single Open File Dialog Box Pin
Ajay.k_Singh14-May-08 21:06
Ajay.k_Singh14-May-08 21:06 
GeneralRe: Select Multiple File in Single Open File Dialog Box Pin
TeiUKei14-May-08 21:24
TeiUKei14-May-08 21:24 
GeneralRe: Select Multiple File in Single Open File Dialog Box Pin
Ajay.k_Singh14-May-08 21:39
Ajay.k_Singh14-May-08 21:39 
GeneralRe: Select Multiple File in Single Open File Dialog Box Pin
TeiUKei14-May-08 22:25
TeiUKei14-May-08 22:25 
GeneralRe: Select Multiple File in Single Open File Dialog Box Pin
Ajay.k_Singh14-May-08 22:31
Ajay.k_Singh14-May-08 22:31 
GeneralRe: Select Multiple File in Single Open File Dialog Box Pin
TeiUKei14-May-08 22:38
TeiUKei14-May-08 22:38 
GeneralRe: Select Multiple File in Single Open File Dialog Box Pin
Ajay.k_Singh14-May-08 22:50
Ajay.k_Singh14-May-08 22:50 
GeneralRe: Select Multiple File in Single Open File Dialog Box Pin
TeiUKei14-May-08 22:59
TeiUKei14-May-08 22:59 
QuestionCna we have Nested Try and Catch IN VB 2005 Pin
nishkarsh_k14-May-08 20:22
nishkarsh_k14-May-08 20:22 
AnswerRe: Cna we have Nested Try and Catch IN VB 2005 Pin
Mycroft Holmes14-May-08 20:44
professionalMycroft Holmes14-May-08 20:44 
QuestionCompare text files using VB 2008 Pin
mahan14-May-08 16:44
mahan14-May-08 16:44 
AnswerRe: Compare text files using VB 2008 Pin
Christian Graus14-May-08 17:03
protectorChristian Graus14-May-08 17:03 
AnswerRe: Compare text files using VB 2008 Pin
Rajesh Anuhya14-May-08 18:50
professionalRajesh Anuhya14-May-08 18:50 
GeneralRe: Compare text files using VB 2008 Pin
Christian Graus14-May-08 19:58
protectorChristian Graus14-May-08 19:58 
Questionsend data to selected ip address problem Pin
shee_dee8614-May-08 15:30
shee_dee8614-May-08 15:30 
AnswerRe: send data to selected ip address problem Pin
Christian Graus14-May-08 15:37
protectorChristian Graus14-May-08 15:37 
QuestionGuide to multiple client Pin
shee_dee8614-May-08 14:51
shee_dee8614-May-08 14:51 

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.