Article View: borland.public.csharpbuilder.winforms.controls.using
Article #5Re: 'Trapping' a double-click in RichTextEdit Mouse-down event
From: John
Date: Fri, 11 Mar 2005 03:03
Date: Fri, 11 Mar 2005 03:03
26 lines
1703 bytes
1703 bytes
Thanks very much for the advice, Marc. I'll give it a try! John F. "Marc Rohloff [TeamB]" <"on request"> wrote: >On 9 Mar 2005 22:40:24 -0800, John Fowler wrote: > >> I have a rich text editbox on a form and when I double-click it, I >> want its text to be copied to myString. However, the program alwaly >> 'freezes' after the FIRST click; thus e.Clicks == 1 is always true >> and I can never click fast enough for e.Clicks ever to be '2'. > >> private void rtBox_MouseDown(object sender, >> system.Windows.Forms.MouseEventArgs e) > >Why don't you use the double click event? You can't get at it in the >designer but it is easy enough to set in code: > >this.richTextBox1.DoubleClick += new >System.EventHandler(this.textBox1_DoubleClick); > >-- >Marc Rohloff [TeamB] >marc rohloff -at- myrealbox -dot- com
Technical Details
Message-ID:
<42310a90$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<422febd8$1@newsgroups.borland.com> <i3mrg7bj7oqe.dlg@marcrohloff.40tude.net>Show Full Headers
Complete Article Headers
X-Google-Thread: 1eff3c,eb5671884cadb4e5 X-Google-Attributes: gid1eff3c,public X-Google-Language: ENGLISH,ASCII-7-bit From: "John" <jfowler@pol.net> Sender: "John" <jfowler@pol.net> Reply-To: "John" <jfowler@pol.net> Subject: Re: 'Trapping' a double-click in RichTextEdit Mouse-down event Newsgroups: borland.public.csharpbuilder.winforms.controls.using X-User-Info: 24.20.189.226 References: <422febd8$1@newsgroups.borland.com> <i3mrg7bj7oqe.dlg@marcrohloff.40tude.net> NNTP-Posting-Host: 207.105.83.66 Message-ID: <42310a90$1@newsgroups.borland.com> Date: 10 Mar 2005 19:03:44 -0800 X-Trace: newsgroups.borland.com 1110510224 207.105.83.66 (10 Mar 2005 19:03:44 -0800) Lines: 27 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail