Click here to Skip to main content
15,926,062 members
Home / Discussions / C#
   

C#

 
GeneralRe: RichTextBox ScrollBars Pin
Robert Rohde26-Mar-05 23:04
Robert Rohde26-Mar-05 23:04 
GeneralRe: RichTextBox ScrollBars Pin
hitsuzen27-Mar-05 14:32
hitsuzen27-Mar-05 14:32 
Generalopen workbook excel with c# Pin
luk_pol226-Mar-05 14:15
sussluk_pol226-Mar-05 14:15 
Generalxpath & xsl in .net compact framework Pin
Anonymous26-Mar-05 6:45
Anonymous26-Mar-05 6:45 
GeneralSetting Invoked Array Pin
Ox53746F6E6526-Mar-05 5:45
Ox53746F6E6526-Mar-05 5:45 
Generalretrieving REG_EXPAND_SZ value Pin
Crimson C U B E26-Mar-05 2:49
Crimson C U B E26-Mar-05 2:49 
GeneralTextBox Validation Pin
| Muhammad Waqas Butt |26-Mar-05 2:04
professional| Muhammad Waqas Butt |26-Mar-05 2:04 
GeneralRe: TextBox Validation Pin
Luis Alonso Ramos26-Mar-05 7:12
Luis Alonso Ramos26-Mar-05 7:12 
There are two different things you can do:

1. Handle Validating event for the TextBox, and use regular expressions to validate that no spaces are in the string the user entered, and if yes, don't allow the user to go to another control before correcting it.

2. In the KeyDown event, if the key is a space, set e.Handled = true, so the TextBox doesn't handle it, effectively eating the keystroke.

-- LuisR



Luis Alonso Ramos
Intelectix - Chihuahua, Mexico

Not much here: My CP Blog!

GeneralRe: TextBox Validation Pin
maheshfour27-Mar-05 22:57
maheshfour27-Mar-05 22:57 
GeneralRe: TextBox Validation Pin
ameto31-Mar-05 23:19
ameto31-Mar-05 23:19 
GeneralRichTextBox question! Pin
QzRz26-Mar-05 0:47
QzRz26-Mar-05 0:47 
GeneralRe: RichTextBox question! Pin
Robert Rohde26-Mar-05 23:14
Robert Rohde26-Mar-05 23:14 
GeneralRe: RichTextBox question! Pin
QzRz26-Mar-05 23:34
QzRz26-Mar-05 23:34 
GeneralRe: RichTextBox question! Pin
Ashok Dhamija27-Mar-05 22:48
Ashok Dhamija27-Mar-05 22:48 
GeneralRe: RichTextBox question! Pin
QzRz27-Mar-05 23:56
QzRz27-Mar-05 23:56 
GeneralRTF QUESTION! Pin
_Comet_Keeper_25-Mar-05 22:01
_Comet_Keeper_25-Mar-05 22:01 
GeneralRe: RTF QUESTION! Pin
Robert Rohde25-Mar-05 23:10
Robert Rohde25-Mar-05 23:10 
QuestionHow to display results of a console app in a textbox of another app form? Pin
oohungoo25-Mar-05 21:51
oohungoo25-Mar-05 21:51 
AnswerRe: How to display results of a console app in a textbox of another app form? Pin
JockerSoft28-Mar-05 2:21
JockerSoft28-Mar-05 2:21 
GeneralRe: How to display results of a console app in a textbox of another app form? Pin
oohungoo30-Mar-05 22:44
oohungoo30-Mar-05 22:44 
GeneralInvoking a control's inner event. Pin
rakat3325-Mar-05 21:34
rakat3325-Mar-05 21:34 
GeneralRe: Invoking a control's inner event. Pin
Mathew Hall25-Mar-05 22:45
Mathew Hall25-Mar-05 22:45 
Generalget X , Y coordinate of notifyIcon using win32 calls Pin
ThomasMiller25-Mar-05 21:14
ThomasMiller25-Mar-05 21:14 
GeneralRe: get X , Y coordinate of notifyIcon using win32 calls Pin
Heath Stewart26-Mar-05 13:22
protectorHeath Stewart26-Mar-05 13:22 
GeneralRe: get X , Y coordinate of notifyIcon using win32 calls Pin
ThomasMiller26-Mar-05 13:42
ThomasMiller26-Mar-05 13:42 

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.