Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
GeneralRe: DataGridView + Excel Pin
boakineo8-Jan-10 3:53
boakineo8-Jan-10 3:53 
AnswerRe: DataGridView + Excel Pin
Ashfield8-Jan-10 3:45
Ashfield8-Jan-10 3:45 
QuestionWhic is the Best Way of Writing code? and Why? Pin
Joe Rozario7-Jan-10 22:44
Joe Rozario7-Jan-10 22:44 
AnswerRe: Whic is the Best Way of Writing code? and Why? Pin
Eddy Vluggen7-Jan-10 22:59
professionalEddy Vluggen7-Jan-10 22:59 
GeneralRe: Whic is the Best Way of Writing code? and Why? Pin
Joe Rozario8-Jan-10 0:31
Joe Rozario8-Jan-10 0:31 
AnswerRe: Whic is the Best Way of Writing code? and Why? Pin
OriginalGriff7-Jan-10 23:02
mveOriginalGriff7-Jan-10 23:02 
GeneralRe: Whic is the Best Way of Writing code? and Why? Pin
Joe Rozario8-Jan-10 0:33
Joe Rozario8-Jan-10 0:33 
Questioncustom textbox or masked textbox Pin
Erdinc277-Jan-10 22:17
Erdinc277-Jan-10 22:17 
hi guys...i have at least 10 textboxes in my form which allow ony to enter numeric values..but some of them will be codes like phone codes and the other textbox will be the rest of phone number like 342 2222222...to make it i wrote that codes to the txtKod_Keypress event the below codes

private void txtKod_KeyPress(object sender, KeyPressEventArgs e)
{
if (!char.IsNumber(e.KeyChar))
e.Handled = char.IsLetter(e.KeyChar);
if (txtKod.Text.Length == 3)

{
e.Handled = char.IsLetter(e.KeyChar);
e.Handled = char.IsNumber(e.KeyChar);
}
}

but it allows to enter letters after i entered 3 numbers actually allows everything...i dont know what is wrong there???
and another question do u suggest me to make a method like that and call it every time i need or to create my own numeric textbox by using Component Class ??
and i searched about masked textbox but there are underlines and not exactly the thing i wanted to see...so may i change its format ?
AnswerRe: custom textbox or masked textbox Pin
dojohansen8-Jan-10 0:13
dojohansen8-Jan-10 0:13 
GeneralRe: custom textbox or masked textbox Pin
dojohansen8-Jan-10 0:16
dojohansen8-Jan-10 0:16 
GeneralRe: custom textbox or masked textbox Pin
Erdinc278-Jan-10 0:43
Erdinc278-Jan-10 0:43 
AnswerRe: custom textbox or masked textbox Pin
carlecomm10-Jan-10 21:02
carlecomm10-Jan-10 21:02 
QuestionHow to crop image (C#) Pin
boakineo7-Jan-10 21:45
boakineo7-Jan-10 21:45 
AnswerRe: How to crop image (C#) Pin
OriginalGriff7-Jan-10 22:15
mveOriginalGriff7-Jan-10 22:15 
AnswerRe: How to crop image (C#) Pin
Alan Balkany8-Jan-10 4:32
Alan Balkany8-Jan-10 4:32 
AnswerRe: How to crop image (C#) Pin
inzamamkhan20-Jan-11 0:34
inzamamkhan20-Jan-11 0:34 
Questionmapped drives are not seeing when connect with wmi Pin
sujithkumarsl7-Jan-10 21:25
sujithkumarsl7-Jan-10 21:25 
AnswerRe: mapped drives are not seeing when connect with wmi Pin
Dave Kreskowiak8-Jan-10 4:20
mveDave Kreskowiak8-Jan-10 4:20 
QuestionBiometric Standards Pin
Adriaan Davel7-Jan-10 21:00
Adriaan Davel7-Jan-10 21:00 
AnswerRe: Biometric Standards Pin
Jimmanuel8-Jan-10 5:15
Jimmanuel8-Jan-10 5:15 
GeneralRe: Biometric Standards Pin
Adriaan Davel10-Jan-10 19:12
Adriaan Davel10-Jan-10 19:12 
GeneralRe: Biometric Standards Pin
Jimmanuel11-Jan-10 2:58
Jimmanuel11-Jan-10 2:58 
GeneralRe: Biometric Standards Pin
Adriaan Davel11-Jan-10 20:31
Adriaan Davel11-Jan-10 20:31 
Questionhow can i release objects....... Pin
koolprasad20037-Jan-10 20:23
professionalkoolprasad20037-Jan-10 20:23 
AnswerRe: how can i release objects....... Pin
Roger Wright7-Jan-10 20:55
professionalRoger Wright7-Jan-10 20:55 

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.