Can't make text bold

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Apolakkiatis
    New Member
    • Jan 2008
    • 30

    Can't make text bold

    Property 'Bold' is 'ReadOnly'. << this error occurs when i type

    Textbox2.Font.B old = True


    What am i doing wrong??? I have vb08..
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    Originally posted by Apolakkiatis
    Property 'Bold' is 'ReadOnly'. ...
    You should read up on how to change fonts in your version.

    Based on what I recall encountering in VB6 (now a very old version), you may need to do something like this. Create a new Font object, make it a copy of the original, change the settings you want (such as Bold), then set the textbox font property to refer to that new object.

    Comment

    Working...