how to allow the user to move/drag the form ?

Last post 03-30-2008 10:01 by Neil. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 03-30-2008 9:43

    • kameel
    • Top 100 Contributor
    • Joined on 03-19-2008
    • Posts 5

    how to allow the user to move/drag the form ?

    I tried setting the form Location (X, Y) properties, from the Mouse down and mouse up events.

    But the location deosn't change.

    Also when I cant chacge the location (X, Y) at design time. the values are reseted to the default values

    Am I missing anything.

    Thanks

    Filed under:
  • 03-30-2008 9:52 In reply to

    • Neil
    • OpenNETCF Staff
    • Top 10 Contributor
    • Joined on 07-30-2007
    • North Wales
    • Posts 1,153

    Re: how to allow the user to move/drag the form ?

    What platform are you targeting: CE or Mobile?


  • 03-30-2008 9:55 In reply to

    • kameel
    • Top 100 Contributor
    • Joined on 03-19-2008
    • Posts 5

    Re: how to allow the user to move/drag the form ?

    Windows Mobile.

  • 03-30-2008 10:01 In reply to

    • Neil
    • OpenNETCF Staff
    • Top 10 Contributor
    • Joined on 07-30-2007
    • North Wales
    • Posts 1,153

    Re: how to allow the user to move/drag the form ?

    By default, all forms are full screen using the .NET Compact Framework under Windows Mobile. You need set certain properties so that your forms are not full screen. See this blog post for the details

    Following the procedures outlined in the blog post eliminates the need to write your own mouse event handlers to reposition the form.


Page 1 of 1 (4 items)