Opening multiple files with my applicaton



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.

Assume i select 3 files with pressing CTRL + left mouse and then "open
with" my application, then i want these three files' paths must be
added as items into the listbox. (listbox will have 3 items, items are
the paths of files)

I hope you can help.

Regards.
.



Relevant Pages

  • Re: Advice Needed...
    ... items in a listbox). ... What about access controls is better? ... looking) is that they can handle multi-column data, where a VB6 listbox ... The only real issue is the problems when an app shuts down unexpectedly. ...
    (microsoft.public.vb.general.discussion)
  • Getting killed by idle tasks or something else?
    ... I have a Tk app that has a large listbox. ... grab works, but takes ~.5 seconds before it is actually "grabs" and I ... I am running idletasks pretty regularly, but assumed that it was not ...
    (comp.lang.perl.tk)
  • Re: Seeking: some advice about program structure (MFC dialog app)
    ... dialog app is actually the best possible app. ... you add its name to the two listbox controls. ... Add OnLButtonDown, OnLButtonUp, OnMouseMove handlers, and an OnPaint handler. ... When you click the mouse down and drag, the image in the window being dragged is moved, ...
    (microsoft.public.vc.mfc)
  • RE: Opening multiple files with my applicaton
    ... i want their paths to be added into listbox in my ... This code works good when i try to open a "single" file with my app ... Dim cla As String= Environment.GetCommandLineArgs ... Dim idx as Integer ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Opening multiple files with my applicaton
    ... i want their paths to be added into listbox in my ... Dim cla As String= Environment.GetCommandLineArgs ... Dim idx as Integer ... try to open more than one file "with" my app by selecting CTRL + mouse ...
    (microsoft.public.dotnet.languages.vb)