Roey Posted November 19, 2003 Posted November 19, 2003 I am dragging an item from different areas on my form to a Treeview: Private Sub tvwBillOfMaterial_DragDrop(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles tvwBillOfMaterial.DragDrop I wanted to check the source control that they came from prior to processing. What is the .Net equivilent to: If TypeOf Source is Datagrid Then .... Thanks Quote
Administrators PlausiblyDamp Posted November 19, 2003 Administrators Posted November 19, 2003 probably your best bet is to look at the eventargs passed in. IIRC e.Data is where you will find the source control info. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Roey Posted November 19, 2003 Author Posted November 19, 2003 I have been trying that and can't seem to find the control name in e.Data Quote
Roey Posted November 19, 2003 Author Posted November 19, 2003 Am I going about this the wrong way. I have been searching the web for about four hours now and nothing. Surely this must be a common task ?????? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.