How do you align an app to the sides of the desktop?



I would like to know how to make a form align itself to

the sides of the desktop like ICQ does. I can do I by

useing form.move and setting the right valuse but this

doesn't acount for the height of the start menu and such.


I was wondering if there is a winapi call to do this?


Thanks

Paul Sprague


Comments

  • :

    : I would like to know how to make a form align itself to

    : the sides of the desktop like ICQ does. I can do I by

    : useing form.move and setting the right valuse but this

    : doesn't acount for the height of the start menu and such.


    : I was wondering if there is a winapi call to do this?


    : Thanks

    : Paul Sprague


    Likely is an API; however:


    'Right justify and 400 from bottom of screen

    Move (Screen.Width - Me.Width), (Screen.Height - Me.Height) - 400

    '

    'Right justify and 400 from top screen

    'Me.Top = 400

    'Move (Screen.Width - Me.Width)


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories