TextBox Alignment Problem in OSR2

Hi,
This is a pretty simple problem but I don't know the solution.  My app written in VB6 has a couple of TextBoxes where the Alignment property is set to Centered.  This works fine in WIN98 but in WIN95 the text entered by the user is Aligned to the left. This looks pretty silly since it's a wide log in box and a small user name sits way over to the left in 95.

How can I get the text centered when running in 95?

Thanks!
syntelAsked:
Who is Participating?
 
VbmasterConnect With a Mentor Commented:
ya that was what i meant, setting the MultiLine property of the textbox will make it multilined

Does alignment really work in Win98 with non-multilined textboxes? I thought it was a limitation in the textbox in VB5.

From the help file..

"The MultiLine property in a Textbox control must be set to True for the Alignment property to work correctly. If the MultiLine property setting of a TextBox control is False, the Alignment property is ignored."
0
 
syntelAuthor Commented:
Edited text of question.
0
 
VbmasterCommented:
Alignment works okay for me in Win95 OSR2.. when the textbox are multilined.
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
VbmasterCommented:
multilined <= property MultiLine = True
0
 
syntelAuthor Commented:
I'll try that and let you know.

I don't follow what your second comment means:

multilined <= property MultiLine = True


I assume you mean to set the Multiline Property to True.


0
All Courses

From novice to tech pro — start learning today.