Page 1 of 1

Drag n Drop Resigner Source Code

Posted: Thu Sep 20, 2007 3:43 pm
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

Posted: Thu Sep 20, 2007 3:46 pm
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:

Posted: Fri Sep 21, 2007 1:30 am
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.

Posted: Fri Sep 21, 2007 6:29 am
by OwnZ joO
Haven't looked at it yet, but it sounds like a nice idea.