Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
GeneralRe: A quick question Pin
Jim Stewart20-Feb-03 18:19
Jim Stewart20-Feb-03 18:19 
GeneralRe: A quick question Pin
Braincrash20-Feb-03 18:52
Braincrash20-Feb-03 18:52 
GeneralExecuting external apps Pin
zwieble20-Feb-03 12:57
zwieble20-Feb-03 12:57 
GeneralRe: Executing external apps Pin
Chris Austin20-Feb-03 12:59
Chris Austin20-Feb-03 12:59 
GeneralRe: Executing external apps Pin
zwieble20-Feb-03 13:17
zwieble20-Feb-03 13:17 
GeneralRe: Executing external apps Pin
Chris Austin20-Feb-03 14:46
Chris Austin20-Feb-03 14:46 
GeneralC#/DirectX 9.0 tutorials Pin
sumo_guy20-Feb-03 10:24
sumo_guy20-Feb-03 10:24 
QuestionBackspace not handled by TextBox sometimes? Pin
Arun Bhalla20-Feb-03 9:06
Arun Bhalla20-Feb-03 9:06 
I have a TextBox that is part of a control (toolbar) that is part of another
control (an Explorer band object); no forms involved. This TextBox is
defined thus:

this.searchTextBox.Location = new System.Drawing.Point(48, 24);
this.searchTextBox.Name = "searchTextBox";
this.searchTextBox.Size = new System.Drawing.Size(168, 20);
this.searchTextBox.TabIndex = 4;
this.searchTextBox.Text = "";

does not process the Backspace key. Another TextBox that is part of a
dialog box does function correctly, defined thus:

this.urlTextBox.Location = new System.Drawing.Point(8, 8);
this.urlTextBox.Name = "urlTextBox";
this.urlTextBox.Size = new System.Drawing.Size(232, 20);
this.urlTextBox.TabIndex = 0;
this.urlTextBox.Text = "";

Both were defined by the Designer, nothing fancy.

Why is the Backspace key not handled automatically in the first case? What
do I have to do to make it work? Interestingly, the Delete key does work
fine.Also interestingly, when I press the Backspace key, only the KeyUp
event is fired, not also the KeyDown and KeyPress events like most other
keys. Even if I wanted to manually handle the Backspace key within a KeyUp
event hander, I have no idea how to locate the position of the caret within
the TextBox's string. Of course, it'd be far preferable to have the TextBox
behaving normally.

Thanks,
Arun


AnswerRe: Backspace not handled by TextBox sometimes? Pin
Arun Bhalla21-Feb-03 12:19
Arun Bhalla21-Feb-03 12:19 
GeneralSingleton component design problem Pin
leppie20-Feb-03 6:24
leppie20-Feb-03 6:24 
GeneralRe: Singleton component design problem Pin
pete mcquain20-Feb-03 7:24
pete mcquain20-Feb-03 7:24 
GeneralRe: Singleton component design problem Pin
leppie20-Feb-03 8:04
leppie20-Feb-03 8:04 
GeneralWebBrowser control displaying security alert dialogs Pin
GriffonRL20-Feb-03 5:35
GriffonRL20-Feb-03 5:35 
GeneralRe: WebBrowser control displaying security alert dialogs Pin
Stephane Rodriguez.20-Feb-03 5:44
Stephane Rodriguez.20-Feb-03 5:44 
GeneralRe: WebBrowser control displaying security alert dialogs Pin
GriffonRL20-Feb-03 5:57
GriffonRL20-Feb-03 5:57 
GeneralRe: WebBrowser control displaying security alert dialogs Pin
Stephane Rodriguez.20-Feb-03 6:35
Stephane Rodriguez.20-Feb-03 6:35 
GeneralLogin & Application Form Pin
vladmihai20-Feb-03 5:16
vladmihai20-Feb-03 5:16 
GeneralRe: Login & Application Form Pin
Nnamdi Onyeyiri20-Feb-03 5:34
Nnamdi Onyeyiri20-Feb-03 5:34 
GeneralRe: Login & Application Form Pin
Chris Austin20-Feb-03 5:35
Chris Austin20-Feb-03 5:35 
GeneralRe: Login & Application Form Pin
vladmihai20-Feb-03 8:49
vladmihai20-Feb-03 8:49 
GeneralRe: Login & Application Form Pin
Chris Austin20-Feb-03 9:16
Chris Austin20-Feb-03 9:16 
GeneralThe chicken-and-egg problem. OO HELP!! Pin
~toki20-Feb-03 4:01
~toki20-Feb-03 4:01 
GeneralRe: The chicken-and-egg problem. OO HELP!! Pin
Nnamdi Onyeyiri20-Feb-03 5:44
Nnamdi Onyeyiri20-Feb-03 5:44 
QuestionHow to know which version of Microsoft Office are installed Pin
Hawkmoon19-Feb-03 23:34
Hawkmoon19-Feb-03 23:34 
AnswerRe: How to know which version of Microsoft Office are installed Pin
Stephane Rodriguez.20-Feb-03 5:39
Stephane Rodriguez.20-Feb-03 5:39 

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.