Click here to Skip to main content
15,892,643 members
Home / Discussions / C#
   

C#

 
AnswerRe: Query an Excel Spreadsheet Pin
JOAT-MON19-Mar-12 13:27
JOAT-MON19-Mar-12 13:27 
GeneralRe: Query an Excel Spreadsheet Pin
PDTUM19-Mar-12 13:51
PDTUM19-Mar-12 13:51 
GeneralRe: Query an Excel Spreadsheet Pin
JOAT-MON19-Mar-12 14:12
JOAT-MON19-Mar-12 14:12 
AnswerRe: Query an Excel Spreadsheet Pin
PDTUM21-Mar-12 20:10
PDTUM21-Mar-12 20:10 
GeneralRe: Query an Excel Spreadsheet Pin
JOAT-MON21-Mar-12 21:48
JOAT-MON21-Mar-12 21:48 
Questionregex for validating port number Pin
anik butt19-Mar-12 6:28
anik butt19-Mar-12 6:28 
AnswerRe: regex for validating port number Pin
BobJanova19-Mar-12 6:33
BobJanova19-Mar-12 6:33 
AnswerRe: regex for validating port number Pin
phil.o19-Mar-12 7:19
professionalphil.o19-Mar-12 7:19 
Regex is, IMHO, not indicated here, at all.

You could write an event handler for the OnKeyDown event to filter other keys than numeric ones.

But validation would better be something like :

C#
private void TextBox_Validating(object sender, CancelEventArgs e)
{
   ushort port;

   if (!ushort.TryParse(yourTextBox.Text, out port))
      e.Cancel = true;
}

No memory stick has been harmed during establishment of this signature.

AnswerRe: regex for validating port number Pin
PIEBALDconsult19-Mar-12 8:42
mvePIEBALDconsult19-Mar-12 8:42 
AnswerRe: regex for validating port number Pin
jschell19-Mar-12 9:58
jschell19-Mar-12 9:58 
AnswerRe: regex for validating port number Pin
V.19-Mar-12 21:07
professionalV.19-Mar-12 21:07 
QuestionVarying sliding window size(deflate ratio) Pin
Shailesh H19-Mar-12 1:59
Shailesh H19-Mar-12 1:59 
AnswerRe: Varying sliding window size(deflate ratio) Pin
OriginalGriff19-Mar-12 4:36
mveOriginalGriff19-Mar-12 4:36 
Questionsend arraylist on network Pin
mazaher bazari18-Mar-12 23:21
mazaher bazari18-Mar-12 23:21 
AnswerRe: send arraylist on network Pin
Shameel19-Mar-12 1:05
professionalShameel19-Mar-12 1:05 
GeneralRe: send arraylist on network Pin
harold aptroot19-Mar-12 1:57
harold aptroot19-Mar-12 1:57 
QuestionUsing C#, how can I log into a website and click Continue Pin
DanYELL18-Mar-12 10:31
DanYELL18-Mar-12 10:31 
AnswerRe: Using C#, how can I log into a website and click Continue Pin
Ravi Bhavnani18-Mar-12 11:11
professionalRavi Bhavnani18-Mar-12 11:11 
AnswerRe: Using C#, how can I log into a website and click Continue Pin
PIEBALDconsult18-Mar-12 13:18
mvePIEBALDconsult18-Mar-12 13:18 
AnswerRe: Using C#, how can I log into a website and click Continue Pin
Abhinav S18-Mar-12 19:58
Abhinav S18-Mar-12 19:58 
GeneralRe: Using C#, how can I log into a website and click Continue Pin
Mohit Leekha18-Mar-12 23:10
Mohit Leekha18-Mar-12 23:10 
AnswerRe: Using C#, how can I log into a website and click Continue Pin
Gavin Roberts19-Mar-12 1:41
Gavin Roberts19-Mar-12 1:41 
AnswerRe: Using C#, how can I log into a website and click Continue Pin
harold aptroot19-Mar-12 2:20
harold aptroot19-Mar-12 2:20 
Questioni need c# codes to solve the problem.. Pin
pankaj308618-Mar-12 9:20
pankaj308618-Mar-12 9:20 
AnswerRe: i need c# codes to solve the problem.. Pin
OriginalGriff18-Mar-12 9:30
mveOriginalGriff18-Mar-12 9:30 

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.