473,400 Members | 2,163 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,400 software developers and data experts.

DragDrop with FileDrop

I have made myself a little sample app that is a target of dropped file(s),
seems to work fine when the app is running. But if I drop a file on the
app's icon on the desktop it just starts - nothing more happens.

What needs to be added to the app for it to be aware of the drop when
started as a result of a drop
Owe
Nov 16 '05 #1
2 1389
You'll want to process the command line arguments passed to
public static int Main(string[] args)

The file / dir name should be args[0] if your program was started by
drag/drop to icon
--
Mike Mayer, C# MVP
mi**@mag37.com
http://www.mag37.com/csharp/

"Owe Armandt" <o@armandt.se> wrote in message
news:eQ**************@tk2msftngp13.phx.gbl...
I have made myself a little sample app that is a target of dropped file(s), seems to work fine when the app is running. But if I drop a file on the
app's icon on the desktop it just starts - nothing more happens.

What needs to be added to the app for it to be aware of the drop when
started as a result of a drop
Owe

Nov 16 '05 #2
Thank you for your prompt response, while waiting for someone to answer here
I spent some time in other places and found that out as well - so every
thing is OK.

But, once again, thank you for your response
Owe
"Michael Mayer [C# MVP]" <mi**@mag37.com> wrote in message
news:#$**************@tk2msftngp13.phx.gbl...
You'll want to process the command line arguments passed to
public static int Main(string[] args)

The file / dir name should be args[0] if your program was started by
drag/drop to icon
--
Mike Mayer, C# MVP
mi**@mag37.com
http://www.mag37.com/csharp/

"Owe Armandt" <o@armandt.se> wrote in message
news:eQ**************@tk2msftngp13.phx.gbl...
I have made myself a little sample app that is a target of dropped

file(s),
seems to work fine when the app is running. But if I drop a file on the
app's icon on the desktop it just starts - nothing more happens.

What needs to be added to the app for it to be aware of the drop when
started as a result of a drop
Owe


Nov 16 '05 #3

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

Similar topics

7
by: Kate | last post by:
Hi: I have a form with a picture box and some command buttons to make certain shapes appear in the picture box. The shapes are drawn on blank UserControls added like this: 'at top of form...
10
by: KS | last post by:
I have a Button I want to pull to a Label. I want the Button visualy to move when I pull it. When I drop the button on the Label I want to test some data coming with the Button - f.ex is the...
1
by: KS | last post by:
In want to visualy drag a Button to a Label and when I depress the mousebutton on top of the label I want to show some dato from the Button in a MsgBox - that's my primary goal. I have made a...
4
by: Owe Armandt | last post by:
When I play with DragDrop of files to a form I get two DragEnter events before the DragDrop event, why is this?? Owe
0
by: Flack | last post by:
Hello, Is it possible to find out how many methods are listening to a certain event? For example, if a number of methods subscribed to a controls DragDrop event using +=, can I find out how many...
3
by: Roger Uribe | last post by:
It was easy in VB6... how can i retrieve the name(s) of files dropped onto a vb.net control from windows explorer it'll be easy in vb.net too ... when i know the answer!! thanks roger
0
by: Gene Hubert | last post by:
Well, it seems fundamental to me anyway. Hopefully it is simple enough. The question is for when the source for the dragdrop is a different application that the target for the dragdrop. How...
3
by: Gary Dunne | last post by:
I'm writing an app that requires drag and drop operation between a ListView and a TreeView control. (The source is the ListView). During the drag drop operation I want to be able to detect the...
7
by: JohnR | last post by:
I am using dragdrop to drag and drop a custom class instance. When I drag/drop from one window to another window in the same application everything works fine. But when trying to move between the...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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.