Click here to Skip to main content
15,914,111 members
Home / Discussions / C#
   

C#

 
GeneralRe: StringBuilder to Byte[] Pin
superPaul10124-Feb-06 4:38
superPaul10124-Feb-06 4:38 
QuestionPictureBox image Pin
Cannoneer24-Feb-06 2:14
Cannoneer24-Feb-06 2:14 
AnswerRe: PictureBox image Pin
Steve Hansen24-Feb-06 4:02
Steve Hansen24-Feb-06 4:02 
GeneralRe: PictureBox image Pin
Cannoneer24-Feb-06 4:13
Cannoneer24-Feb-06 4:13 
QuestionNew Process in WinXP Pin
perlom24-Feb-06 1:29
perlom24-Feb-06 1:29 
QuestionNumeric function Pin
mostafa_h24-Feb-06 1:07
mostafa_h24-Feb-06 1:07 
AnswerRe: Numeric function Pin
Green Fuze24-Feb-06 2:26
Green Fuze24-Feb-06 2:26 
AnswerRe: Numeric function Pin
Wjousts24-Feb-06 3:07
Wjousts24-Feb-06 3:07 
mostafa_h wrote:
but I can enter "5.5" or "6/8" in the TextBox .
how can it possible that the user enter "ONLY Number " in textbox.


You are parsing the string to a double, so why shouldn't you be able to enter 5.5? It is a double!
If you want only integers then use int.Parse.
Otherwise you can check each character entered as the other poster has proposed. Use Char.IsDigit to determine if it is a valid digit and reject anything else. But consider whether you need to support negative numbers as well. In that case you need to check for - as well.
GeneralRe: Numeric function Pin
mostafa_h24-Feb-06 4:08
mostafa_h24-Feb-06 4:08 
GeneralRe: Numeric function Pin
Dan Neely24-Feb-06 4:32
Dan Neely24-Feb-06 4:32 
GeneralRe: Numeric function Pin
mostafa_h24-Feb-06 5:14
mostafa_h24-Feb-06 5:14 
GeneralRe: Numeric function Pin
Wjousts24-Feb-06 10:44
Wjousts24-Feb-06 10:44 
QuestionReferenced assembly from dynamically generated assembly. Pin
janman24-Feb-06 0:03
janman24-Feb-06 0:03 
AnswerRe: Referenced assembly from dynamically generated assembly. Pin
Nicholas Butler24-Feb-06 5:43
sitebuilderNicholas Butler24-Feb-06 5:43 
GeneralRe: Referenced assembly from dynamically generated assembly. Pin
janman24-Feb-06 8:22
janman24-Feb-06 8:22 
Questionc# or c#.net Pin
ranzask23-Feb-06 23:49
ranzask23-Feb-06 23:49 
AnswerRe: c# or c#.net Pin
Dario Solera24-Feb-06 0:35
Dario Solera24-Feb-06 0:35 
AnswerRe: c# or c#.net Pin
Ingo24-Feb-06 0:35
Ingo24-Feb-06 0:35 
AnswerRe: c# or c#.net Pin
Dan Neely24-Feb-06 2:05
Dan Neely24-Feb-06 2:05 
GeneralRe: c# or c#.net Pin
Dario Solera24-Feb-06 0:40
Dario Solera24-Feb-06 0:40 
QuestionCan't connect directly to peer Pin
kendao23-Feb-06 23:30
kendao23-Feb-06 23:30 
AnswerRe: Can't connect directly to peer Pin
Nicholas Butler23-Feb-06 23:36
sitebuilderNicholas Butler23-Feb-06 23:36 
AnswerRe: Can't connect directly to peer Pin
Divyang Mithaiwala24-Feb-06 2:50
Divyang Mithaiwala24-Feb-06 2:50 
QuestionCustomizing Tree Node Pin
gubber23-Feb-06 23:24
gubber23-Feb-06 23:24 
AnswerRe: Customizing Tree Node Pin
mav.northwind23-Feb-06 23:36
mav.northwind23-Feb-06 23:36 

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.