Results 1 to 7 of 7

Thread: popup window?

  1. #1
    Guest

    Smile

    can i control the way that the popup window opens?
    i mean, down, up and stuff like that?

    thanks..

  2. #2
    Addicted Member
    Join Date
    Feb 2000
    Posts
    224

    Question WHICH POP UP WINDOW ?

    Which window are you talking about...

    If you considering the secondary forms in your project
    that you show in run time..they can be moved to any position using left and top properties..

    or...else..are you talking about a browser window ???


  3. #3
    Guest
    Instead of setting the Left and Top individually, you can use you the Move method.

    Code:
    'Moves to the Top-Left corner of the Screen
    Form2.Move 0, 0
    Form2.Show

  4. #4
    Guest

    Arrow i mean menu popup

    i mean the menu popups, when right clicking on the form a popup window appears usually from up-left to buttom-right. i want to be able to control from where to where it opens because this can change when the form is to close to the right side and then it opens to the other side

  5. #5
    Member
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    32
    u can do it through the StartUpPosition property.

    Form1.StartUpPosition= CenterOwner, CenterScreen or Windows Default

  6. #6
    Fanatic Member
    Join Date
    Apr 2000
    Location
    Whats a location?
    Posts
    516
    Have a look at this:

    http://msdn.microsoft.com/library/ps...menus_0hdi.htm

    Hope it helps.

    Ask me if you want some sample code, Owner-drawn Popup menus are my current project.
    Courgettes.

  7. #7
    Guest
    You center align or right align it as well.

    Code:
    'Center Align
    PopupMenu MyMenu, vbPopupMenuCenterAlign, X, Y
    
    'Right Align
    PopupMenu MyMenu, vbPopupMenuRightAlign, X, Y

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