Click here to Skip to main content
15,860,972 members
Home / Discussions / C#
   

C#

 
QuestionHow can i remove "plus" from TreeView node? Pin
Levnsn18-Apr-07 0:48
Levnsn18-Apr-07 0:48 
AnswerRe: How can i remove "plus" from TreeView node? Pin
Svett18-Apr-07 1:05
Svett18-Apr-07 1:05 
GeneralRe: How can i remove "plus" from TreeView node? Pin
Levnsn18-Apr-07 1:23
Levnsn18-Apr-07 1:23 
AnswerRe: How can i remove "plus" from TreeView node? Pin
Abisodun18-Apr-07 1:41
Abisodun18-Apr-07 1:41 
GeneralRe: How can i remove "plus" from TreeView node? Pin
Levnsn18-Apr-07 4:33
Levnsn18-Apr-07 4:33 
QuestionHow to identify conversation Mails Pin
ArunkumarSundaravelu18-Apr-07 0:40
ArunkumarSundaravelu18-Apr-07 0:40 
QuestionCreating a custom textbox Pin
jozsurf18-Apr-07 0:16
jozsurf18-Apr-07 0:16 
AnswerRe: Creating a custom textbox Pin
J4amieC18-Apr-07 0:32
J4amieC18-Apr-07 0:32 
You should have no problem with this - its quite straight forward.

All you need to do is create a class and derive it from the TextBox. Then you can override the OnKeyPress/OnKeyDown event(s) as necessary and do whatever work you would usually do against each instance.

Here's my simple example to get you started... it just MessageBox's every character you type.

public class AnnoyingTextBox : TextBox<br />
{<br />
<br />
    protected override void OnKeyPress(KeyPressEventArgs e)<br />
    {<br />
        MessageBox.Show(e.KeyChar.ToString());<br />
        base.OnKeyPress(e);<br />
    }<br />
}



GeneralRe: Creating a custom textbox Pin
jozsurf18-Apr-07 14:45
jozsurf18-Apr-07 14:45 
GeneralRe: Creating a custom textbox Pin
jozsurf18-Apr-07 16:04
jozsurf18-Apr-07 16:04 
QuestionC#: how to get estimated download time Pin
suveenmohan17-Apr-07 23:54
suveenmohan17-Apr-07 23:54 
AnswerRe: C#: how to get estimated download time Pin
Christian Graus18-Apr-07 0:02
protectorChristian Graus18-Apr-07 0:02 
GeneralRe: C#: how to get estimated download time Pin
suveenmohan18-Apr-07 0:39
suveenmohan18-Apr-07 0:39 
QuestionDoDragDrop and MouseClick event Pin
Jon Hulatt17-Apr-07 23:53
Jon Hulatt17-Apr-07 23:53 
AnswerRe: DoDragDrop and MouseClick event Pin
Mike Hankey18-Apr-07 1:57
mveMike Hankey18-Apr-07 1:57 
GeneralRe: DoDragDrop and MouseClick event Pin
Jon Hulatt18-Apr-07 8:42
Jon Hulatt18-Apr-07 8:42 
GeneralRe: DoDragDrop and MouseClick event Pin
Mike Hankey18-Apr-07 11:00
mveMike Hankey18-Apr-07 11:00 
QuestionJavascript and c# Pin
vamsimohan2117-Apr-07 23:32
vamsimohan2117-Apr-07 23:32 
AnswerRe: Javascript and c# Pin
Christian Graus17-Apr-07 23:58
protectorChristian Graus17-Apr-07 23:58 
GeneralRe: Javascript and c# Pin
vamsimohan2118-Apr-07 0:05
vamsimohan2118-Apr-07 0:05 
GeneralRe: Javascript and c# Pin
vamsimohan2118-Apr-07 0:07
vamsimohan2118-Apr-07 0:07 
GeneralRe: Javascript and c# Pin
Rudolf Jan18-Apr-07 0:15
Rudolf Jan18-Apr-07 0:15 
GeneralRe: Javascript and c# Pin
vamsimohan2118-Apr-07 0:38
vamsimohan2118-Apr-07 0:38 
QuestionRe: Javascript c# Pin
vamsimohan2118-Apr-07 0:39
vamsimohan2118-Apr-07 0:39 
AnswerRe: Javascript c# Pin
Rudolf Jan18-Apr-07 7:07
Rudolf Jan18-Apr-07 7:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.