🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.csharpbuilder.winforms.controls.using
Article #19

Re: Changing text to Uppercase as it's entered into control

#19
From: Marc Rohloff TeamB
Date: Thu, 19 May 2005 01:55
13 lines
1559 bytes
On 18 May 2005 00:12:31 -0700, John F. wrote:

> I'm trying to display all text in a control in uppercase as I enter it. I've tried using the 'text_changed" method of, say, a combobox, as follows:
> this.myComboBox.Text.ToUpper()
> but this doesn't cause the text to appear in uppercase.

> How can i do this?

Handle the KeyPress event and convert the Key to uppercase.

-- 
Marc Rohloff [TeamB]
marc rohloff -at- myrealbox -dot- com
Technical Details
Message-ID: <zkiev5tdugc2.dlg@marcrohloff.40tude.net>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <428aeadf$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1eff3c,e8f286f0f787b5f2
X-Google-Attributes: gid1eff3c,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Marc Rohloff [TeamB]" <"on request">
Subject: Re: Changing text to Uppercase as it's entered into control
Newsgroups: borland.public.csharpbuilder.winforms.controls.using
User-Agent: 40tude_Dialog/2.0.15.1
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
References: <428aeadf$1@newsgroups.borland.com>
Date: Wed, 18 May 2005 21:55:43 -0400
Message-ID: <zkiev5tdugc2.dlg@marcrohloff.40tude.net>
X-Face: "huzh55Xi]!ZNni78>a*5+).`SK?<^q2MlHk-C]Z2M9T@\J5ZCB$95Ey+s"XQuhGFA[eutZ :0^AV!Q;t>gE`1-=8d;HZ6~*o1dH<X9\b$!|(}+I'!Xq)@3Op}%0ArW&nf'Qh*EwR
X-Antivirus: avast! (VPS 0520-2, 05/18/2005), Outbound message
X-Antivirus-Status: Clean
NNTP-Posting-Host: 67.149.150.149
X-Trace: newsgroups.borland.com 1116467710 67.149.150.149 (18 May 2005 18:55:10 -0700)
Lines: 13
X-Authenticated-User: mrohloff
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail