473,396 Members | 1,970 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to launch an app with double-click on filename

I have an Windows Form application that has child Forms in it. I have a
constructor in the main form that takes a filename as an argument an creates
a child form from the data in the file. If I launch the app from the
command prompt with a filename as an argument, it works fine. But if I
launch the application by double-clicking on the filename in Windows
Explorer the child form is not created.

I thought that double-clicking a filename was the same as using the command
prompt with the file name as an argument at the point where the application
is launched, but apparently this is not true. Do I have to handle the two
situations differently in my code? Or do I do something at the OS level
that will make this work as I thought it should?

TIA, Dick

Mar 11 '08 #1
0 1007

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Bob Lidgard | last post by:
Hi, I need some help. Hopefully this is trivial! I have created a special file type for my application. I can easily associate the app with the file type manually and I have even seen som code...
4
by: blagdam | last post by:
Is it possible to launch a functional Access 2000 db switchboard by clicking on a desktop icon? I have searched the Microsoft Knowlege Base but, apparently I'm not phrasing my search in the...
1
by: Jo | last post by:
I am having a real problem with the Launch conditions in VS .NET and can only come to the conclusion that it is a bug. It states quite emphatically in the MSDN that Launch Conditions WILL be...
1
by: JerryP | last post by:
Hi Experts, from my program I offer the user to launch different files from a directory (normaly in this directory are .txt files) - but sometimes other files may be in there - so if my program...
13
by: David Rose | last post by:
Hi, I am trying to launch pdf files (in this case). The test application takes the path to the pdf from a TextBox when the user clicks a button. I have written code that works on my computer,...
0
by: Phil Galey | last post by:
I created two different standard Windows applications with VB.NET. The first one is supposed to launch the second one if it's not already running, but when it tries to, the second application gets...
3
by: Peter Rilling | last post by:
When I installed VS.NET, I noticed that the solution files (having the extension .sln) seem to know what version of the ide created it. If I have previous version, the icon changes and when...
2
by: JDeats | last post by:
When a user double clicks on file item in Windows Explorer, Windows tries to open the document with whatever application is related to it's file extension. In my WinForms application I would...
1
by: =?Utf-8?B?Q0o=?= | last post by:
I have a lot of icons on Quick Launch, and therefore have it doubled in height ... I just added another icon and the double height stayed but all of the icons lined up in a single row and went to...
6
by: tempnode | last post by:
I have a problem that I can't seem to solve: I need to write a C++ app that will run off of a floppy. Basically, I will boot into DOS (from a floppy), and run my executable from the floppy. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.