Forum Discussion
YMinaev
Staff
15 years agoHi Mark,
In VBScript, you need to use the Call keyword since SetWindowPos has several parameters:
TUserForm is a window class of the user form. It will be the same for all user forms. The second parameter is its caption. This is what you can see in your form's header.
In VBScript, you need to use the Call keyword since SetWindowPos has several parameters:
Call Win32API.SetWindowPos( w1.Handle, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE OR SWP_NOSIZE)
is TUserForm a constant that I should use while the second is the specific name for my userforms
TUserForm is a window class of the user form. It will be the same for all user forms. The second parameter is its caption. This is what you can see in your form's header.