Article View: borland.public.csharpbuilder.winforms.controls.using
Article #7Re: 'Trapping' a double-click in RichTextEdit Mouse-down event
From: Marc Rohloff TeamB
Date: Fri, 11 Mar 2005 22:31
Date: Fri, 11 Mar 2005 22:31
20 lines
1846 bytes
1846 bytes
On 10 Mar 2005 20:13:49 -0800, John Fowler wrote:
> I've tried this, but when I double-click within the rich text edit
> (called 'rtBox' in my code) it does nothing (except the default
> behaviour, i.e. it high-lights the text in the editbox):
Yes you are right it seems to disappear. However I tried your original
code:
private void richTextBox1_MouseDown(object sender,
System.Windows.Forms.MouseEventArgs e)
{
if (e.Clicks==2) MessageBox.Show("c");
}
And it works fine for me.
--
Marc Rohloff [TeamB]
marc rohloff -at- myrealbox -dot- com
Technical Details
Message-ID:
<1pruy9742t9qn$.dlg@marcrohloff.40tude.net>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!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> <42311afd$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1eff3c,eb5671884cadb4e5 X-Google-Attributes: gid1eff3c,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Marc Rohloff [TeamB]" <"on request"> Subject: Re: 'Trapping' a double-click in RichTextEdit Mouse-down event 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: <422febd8$1@newsgroups.borland.com> <i3mrg7bj7oqe.dlg@marcrohloff.40tude.net> <42311afd$1@newsgroups.borland.com> Date: Fri, 11 Mar 2005 17:31:31 -0500 Message-ID: <1pruy9742t9qn$.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 0510-1, 03/11/2005), Outbound message X-Antivirus-Status: Clean NNTP-Posting-Host: 4.225.103.133 X-Trace: newsgroups.borland.com 1110580080 4.225.103.133 (11 Mar 2005 14:28:00 -0800) Lines: 20 X-Authenticated-User: mrohloff Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail