Results 1 to 16 of 16

Thread: [RESOLVED] VB.NET condensed code to allow moving multiple controls on a form.

Threaded View

  1. #14

    Thread Starter
    Addicted Member
    Join Date
    Jan 2021
    Posts
    191

    Re: VB.NET condensed code to allow moving multiple controls on a form.

    Quote Originally Posted by .paul. View Post
    No problem. I was going to answer yesterday, but I got distracted. It’ll work with all of your TableLayoutPanels, but do your testing and familiarise yourself with the code…
    This will be great! One question about the moving of the panels, is there a way to keep the dragging to a new X position only and keep the Y the same? I am curious if I have panels in a row, the same Y coordinate would be great.

    **Update: I think I got it? If this is all I need to do.

    Code:
    tlp.Location = New Point(tlp.Location.X + e.X - newTLPpoint.X, tlp.Location.Y)
    Last edited by mikeg71; May 1st, 2024 at 11:31 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width