Solved

VB.net Move a DataGridView with code

Posted on 2014-09-09
3
181 Views
Last Modified: 2014-09-11
Hi

What VB.net code would I use to allow the user to move a DataGridView around a form.
The DataGridView will be added dynamically with code
0
Comment
Question by:murbro
3 Comments
 
LVL 40

Assisted Solution

by:Jacques Bourgeois (James Burger)
Jacques Bourgeois (James Burger) earned 250 total points
ID: 40312458
You use Drag and Drop

I suggest that you read the official documentation on the subject: Drag-and-Drop Functionality in Windows Forms to get an overall view of the mechanism.

Follow the link to the DoDragDrop at the beginning of the page and you will have a complete example.
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 250 total points
ID: 40314072
0
 

Author Closing Comment

by:murbro
ID: 40317438
Thanks for the help
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VB.net capture  result of a SQL query in variables 3 20
VB.Net - String Manipulation Scenario 2 25
Name Space error VS2015 1 23
Code enhancement 4 21
This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question