Connecting Tech Pros Worldwide Help | Site Map

size font on a text box

  #1  
Old November 13th, 2005, 04:04 AM
Themis Parintas ste kardias
Guest
 
Posts: 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 )


  #2  
Old November 13th, 2005, 04:04 AM
Squirrel
Guest
 
Posts: n/a

re: size font on a text box


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" <steka2@otenet.gr> wrote in message
news:cilpru$k2v$1@usenet.otenet.gr...[color=blue]
> How can i change the size of font on a text box acording the number of
> character (>25 characters the font size 12 )
>
>[/color]


Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem text box, concatenating with next line... plumba answers 1 September 20th, 2007 01:40 PM
colored text box abracad_1999@yahoo.com answers 1 February 21st, 2007 08:35 AM
text box too wide when width set to 100% Piers Lawson answers 17 July 21st, 2006 11:49 PM
Setting font size of text box in VBA dixie answers 5 November 12th, 2005 06:34 PM