Connecting Tech Pros Worldwide Help | Site Map

size font on a text box

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 13th, 2005, 03:04 AM
Themis Parintas ste kardias
Guest
 
Posts: n/a
Default size font on a text box

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, 03:04 AM
Squirrel
Guest
 
Posts: n/a
Default 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]


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.