Re: Opening multiple files with my applicaton
- From: kimiraikkonen <kimiraikkonen85@xxxxxxxxx>
- Date: Wed, 26 Dec 2007 08:45:45 -0800 (PST)
On Dec 26, 6:10 pm, Family Tree Mike
<FamilyTreeM...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
"kimiraikkonen" wrote:
Hi,
I have an app which has a listbox and when i double click an
associated fileS, i want their paths to be added into listbox in my
application.
This code works good when i try to open a "single" file with my app
which works to get commandline arguments to get file paths:
Dim cla As String() = Environment.GetCommandLineArgs()
If cla.Length > 1 Then
ListBox1.Items.Add(cla(1))
End if
But this doesn't work while opening more than one files at the same
time.
You are only adding the first item from the command line. Change your code
to:
Dim cla As String() = Environment.GetCommandLineArgs()
Dim idx as Integer
If cla.Length > 1 Then
for idx = 1 to (cla.Length-1)
ListBox1.Items.Add(cla(idx))
next idx
endif
Hi Family Tree Mike,
Tried your code but only one file's path is added into listbox when i
try to open more than one file "with" my app by selecting CTRL + mouse
left click.
The thing i want to implement is exactly like when you select more
than one files, then "open with" Windows Media Player, then these
files are added into playlist of WMP. The same strategy i want to see
worked.(I only want to add paths of fileS).
Thanks.
.
- References:
- Opening multiple files with my applicaton
- From: kimiraikkonen
- RE: Opening multiple files with my applicaton
- From: Family Tree Mike
- Opening multiple files with my applicaton
- Prev by Date: populating gridview using arraylist of structure
- Next by Date: WCF: WCF service is not visible from clients outside the development computer.
- Previous by thread: RE: Opening multiple files with my applicaton
- Next by thread: Re: Opening multiple files with my applicaton
- Index(es):
Relevant Pages
|
Loading