Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. disabling the movement of Form window

disabling the movement of Form window

Scheduled Pinned Locked Moved C#
csharp
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    fgfdhghgfd
    wrote on last edited by
    #1

    hi everybody how could i disable the movement of form window.when i put the mouse pointer on taskbar and drag it the form window also moves with it and i want to disable it.Give some clue. if possible send some c# code.

    E K M 3 Replies Last reply
    0
    • F fgfdhghgfd

      hi everybody how could i disable the movement of form window.when i put the mouse pointer on taskbar and drag it the form window also moves with it and i want to disable it.Give some clue. if possible send some c# code.

      K Offline
      K Offline
      KLASTER
      wrote on last edited by
      #2

      private void Form1_Move(object sender, EventArgs e) { int left = 15, top = 15; this.Left = left; this.Top = top; }

      ------------------- You can go a long way with a smile. You can go a lot farther with a smile and a gun. (C) Al Capone

      1 Reply Last reply
      0
      • F fgfdhghgfd

        hi everybody how could i disable the movement of form window.when i put the mouse pointer on taskbar and drag it the form window also moves with it and i want to disable it.Give some clue. if possible send some c# code.

        E Offline
        E Offline
        Eduard Keilholz
        wrote on last edited by
        #3

        Why do you post this question over and over again??

        .: I love it when a plan comes together :. http://www.zonderpunt.nl

        1 Reply Last reply
        0
        • F fgfdhghgfd

          hi everybody how could i disable the movement of form window.when i put the mouse pointer on taskbar and drag it the form window also moves with it and i want to disable it.Give some clue. if possible send some c# code.

          M Offline
          M Offline
          Martin 0
          wrote on last edited by
          #4

          Hello, Maybe the "Locked" property helps you here! All then best, Martin

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups