Solved

Executing the image file from the EXE created

Posted on 2004-10-20
4
297 Views
Last Modified: 2010-04-24
Hello,
  I have created a small application which helps in viewing the images as thumbnails and normal views and i have generated an exe file. And i am trying to open a image file from the Windows Explorer using the EXE i have created/generated using the VB code(I.e using the OPen with option of windows). The result is it is opening the application and is not showing the image which i wanted to see with my application.
Can anybody help me in creating the link so that i can use the Open with option of widows for my executable file.


Regards,
said
0
Comment
Question by:saidreddy
  • 2
4 Comments
 
LVL 19

Accepted Solution

by:
arif_eqbal earned 125 total points
ID: 12357019
Pass the file name of the file as command line argument to your Exe and in your program use the Command Line argument to show the file
0
 

Author Comment

by:saidreddy
ID: 12357122
HI,
  Thanks for your prompt reply.
But can you tell me how i can pass the name of the file as command line arument to the exe which i have created..?


Thanks.

regards,
said
0
 
LVL 3

Expert Comment

by:RacinRan
ID: 12357484
like this:


Sub Main()

     Dim Argument As String() = Environment.GetCommandLineArgs()

End Sub

Then run your app from the start --> run command line like this:

c:\myapp myparam


Racin
0
 
LVL 3

Expert Comment

by:RacinRan
ID: 12357515

The variable Argument will have the value -- "myparam"

In this case you would pass your file name.

If you want the user to select the file you'll need to create the form interface and bag the command line.

Racin
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now