Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TextBox Font Help 1

Status
Not open for further replies.

WildGun

Technical User
Jan 13, 2005
15
US
Hi

I have one textBox on a form that I would like to really stand out so I did the following;

Private Sub Text1_Change()
Text1.FontSize = 18
Text1.FontName = "Arial"
Text1.FontBold = True
End Sub

It worked GREAT except the font of every label / caption on the entire form changed as well. Can I some how make it exclusive to this one TextBox?

Thanks
Randy
 
Wild Gun,

I copied your code and droped it onto a form containing a textbox (text1) and a label (label1) and ran it. When I changed the text box text, the font and size changed just fine and the label caption stayed the same -- like I think you intended.

In other words, the problem seems unique to you.

You may want to "retype" your code to see if there is a hidden problem that retyping may solve. I have done that from time-to-time with good effect. Your code works fine in my trial.

Ortho [lookaround]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top