Hi Lord...
I truly appreciate your helpfull notice and comment , and I hope if you can to mention the API functions that return the desktop window width and height , instead of Screen.width and Screen.Height
.
Printable View
Hi Lord...
I truly appreciate your helpfull notice and comment , and I hope if you can to mention the API functions that return the desktop window width and height , instead of Screen.width and Screen.Height
.
i believe you can use a combination of GetDesktopHwnd and GetWindowRect. All i did was just check screen height, and had a table of widths to go with a known
height.
Plenty of api calls will give the same info, once you have the hwnd.Code:Public Declare Function GetWindowRgn Lib "user32" Alias "GetWindowRgn" (ByVal hWnd As Long, ByVal hRgn As Long) As Long
Public Declare Function GetWindowRect Lib "user32" Alias "GetWindowRect" (ByVal hwnd As Long, lpRect As RECT) As Long
Public Type RECT
Left As Long
Top As Long
Right As Long
Bottom As Long
End Type
GetClientRect, GetWindow, etc.
Thanks.Regarding resizing my problem is also solved. But the only last problem is that which is not so big is that the pictures's size which are saved in jpg format is very big around 700 kb. Thanks everybody for cooperation.
We all hope that you happy with the result . If you need to ask about how to control the picture size when it saved at Jpg format , you can start a new thread , and I hope to let me know, and mark this thread "Resolved".