>>Hi all,
>>
>>I have to write a form which contain certain amount of fixed size objects, the form is needed to auto-detect the resolution of the user's monitor and display maximum possible number of objects in it.
>>
>>But I dont know how to detect the screen resolution, any help please?
>
>BTW Jimi,
>You could also set form to maximize and check form height, width too. You could also use scrollbars (if VFP6) to use more objects.
>Cetin
One thing to note about using this technique is the maximized settings do not take effect until the form is displayed. If you set the form's WindowState property in the property sheet or set the property in the Init of the form, the Height and Width properties will show the settings of the form as it was in the form designer.
With that in mind, I think it is better to go with Cetin's other suggestion of using Sysmetric() and also making the form maximized. With the function, you willbe able to determine beforehand the size of the form and position controls appropriately. Then when the form is displayed in the Show method, it will be maximized and the controls will already be in position.
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao