Results 1 to 4 of 4

Thread: Helpk with making a window slide from bottom right of screen.

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2002
    Posts
    25

    Lightbulb Helpk with making a window slide from bottom right of screen.

    I need help making a windows slide out from the bottom right of the screen like MS Messenger does. The only problem is that I've no eartly idea on how to do it. Can anyone help?

    Like always, all help is appreciated.

    What I'm doing:
    I've very little experience with VB and learn my creating little projects. The project I'm working on requires two programs a server and client. The server will run on a workstation with a caller-id modem and will retrieve the caller-id information of incoming calls and send it via IP to the machine(s) running the client. The client then accepts the caller-id information from the server and hopefully a little window will slide up from the bottom right hand corner of the screen showing the caller-id information of the incoming call.

  2. #2
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    Sounds like a pretty big task for someone who doesn't know VB very well. To have a form slide up like that, you are going to have to find the dimensions of the taskbar, and even if the user has the taskbar visible and along the bottom of the screen. Then you will need to set your form's top property to the toolbar's top property. Search these forums for finding the taskbar's dimensions. Then you will need to set the left property of your form to Screen.Width - Form.Width so that it is in the far right corner. Now, you will need to use a loop to move it:
    VB Code:
    1. Do Until Form.Top <= Taskbar.Top - Form.Height
    2.   Form.Top = Form1.Top - 15
    3. Loop

    There's the basic idea. You should be able to find all the answers you need using the search function on the boards.
    <removed by admin>

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Aug 2002
    Posts
    25
    Well it doesn't necessarily have to slide out from the bottom right of the screen. To me it would be just as cool to have it slide out from the top right or left of the screen. I just don't want to have a box pop up in the middle of everything. Thanks for you help!

  4. #4
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Newbury, UK
    Posts
    1,878
    Set the Me.Top and Me.Left in the Form_Load procedure to large enough vaues so the form is initially displayed just off the bottom right hand side of the screen.
    With a DoEvents in the loop (to allow the form to be displayed),
    loop around reducing the Top and Left coordinates until the form is in the middle of the screen.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width