Setting Upper and Lower cases on control

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
How can I programatically set Upper, Lower and Normal case on a label or text box controls?

Thanks
 
Mr Ryan,

To expound on this question a bit, can this also apply to a label? There
are certain label controls that I use to display information pulled from a
database and some of that information is in ALL CAPS. What I want to do is
present mixed-casing.

Thanks for the information.

Brad
 
Chris said:
How can I programatically set Upper, Lower and Normal case on a label or text box controls?

Not sure if this is of any help... but the following will 'force' the first
character of each word to Capital (lower case for all other characters):

Dim CCDstrName As String = cmbCCUsrDescription.Text
' Ensure CC Description Case is Correct. First Letter is Capitalized!
CCDstrName = StrConv(CCDstrName, VbStrConv.ProperCase)

While I've not checked it out, there is a few other options instead of
..ProperCase (ie force all to Upper or Lower Case, etc).

Regards,

Bruce
 
Hi,
This is exactly the same issue I have.

Brad Allison said:
Mr Ryan,

To expound on this question a bit, can this also apply to a label? There
are certain label controls that I use to display information pulled from a
database and some of that information is in ALL CAPS. What I want to do is
present mixed-casing.

Thanks for the information.

Brad
 
Back
Top