Drag n Drop Resigner Source Code

Post here about scripting and programming for HaloPC (audio, network, ai, etc.)
Post Reply
User avatar
xzodia




Translator Connoisseur Coagulator

Posts: 1981
Joined: Sun May 15, 2005 10:31 am
Location: UK
Contact:

Drag n Drop Resigner Source Code

Post by xzodia »

This little app shows how to implement drag and drop functionality into your programs.

To use the app drag map files onto the form and they will be resigned, or open a file and hit resign :P
Attachments
Drag n Drop Resigner.zip
(34.95 KiB) Downloaded 35 times
Image
Halo 2 Plugins | Lock-on To Just About Anything | My Sites | Snow Hog
Old Plugins you have, upgrade you must...
Always Maintain a High Quality-To-Crap Ratio.
User avatar
Halo4Ever




Connoisseur Wordewatician 250

Posts: 447
Joined: Tue Jul 18, 2006 6:08 am
Location: Newyork XBLGTag: Br4nd3n

Post by Halo4Ever »

Awesome!, thanks man! This will definitely help people that are planning on looking into adding drag and drop into their apps, I won't use this, but its a good help so thanks, :wink:
Image
"A hero needs not to speak, for when he is gone, the world will speak for him" - My favorite quote.
User avatar
Prey




Connoisseur Snitch! Pyre Articulatist 500

Posts: 1026
Joined: Wed Dec 27, 2006 6:49 am
Location: UK
Contact:

Post by Prey »

Code: Select all

        private void Main_DragEnter(object sender, DragEventArgs e)
        {
            //Set Effects, Dunno What This Does Really =P, But It Makes It Work XD
            if (e.Data.GetDataPresent(DataFormats.FileDrop))
                e.Effect = DragDropEffects.All;
            else
                e.Effect = DragDropEffects.None;
        }
The 'Effect' is just that, the effect. If you play around with them you'll notice that the mouse will look slightly different with each one (OnDragEnter), that's the whole point of it. But it does also affect if the dragged object is accepted or not. The only effect that will actually stop the object from being accepted is 'DragDropEffects.None'.

Anyway nice project, 'tis informative.
Halo 2 Prophet - Skin with ease with the simple 3D point and click interface.
Halo 3 Research Thread - Contribute to the research into Halo 3.
OwnZ joO




Articulatist 500

Posts: 980
Joined: Thu Nov 10, 2005 4:24 pm

Post by OwnZ joO »

Haven't looked at it yet, but it sounds like a nice idea.
Post Reply