By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,956 Members | 1,683 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,956 IT Pros & Developers. It's quick & easy.

size font on a text box

P: n/a
How can i change the size of font on a text box acording the number of
character (>25 characters the font size 12 )
Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Something like this... Use the textbox's Exit event.

Private Sub txtBox_Exit(Cancel As Integer)
If Len(Me!txtBox) > 25 Then
Me!txtBox.FontSize = 12
Else
Me!txtBox.FontSize = 10 ' your default here
End If
End Sub

"Themis Parintas ste kardias" <st****@otenet.gr> wrote in message
news:ci**********@usenet.otenet.gr...
How can i change the size of font on a text box acording the number of
character (>25 characters the font size 12 )

Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.