Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening multiple files

Status
Not open for further replies.

rohitt

Programmer
Jul 1, 2002
42
IN
Is there any object like commondialog.showopen which lets me open many files at a time for manipulation . In simple words the functionality of ctrl + selecting a file.

 
Hi
You can try to use a ListBox. With a loop and the command DIR you can fill the listbox with the file names. After all you have to do is another loop:

private sub cmdOpen_Click()
dim iCount as integer

if lstfile.selcount=0 then
msgbox "You must select at least one file"
exit sub
end if

for icount = 0 to lstFile.ListCount-1
if lstfile.selected(icount) then
'Open the file....
end if
next icount
end sub Mal'chik [bigglasses]
 
hie ya !!!!

hi got a better solution ..just have to set commondialog open file box's flag property for it

CommonDialog2.Flags = cdlOFNAllowMultiselect

luv ya rohit
 
Hi, Nice i never use it before... thanks Rohitt i will know for my futur needs Mal'chik [bigglasses]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top