there is an api, it's in the registry, but the easiest way is through VB's Screen Object!!!!

Code:
ScreenWidth = Screen.Widht / Screen.TwipsPerPixelX
ScreenHeight = Screen.Height / Screen.TwipsPerPixelY