473,396 Members | 1,774 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Problem adding custom event to richtextbox

I inherited a richtextbox class and tried to add the double click even
handler. Unfortunatly, when I check the properties of rtbText, it doesn't
contain a double click event handler. Any ideas on what I did wrong or how i
can add a double click event handler to a richtextbox?

//I declared rtbText as my custom richtextbox
rtbText = new DblClickRich()

//Custom Richtextbox class trying to add double click event handler
public class DblClickRich : RichTextBox {
public DblClickRich() : base() {
SetStyle(ControlStyles.StandardClick, true);
SetStyle(ControlStyles.StandardDoubleClick, true);
}
}
Jul 21 '05 #1
1 1569
Henry,

I thought that I had seen your question endless in the newsgroups, however
searching did give me not any result (with a in my opinion good answer).
Maybe because it seems to be not possible.

Here a message from Lion Shi, what at least describes the problem. I think
that you will not be glad with his solution however where not is, this can
be the best.

http://groups-beta.google.com/group/...fc483c69e43a66

I hope this helps something?

Cor
Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Dan Brill | last post by:
Hi, I'm sure this issue has been covered before but after searching around I can't find anything which deals with quite the same set of circumstances or suggests an optimal solution. The...
3
by: Jitender Singh Rawat | last post by:
Hi All, I am currently working on a project, which involves creating a COM Add-in using VB.Net, for MS Word 2003. As usual, I am creating few custom menu buttons under the File and Tool...
6
by: Just Me | last post by:
I need to create a library sub that adds event handlers to a control. Public Shared Sub AddEvent(ByVal qq As Control, By?? ControlMouseMove As ??) So I need to pass the address of the handler or...
0
by: Sakharam Phapale | last post by:
Hi All, I am developing my own text editor using RichTextBox control. I don't want to use RichTextBox Undo and Redo functions. Instead of that I want to develop my own algorithm for Undo & Redo,...
0
by: Mark Denardo | last post by:
Hi, I'm trying to record the text value of a RichTextBox after handling a KeyPressEvent (each time the user types a char). But what I'm seeing is that the value of rtb.Text is equal to the value...
1
by: Henry | last post by:
I inherited a richtextbox class and tried to add the double click even handler. Unfortunatly, when I check the properties of rtbText, it doesn't contain a double click event handler. Any ideas on...
3
by: J'son | last post by:
Guys, I have created a custom class that derives from DataList so that I can add some custom client side functionality into each new item row (<td>). Heres the class in its simplest form: ...
3
by: Stuart Nathan | last post by:
In VB - Visual Studio 2003 As I understand it, in the KeyDown event of a RichTextBox, I can put If e.KeyCode = Keys.Return then e.Handled = False and this will prevent the Enter key being added...
1
by: =?Utf-8?B?QW50aG9ueSBRdWVlbg==?= | last post by:
Hello All, I have created a custom "field" object in .Net that implements IOleObject. It inherits from "System.Windows.Forms.Label". It also has several public properties that contain data to be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.