Free Web Site - Free Web Space and Site Hosting - Web Hosting - Internet Store and Ecommerce Solution Provider - High Speed Internet
Search the Web

Get Exactly Caption's  Position

VB Tips:  Form, Window


   When you have a command button with two or more lines of text, you can get unpredictable results, when the button is displayed. Sometimes you will get the line breaks in different positions and in between the wrong words.

   To get exactly what you want put the following code in the Form_Load subroutine for the Form.

Form_Load()
...
cmdLoad.Caption = "&Load" & Chr$(13) & Chr$(10) & "Web Site"
...
End Sub

   This will put two lines on the cmdLoad button, with 'Load' above 'Web Site'.


Copyright (c) 1999 - 2001, robert han, all rigths are reserved.