Hello.
Im new to this coding stuff, so I want to know how to make controls moveable
when the program is actually running. My aim is to make a panel with a label and button
moveable. Its kinda like a widgit :)
Im using Visual Basic 2010 Express.
Thanks!
(PS: I hope it is possible)
https://www.youtube.com/channel/UCD3D2tIaTT2T6e06FZWBhsw/featured
TonyTGI
0
Newbie Poster
Recommended Answers
Jump to PostIt's certainly possible. Create a form and put a few controls of any type on it. Then add the following code.
Public Class Form1 Dim indrag As Boolean 'true while dragging control Dim startX As Integer 'x powition at drag start Dim startY As Integer 'y position …
All 4 Replies
Reverend Jim
4,678
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
Reverend Jim
4,678
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
TonyTGI
0
Newbie Poster
TonyTGI
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.