🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Changing text to Uppercase - 'ReadOnly' error....

#22
From: John
Date: Fri, 27 May 2005 07:19
16 lines
1622 bytes
Hmmm.... I tried this code and get a compiler error:

'Property or indexer System.Windows.Forms.KeyPressEventArgs.KeyChar 
cannot be assigned to - it is readonly.

I'm using it in a ComboBox... I wonder if that makes a difference?

Thanks, once again, for your help, Marc.

John F.

Marc Rohloff [TeamB] wrote:
> On 25 May 2005 00:33:47 -0700, John F wrote:
> 
> e.KeyChar = Char.ToUpper(e.KeyChar);
> 
Technical Details
Message-ID: <4296c9ee$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <428aeadf$1@newsgroups.borland.com> <zkiev5tdugc2.dlg@marcrohloff.40tude.net> <42942a5b$1@newsgroups.borland.com> <1ckmcr0d2p5ll$.dlg@marcrohloff.40tude.net>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1eff3c,e8f286f0f787b5f2
X-Google-Attributes: gid1eff3c,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Fri, 27 May 2005 00:19:24 -0700
From: John <jfowlerNOSPAM@pol.net>
Reply-To:  jfowlerNOSPAM@pol.net
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.csharpbuilder.winforms.controls.using
Subject: Re: Changing text to Uppercase - 'ReadOnly' error....
References: <428aeadf$1@newsgroups.borland.com> <zkiev5tdugc2.dlg@marcrohloff.40tude.net> <42942a5b$1@newsgroups.borland.com> <1ckmcr0d2p5ll$.dlg@marcrohloff.40tude.net>
In-Reply-To: <1ckmcr0d2p5ll$.dlg@marcrohloff.40tude.net>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 24.20.189.226
Message-ID: <4296c9ee$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1117178350 24.20.189.226 (27 May 2005 00:19:10 -0700)
Lines: 16
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail