form location

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • enrico via DotNetMonster.com

    form location

    is there a way that the form will be fixed in its location, it can't be move
    anywhere?

    --
    Message posted via DotNetMonster.c om
    Best online pokies for real money in Australia and learn about safety and game mechanics in this comprehensive guide.


  • rowe_newsgroups

    #2
    Re: form location

    On Apr 9, 4:56 am, "enrico via DotNetMonster.c om" <u41845@uwewrot e:
    is there a way that the form will be fixed in its location, it can't be move
    anywhere?
    >
    --
    Message posted via DotNetMonster.c omhttp://www.dotnetmonst er.com/Uwe/Forums.aspx/dotnet-vb-net/200804/1
    I'm hoping you have a really good reason for violating a standard UI
    rule? Users expect to be able to move the forms on their screens,
    immovable forms usually do little more than tick off your user base.

    Just a warning :-)

    Thanks,

    Seth Rowe [MVP]

    Comment

    • zacks@construction-imaging.com

      #3
      Re: form location

      On Apr 9, 4:56 am, "enrico via DotNetMonster.c om" <u41845@uwewrot e:
      is there a way that the form will be fixed in its location, it can't be move
      anywhere?
      >
      --
      Message posted via DotNetMonster.c omhttp://www.dotnetmonst er.com/Uwe/Forums.aspx/dotnet-vb-net/200804/1
      In the Form_Load event, set a couple of variables to the Top and Left
      Form properties.

      In the Form_Move event, set the form's Top and Left properties back to
      the values stored in the variables.

      Doesn't look pretty, but you can fix that by setting a flag in the
      Form_Move event, and resetting the location in the Form_MouseUp event
      if the flag is set.

      Comment

      Working...