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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

syntelAuthor Commented:
Edited text of question.
0
VbmasterCommented:
Alignment works okay for me in Win95 OSR2.. when the textbox are multilined.
0
VbmasterCommented:
multilined <= property MultiLine = True
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

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
VbmasterCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.