Good tips! Thanks, Ed
>Joel,
> The Resize event is not automatically triggered when a form is created.
> You will have to call the method in your code.
> To resize the form to something that will fit in the new screen resolution,
> you can read the screen resolution from _SCREEN (Height/Width).
> If loForm is the form to be resized,
> Add this to the code that creates the form:
> WITH loForm
> .Height = _SCREEN.Height * 0.955
> .Width = _SCREEN.Width * 0.955
> .Resize()
> ENDWITH
> Note: the 0.955 multiplier is optional, I didn't want the entire screen taken up by the form.
>HTH,
> Ned
>
>>Vladimir,
>>I have downloaded your resize.vcx, and followed the instructions in the readme.txt, but I can't seem to get it to work.
>>
>>I placed a resizeable object (from the resize.vcx) on my form, and inserted the code in the form's resize event, as instructed.
>>
>>That's all I did. Then I saved the form, changed the resolution of my monitor, and then re-statred the form, expecting it to sense the new resolution, but it does not change.
>>
>>What am I overlooking?
>>Thanks for your help.
>>Joel
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement