🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#24
From: John
Date: Sat, 28 May 2005 22:39
21 lines
1846 bytes
Thanks, again, Marc. Couldn't do it without you!

John.

Marc Rohloff [TeamB] wrote:
> On Fri, 27 May 2005 00:19:24 -0700, John wrote:
> 
> 
>>'Property or indexer System.Windows.Forms.KeyPressEventArgs.KeyChar 
>>cannot be assigned to - it is readonly.
> 
> 
> Yes youre right, my bad.
> 
> You should be able to handle the TextChanged event something like:
> 
> ComboBox thisBox = ( ComboBox )sender;
> int cursorPosition = thisBox.SelectionStart;
> thisBox.Text = thisBox.Text.ToUpper();
> thisBox.SelectionStart = cursorPosition;
> 
Technical Details
Message-ID: <4298f30e$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.moat.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!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> <4296c9ee$1@newsgroups.borland.com> <8l4yn70p0d3t$.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: Sat, 28 May 2005 15:39:24 -0700
From: John <jfowlerNOSPAM@pol.net>
Reply-To:  jfowle@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> <4296c9ee$1@newsgroups.borland.com> <8l4yn70p0d3t$.dlg@marcrohloff.40tude.net>
In-Reply-To: <8l4yn70p0d3t$.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: <4298f30e$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1117319950 24.20.189.226 (28 May 2005 15:39:10 -0700)
Lines: 21
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.moat.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail