Click here to Skip to main content
15,903,175 members
Home / Discussions / C#
   

C#

 
GeneralRe: whidbey - where is Global.asax codebehind file Pin
Heath Stewart14-Feb-05 8:27
protectorHeath Stewart14-Feb-05 8:27 
GeneralRe: whidbey - where is Global.asax codebehind file Pin
abcxyz8214-Feb-05 21:40
abcxyz8214-Feb-05 21:40 
GeneralRe: whidbey - where is Global.asax codebehind file Pin
Heath Stewart15-Feb-05 5:57
protectorHeath Stewart15-Feb-05 5:57 
GeneralRe: whidbey - where is Global.asax codebehind file Pin
abcxyz8215-Feb-05 6:47
abcxyz8215-Feb-05 6:47 
GeneralRe: whidbey - where is Global.asax codebehind file Pin
abcxyz8215-Feb-05 6:55
abcxyz8215-Feb-05 6:55 
GeneralRe: whidbey - where is Global.asax codebehind file Pin
Heath Stewart15-Feb-05 7:28
protectorHeath Stewart15-Feb-05 7:28 
GeneralMSpaint TextBox.. Pin
jk chan12-Feb-05 20:43
jk chan12-Feb-05 20:43 
GeneralRe: MSpaint TextBox.. Pin
Heath Stewart13-Feb-05 7:09
protectorHeath Stewart13-Feb-05 7:09 
MeasureString is graphics, which is why it's defined on the Graphics class. To limit text in a TextBox, you can post-validate the control (which fires when the focus is lost for that control) by handling the Validating event. If you want to limit which characters will even work, override the IsInputChar method for the TextBox:
public class NumericTextBox : TextBox
{
  protected override bool IsInputChar(char charCode)
  {
    return charCode >= '0' &&charCode <= '9';
  }
}


This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralRe: MSpaint TextBox.. Pin
jk chan13-Feb-05 16:19
jk chan13-Feb-05 16:19 
GeneralRe: MSpaint TextBox.. Pin
Luis Alonso Ramos13-Feb-05 18:56
Luis Alonso Ramos13-Feb-05 18:56 
QuestionBest Practices? Pin
12-Feb-05 19:34
suss12-Feb-05 19:34 
AnswerRe: Best Practices? Pin
jlach0112-Feb-05 19:38
jlach0112-Feb-05 19:38 
AnswerRe: Best Practices? Pin
leppie12-Feb-05 22:02
leppie12-Feb-05 22:02 
AnswerRe: Best Practices? Pin
jlach0113-Feb-05 5:05
jlach0113-Feb-05 5:05 
GeneralRe: Best Practices? Pin
Heath Stewart13-Feb-05 7:00
protectorHeath Stewart13-Feb-05 7:00 
GeneralRe: Best Practices? Pin
jlach0113-Feb-05 7:07
jlach0113-Feb-05 7:07 
GeneralRe: Best Practices? Pin
Heath Stewart13-Feb-05 7:12
protectorHeath Stewart13-Feb-05 7:12 
GeneralRe: Best Practices? Pin
jlach0113-Feb-05 7:22
jlach0113-Feb-05 7:22 
GeneralRe: Best Practices? Pin
Heath Stewart13-Feb-05 21:37
protectorHeath Stewart13-Feb-05 21:37 
QuestionHow to assign an icon to a file format Pin
oohungoo12-Feb-05 16:49
oohungoo12-Feb-05 16:49 
AnswerRe: How to assign an icon to a file format Pin
Heath Stewart13-Feb-05 7:05
protectorHeath Stewart13-Feb-05 7:05 
Generalcan't figure what's wrong with this code Pin
Pyro Joe12-Feb-05 14:07
Pyro Joe12-Feb-05 14:07 
GeneralRe: can't figure what's wrong with this code Pin
Colin Angus Mackay12-Feb-05 15:51
Colin Angus Mackay12-Feb-05 15:51 
GeneralRe: can't figure what's wrong with this code Pin
leppie12-Feb-05 22:24
leppie12-Feb-05 22:24 
GeneralRe: can't figure what's wrong with this code Pin
Colin Angus Mackay13-Feb-05 5:24
Colin Angus Mackay13-Feb-05 5:24 

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.