my program snaps to the sides of the screen (like winamp), and the user has the option of changing the # of twips that the screen snaps from (so if the window is closer than X twips, it snaps to the side). anyway, since most people aren't very familiar with twips, i was wondering how to convert twips to pixels, or possibly just use pixels as the default measurement. here is the code from my sub:

'The Form is the form
'Dist is the # of twips that it snaps from

ReleaseCapture
Call SendMessage(TheForm.hwnd, &HA1, 2, 0&)

If TheForm.Left <= Dist Then TheForm.Left = 0
If TheForm.Top <= Dist Then TheForm.Top = 0
If TheForm.Left >= (Screen.Width - (TheForm.Width + Dist)) Then TheForm.Left = Screen.Width - TheForm.Width
If TheForm.Top >= (Screen.Height - (TheForm.Height + Dist)) Then TheForm.Top = Screen.Height - TheForm.Height

------------------

-cxs
[email protected]