|
-
Jul 14th, 2000, 11:45 AM
#1
can i control the way that the popup window opens?
i mean, down, up and stuff like that?
thanks..
-
Jul 14th, 2000, 12:13 PM
#2
Addicted Member
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 ???
-
Jul 14th, 2000, 12:21 PM
#3
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
-
Jul 28th, 2000, 01:58 AM
#4
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
-
Jul 28th, 2000, 02:42 AM
#5
Member
u can do it through the StartUpPosition property.
Form1.StartUpPosition= CenterOwner, CenterScreen or Windows Default
-
Jul 28th, 2000, 04:38 AM
#6
Fanatic Member
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.
-
Jul 28th, 2000, 08:27 AM
#7
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|