Click here to Skip to main content
16,005,552 members
Home / Discussions / C#
   

C#

 
AnswerRe: Font conversion when XML serialize Pin
topcatalpha14-Nov-06 2:58
topcatalpha14-Nov-06 2:58 
QuestionUnable to start debugging In VS2005 Pin
GnanaprakashJebaraj9-Nov-06 2:32
GnanaprakashJebaraj9-Nov-06 2:32 
AnswerRe: Unable to start debugging In VS2005 Pin
Yustme9-Nov-06 3:57
Yustme9-Nov-06 3:57 
GeneralRe: Unable to start debugging In VS2005 Pin
GnanaprakashJebaraj9-Nov-06 17:38
GnanaprakashJebaraj9-Nov-06 17:38 
QuestionNumericUpDown Pin
sujithkumarsl9-Nov-06 2:26
sujithkumarsl9-Nov-06 2:26 
AnswerRe: NumericUpDown Pin
Ashish Derhgawen9-Nov-06 3:29
Ashish Derhgawen9-Nov-06 3:29 
GeneralRe: NumericUpDown Pin
sujithkumarsl9-Nov-06 18:40
sujithkumarsl9-Nov-06 18:40 
GeneralRe: NumericUpDown [modified] Pin
Ashish Derhgawen9-Nov-06 22:12
Ashish Derhgawen9-Nov-06 22:12 
It seems like you're using an older version of the .NET Framework. System.Windows.Forms.KeyEventArgs.SuppressKeyPress is only supported in versions 2.0 and 3.0. Well, this isn't the end of the world..there's always an alternative. Smile | :) Try this in the KeyPress event:

private void numericUpDown1_KeyPress(object sender, KeyPressEventArgs e)<br />
{<br />
    if (e.KeyChar >= (char)Keys.D5)<br />
    {<br />
        e.Handled = true;<br />
    }<br />
}


This should prevent the user from entering keys greater than 5 on the keyboard. This won't work if the user uses the numeric keypad. Just play with the ">= (char)Keys.D5)" part to get the desired results.

Hope that helps,
Ashish


-- modified at 4:22 Friday 10th November, 2006

Time flies like an arrow;
Fruit flies like a banana.


Ashish Derhgawen - http://ashishrd.blogspot.com[^]

GeneralRe: NumericUpDown Pin
sujithkumarsl9-Nov-06 22:51
sujithkumarsl9-Nov-06 22:51 
GeneralRe: NumericUpDown Pin
sujithkumarsl10-Nov-06 1:27
sujithkumarsl10-Nov-06 1:27 
QuestionRegarding 70-315 Pin
Mirunab9-Nov-06 1:56
Mirunab9-Nov-06 1:56 
AnswerRe: Regarding 70-315 Pin
Colin Angus Mackay9-Nov-06 3:27
Colin Angus Mackay9-Nov-06 3:27 
GeneralRe: Regarding 70-315 Pin
Mirunab10-Nov-06 2:46
Mirunab10-Nov-06 2:46 
GeneralRe: Regarding 70-315 Pin
Colin Angus Mackay10-Nov-06 8:43
Colin Angus Mackay10-Nov-06 8:43 
QuestionHow to check an internet connection Pin
CodeItWell9-Nov-06 1:34
CodeItWell9-Nov-06 1:34 
AnswerRe: How to check an internet connection Pin
mertkan659-Nov-06 2:40
mertkan659-Nov-06 2:40 
QuestionTreeview problem [modified] Pin
Suhas Bothe9-Nov-06 1:33
Suhas Bothe9-Nov-06 1:33 
AnswerRe: Treeview problem Pin
Robert Rohde9-Nov-06 2:05
Robert Rohde9-Nov-06 2:05 
GeneralRe: Treeview problem Pin
Suhas Bothe9-Nov-06 2:24
Suhas Bothe9-Nov-06 2:24 
GeneralRe: Treeview problem Pin
Robert Rohde9-Nov-06 3:00
Robert Rohde9-Nov-06 3:00 
GeneralRe: Treeview problem Pin
Suhas Bothe9-Nov-06 2:28
Suhas Bothe9-Nov-06 2:28 
GeneralRe: Treeview problem Pin
vinSharp9-Nov-06 22:42
vinSharp9-Nov-06 22:42 
QuestionMulti Monitor Application Pin
blackpenny159-Nov-06 1:24
blackpenny159-Nov-06 1:24 
AnswerRe: Multi Monitor Application Pin
mav.northwind10-Nov-06 20:44
mav.northwind10-Nov-06 20:44 
QuestionIs there a setting in visual studio for the Convert.ToDateTime? Pin
Support1239-Nov-06 0:46
Support1239-Nov-06 0:46 

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.