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

C# 

Simple "drag-drop or click" file browse control

Easy to use, plug-and-play "drag-drop or click" file browse control. You can access the selected file by the property "SelectedFile", which is of the type "FileInfo".

[Image: aN3ivZe.png]
[Image: Syr3DlV.png]
Nice release man, thanks for sharing. I'm sure someone has a use for this. Almost like I want to grab and keep for most future programs with an upload feature :).

IMAGINARY +1 REP
- Valeas quam optime. -
Won't work on more elevated programs Vista+. (https://blogs.msdn.microsoft.com/patrick...-and-uipi/)

https://helgeklein.com/blog/2010/03/how-...windows-7/
Getting Started: C/C++
[C/C++/.NET/x86 ASM - Automation Programmer]
I haven't read the full source, but would you mind me asking about those lines:
PHP Code

<?php 
string
[] droppedFiles = (string[])e.Data.GetData(DataFormats.FileDrop);
            foreach (
string fileName in droppedFiles)
            {
                
SelectedFile = new FileInfo(fileName);
                break;
            } 
Why not use casting with 'as' then check for null instead of throwing exceptions?
and why using a 'foreach' when you're breaking after the very first element??
Have a cool signature? hit me up and I might use it.


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 244 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