>How would i assign a font and font size to this form.
>tnx
>k
>
>
>Define Class form1 As Form
>
>
> Top = 23
> Left = 248
> Height = 300
> Width = 375
> DoCreate = .T.
> ShowTips = .T.
> Caption = "My Form"
> Name = "Form1"
>
Hi,
a very elegant solution is the class made by Greg : styles.vcx This can be found on his webpage :
http://www.glrsoftware.com/download.aspYou have to look in the Download section for "Class Libraries - Form Level" in this section you go for "Changing Colors and Styles of controls at run-time.
If you compose your form or formclass visualy, after all this Visual FoxPro, and not programmatically, just drop Greg's style object on your form and you are done.
You dont have to take care of any other object on your form the will all follow the settings in Style. A very handy piece of coding.
Koen