font troubles

lbl.Font.Strikeout = (Font.Strikeout)
shouldn't that strike it out ?
wont work and says "readonly property" though?? ---> vb newbie /=

Comments

  • Hi,

    I don't think You can modify the font properties directly. You may have to create a new font to replace the existing one. Here's a possible solution
    [code]
    lbl.Font = New Font(lbl.Font, FontStyle.Strikeout)
    [/code]
    Cheers,
    Chris

    : lbl.Font.Strikeout = (Font.Strikeout)
    : shouldn't that strike it out ?
    : wont work and says "readonly property" though?? ---> vb newbie /=
    :


  • That works perfect thanks.
    Only one thing is that it change the font from New times roman to default... I guess
    Ill figure that out soon I am sure x Tsikman

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion