This is a migrated thread and some comments may be shown as answers.

How to make user entry in RadTextbox as uppercase?

4 Answers 318 Views
TextBox
This is a migrated thread and some comments may be shown as answers.
Smayr
Top achievements
Rank 1
Smayr asked on 27 May 2013, 08:30 AM

How to make user entry in RadTextbox as uppercase?

in win forms?

4 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 30 May 2013, 08:04 AM
Hi Smayr,

Thank you for writing.

The easiest way to do that would be to use the KeyPress event of the control:
void radTextBox1_KeyPress(object sender, KeyPressEventArgs e)
{
    e.KeyChar = Char.ToUpper(e.KeyChar);
}

I hope this helps.
 

Regards,
Stefan
Telerik
RadChart for WinForms is obsolete. Now what?
0
Smayr
Top achievements
Rank 1
answered on 30 May 2013, 09:01 AM
hello thank for u reply
I tried  Private Sub txtWINSCOMP_KeyPress(ByVal sender As Object, ByVal e As KeyPressEventArgs)
        e.KeyChar = [Char].ToUpper(e.KeyChar)
      
    End Sub

but it didn t force the user data entry to be in upper case
and it seems whn i put a debug point

it s not going inside Private Sub txtWINSCOMP_KeyPress

what do you suggest
0
Smayr
Top achievements
Rank 1
answered on 30 May 2013, 09:16 AM
I have found this article http://support.microsoft.com/kb/818363 and i would like to share on the forum
Character casing property solved my problem


thanks anyway
0
Stefan
Telerik team
answered on 04 Jun 2013, 06:40 AM
Hello Smayr,

The event was not hit because most likely you did not subscribe to it. However, thank you for sharing your solution with the community.
 
Regards,
Stefan
Telerik
RadChart for WinForms is obsolete. Now what?
Tags
TextBox
Asked by
Smayr
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Smayr
Top achievements
Rank 1
Share this question
or