Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C# 

[C#] Drag and Run (Whatever its called) [TUT]

Example
[img]http://www.codemodtutorials.x10.mx/Untitled9.gif[/img]

Code
[Image: b3734183772224b4cd28e52342a357c9.png]
[Image: 4f368086ca1f537a01930ee00f8f1c40.png]

I know it sucks, but whatever.

Someone will find this useful.


Before some flaming starts or whatever, it gets the file paths. I was using Process.Start as an example.
You don't need the

Code
if(args.lengt < 2)

part, just foreach
Probably coding some useless shit.
(Oct 23, 2010 02:47 AM)ubbelol Wrote:  You don't need the

Code
if(args.lengt < 2)

part, just foreach

Yeah, that was one of my add crap for no reason moments.
Why that if you can only select them and press Enter?
(Oct 23, 2010 03:41 AM)vbowner Wrote:  Why that if you can only select them and press Enter?

Here come these comments.

This is just an example. Drag and run can be used say if your app edits text or something like that, the user does not have to run the app to open the file. Instead they can drag and drop over it then it'll do whatever.
(Oct 23, 2010 03:43 AM)xSilent Wrote:  Here come these comments.

This is just an example. Drag and run can be used say if your app edits text or something like that, the user does not have to run the app to open the file. Instead they can drag and drop over it then it'll do whatever.
oh ok..
Spoiler (Click to View)
hehe, nice code. don't know what I'd use it for though :p
wasn;t this posted before?
this is interesting, i have seen this before tho :)


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by Beginner1234Nov 11, 2021 03:54 AM 2 141 Nov 11, 2021 03:54 AM
Last Post: 3phase
[C#] by draxyeeJun 5, 2020 02:58 PM 1 243 Jun 5, 2020 02:58 PM
Last Post: Porn
[Shell] by SIM-4581439Apr 5, 2020 06:19 PM 0 173 Apr 5, 2020 06:19 PM
Last Post: SIM-4581439