Yes there are several overloaded methods for making a font, any of them will
work to create the font object.
Good luck, happy fonting
Chris
"anthony" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> thx, i should hv looked more b4 i posted, ur method works and i found this
> too:
>
> btnCalculateSpeed.Font = New Font(btnCalcBestTrip.Font, FontStyle.Bold)
>
>
>
> "Chris, Master of all Things Insignificant" <chris@No_Spam_Please.com>
> wrote
> in message news:uv%(E-Mail Removed)...
>> You can, you just have to do it the same way that the designer does it.
>> Remember all the does designer is place code in the Web For Designer
> region,
>> you can go look in there to see what it does. In your case you have to
> make
>> a new font object and apply it to the button.
>>
>> Hope it helps.
>> Chris
>> Button1.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!,
>> System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point,
>> CType(0,
>> Byte))
>>
>>
>> "anthony" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>> > hi,
>> >
>> > why can't i set the font of a button to bold at run time (it's read
> only),
>> > i
>> > can only set at design time. it can be done in vb6.
>> >
>> > thx
>> >
>> >
>>
>>
>
>
|