G
Guest
I'm wondering why reflection fails in this instance... I'm trying to do drag
and drop using ListViewItem objects. When I check the DragEventArgs to see
if it has my ListViewItem, I have to use GetDataPresent to test if it's the
data I'm looking for. I have to pass a System.Type object representing the
type of a ListViewItem object. But I've found that Type fails to correctly
identify a ListViewItem. If I try this:
Type f = Type.GetType("System.Windows.Forms.ListViewItem");
f is null. According to MSDN, this should work, as their sample is this:
Type myType1 = Type.GetType("System.Int32");
Am I wrong? What's going on?
and drop using ListViewItem objects. When I check the DragEventArgs to see
if it has my ListViewItem, I have to use GetDataPresent to test if it's the
data I'm looking for. I have to pass a System.Type object representing the
type of a ListViewItem object. But I've found that Type fails to correctly
identify a ListViewItem. If I try this:
Type f = Type.GetType("System.Windows.Forms.ListViewItem");
f is null. According to MSDN, this should work, as their sample is this:
Type myType1 = Type.GetType("System.Int32");
Am I wrong? What's going on?