[Mono-bugs] [Bug 551734] Treeview.DoDragDrop has no effect!

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Nov 3 00:49:27 EST 2009


http://bugzilla.novell.com/show_bug.cgi?id=551734

User calberto.cortez at gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=551734#c3





--- Comment #3 from Carlos Alberto Cortez <calberto.cortez at gmail.com>  2009-11-02 22:49:21 MST ---
I tried the next sample using 2.6/trunk and it's working fine:

using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;

public class Test
{
        static void Main (string [] args)
        {
                Application.EnableVisualStyles ();
                TestForm form = new TestForm ();
                Application.Run (form);
        }

}

public class TestForm : Form
{
        TreeView tv;

        public TestForm ()
        {
                tv = new TreeView ();
                tv.Nodes.Add ("One");
                tv.Nodes.Add ("Dos");
                tv.Nodes.Add ("Drei");
                tv.Nodes.Add ("Five");
                tv.Dock = DockStyle.Fill;
                tv.ItemDrag += delegate (object o, ItemDragEventArgs args)
                {
                        Console.WriteLine ("Started draggin item = " +
args.Item);
                };

                Controls.AddRange (new Control [] { tv });
        }
}

Could you test with this one? Also, what version are you using? Thanks!

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list