can i control the way that the popup window opens?
i mean, down, up and stuff like that?
thanks..
Printable View
can i control the way that the popup window opens?
i mean, down, up and stuff like that?
thanks..
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 ???
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
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
u can do it through the StartUpPosition property.
Form1.StartUpPosition= CenterOwner, CenterScreen or Windows Default
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.
You center align or right align it as well.
Code:'Center Align
PopupMenu MyMenu, vbPopupMenuCenterAlign, X, Y
'Right Align
PopupMenu MyMenu, vbPopupMenuRightAlign, X, Y