View Single Post
Old Sep 18th, 2005, 8:39 PM   #7
brokenhope
Hobbyist Programmer
 
Join Date: Apr 2005
Posts: 126
Rep Power: 4 brokenhope is on a distinguished road
Yes that is what I have, DaWei, I infact did try that, and of course it didn't work, because it is readonly. Is there any reason they made it read-only?

Edit

The above code worked, is there anyway to turn the style off though?

lblFontPreview.Font = New Font(lblFontPreview.Font, lblFontPreview.Font.Style Or Not FontStyle.Bold)

I cant figure out the logic and its really screwing me up. That right there applys all properties to the label, instead of just leaving out FontStyle.Bold, the logic in my mind says, apply all lblFontPreview.Font.Style properties, and not bold... I dont even understand this Or crap, Or should mean either or, not be a transition between what to apply...

Last edited by brokenhope; Sep 18th, 2005 at 9:00 PM.
brokenhope is offline   Reply With Quote