Article View: borland.public.csharpbuilder.winforms.controls.using
Article #23Re: Changing text to Uppercase - 'ReadOnly' error....
From: Marc Rohloff TeamB
Date: Fri, 27 May 2005 23:59
Date: Fri, 27 May 2005 23:59
17 lines
1880 bytes
1880 bytes
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; -- Marc Rohloff [TeamB] marc rohloff -at- myrealbox -dot- com
Technical Details
Message-ID:
<8l4yn70p0d3t$.dlg@marcrohloff.40tude.net>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!mpls-transit-01.news.qwest.net!38.119.100.82.MISMATCH!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<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>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 - 'ReadOnly' error.... 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> <zkiev5tdugc2.dlg@marcrohloff.40tude.net> <42942a5b$1@newsgroups.borland.com> <1ckmcr0d2p5ll$.dlg@marcrohloff.40tude.net> <4296c9ee$1@newsgroups.borland.com> Date: Fri, 27 May 2005 19:59:56 -0400 Message-ID: <8l4yn70p0d3t$.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 0521-4, 05/27/2005), Outbound message X-Antivirus-Status: Clean NNTP-Posting-Host: 67.149.151.113 X-Trace: newsgroups.borland.com 1117238346 67.149.151.113 (27 May 2005 16:59:06 -0700) Lines: 17 X-Authenticated-User: mrohloff Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!mpls-transit-01.news.qwest.net!38.119.100.82.MISMATCH!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail