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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Restricting Form-Moving to horizontal?

Restricting Form-Moving to horizontal?

Scheduled Pinned Locked Moved C#
question
3 Posts 2 Posters 1 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.
  • J Offline
    J Offline
    jkersch
    wrote on last edited by
    #1

    hi there, i wonder if there´s a way to manipulate a window that i can only be dragged horizontal with mouse (i.e. vertical mouse movements are ignored). any ideas? thanks, best regards jkersch

    N 1 Reply Last reply
    0
    • J jkersch

      hi there, i wonder if there´s a way to manipulate a window that i can only be dragged horizontal with mouse (i.e. vertical mouse movements are ignored). any ideas? thanks, best regards jkersch

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      Try setting MaximumSize?

      J 1 Reply Last reply
      0
      • N Not Active

        Try setting MaximumSize?

        J Offline
        J Offline
        jkersch
        wrote on last edited by
        #3

        well, i created a Bitmap as hwnd (a transparent images that resides on top of the screen (win32.getDC via native function in user32.dll) and i wonder how i can access window x and y position values and how i can get x and y of the mouse position. is there something like a mousemove event with native win32 windows? i have to bitmap hWnd to remain at the same x-position all the time. and ideas? thanks jkersch

        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