Click here to Skip to main content
15,889,863 members
Home / Discussions / C#
   

C#

 
AnswerRe: Populate Geo Information Pin
Skippums4-Sep-07 12:56
Skippums4-Sep-07 12:56 
Questionpie charts and ba charts in window application using the crystal reports Pin
Sonia Gupta4-Sep-07 1:58
Sonia Gupta4-Sep-07 1:58 
QuestionDirectX? Pin
Muammar©4-Sep-07 1:31
Muammar©4-Sep-07 1:31 
QuestionCheck for Numeric value Pin
nagendrathecoder4-Sep-07 1:03
nagendrathecoder4-Sep-07 1:03 
AnswerRe: Check for Numeric value Pin
originSH4-Sep-07 1:14
originSH4-Sep-07 1:14 
GeneralRe: Check for Numeric value Pin
VenkataRamana.Gali4-Sep-07 1:32
VenkataRamana.Gali4-Sep-07 1:32 
GeneralRe: Check for Numeric value Pin
originSH4-Sep-07 1:39
originSH4-Sep-07 1:39 
GeneralRe: Check for Numeric value Pin
Gopal.S4-Sep-07 2:23
Gopal.S4-Sep-07 2:23 
Hi,

In C# "IsNumeric" method is not available. You can do its manually using "char.IsNumber() or char.IsDigit()" in KeyPress events.

Here is the code snippet:

private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
{
if (!char.IsNumber(e.KeyChar))
e.Handled = true;
}

Thanks,


Gopal.S

GeneralRe: Check for Numeric value Pin
Pete O'Hanlon4-Sep-07 2:32
mvePete O'Hanlon4-Sep-07 2:32 
GeneralRe: Check for Numeric value Pin
Gopal.S4-Sep-07 2:59
Gopal.S4-Sep-07 2:59 
GeneralRe: Check for Numeric value Pin
originSH4-Sep-07 3:24
originSH4-Sep-07 3:24 
GeneralRe: Check for Numeric value Pin
Gopal.S4-Sep-07 4:01
Gopal.S4-Sep-07 4:01 
QuestionTry to define string in Resources.resx with \n but ,NET see this as \\n Pin
Yanshof4-Sep-07 0:45
Yanshof4-Sep-07 0:45 
QuestionDropdown column in Datagrid Pin
André Stroebel4-Sep-07 0:41
André Stroebel4-Sep-07 0:41 
AnswerRe: Dropdown column in Datagrid Pin
André Stroebel4-Sep-07 2:56
André Stroebel4-Sep-07 2:56 
QuestionCancel from Custom Installer Pin
vSoares4-Sep-07 0:30
professionalvSoares4-Sep-07 0:30 
QuestionHow to copy all listbox items to cipboard? Pin
Abelinda814-Sep-07 0:26
Abelinda814-Sep-07 0:26 
AnswerRe: How to copy all listbox items to cipboard? Pin
Colin Angus Mackay4-Sep-07 1:49
Colin Angus Mackay4-Sep-07 1:49 
GeneralRe: How to copy all listbox items to cipboard? Pin
Abelinda814-Sep-07 4:36
Abelinda814-Sep-07 4:36 
GeneralRe: How to copy all listbox items to cipboard? Pin
Colin Angus Mackay4-Sep-07 5:03
Colin Angus Mackay4-Sep-07 5:03 
Questionremoving event handlers Pin
JoZ CaVaLLo4-Sep-07 0:09
JoZ CaVaLLo4-Sep-07 0:09 
AnswerRe: removing event handlers Pin
originSH4-Sep-07 0:11
originSH4-Sep-07 0:11 
QuestionActive Directory Pin
dorine824-Sep-07 0:01
dorine824-Sep-07 0:01 
AnswerRe: Active Directory Pin
Dave Kreskowiak4-Sep-07 5:39
mveDave Kreskowiak4-Sep-07 5:39 
QuestionI'm going crazy! C# operators Pin
Eli Nurman3-Sep-07 23:48
Eli Nurman3-Sep-07 23:48 

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.