Click here to Skip to main content
15,902,299 members
Home / Discussions / C#
   

C#

 
GeneralRe: lock needed in this scenario? Pin
George_George25-May-08 21:28
George_George25-May-08 21:28 
AnswerRe: lock needed in this scenario? Pin
Luc Pattyn25-May-08 4:19
sitebuilderLuc Pattyn25-May-08 4:19 
GeneralRe: lock needed in this scenario? Pin
George_George25-May-08 18:53
George_George25-May-08 18:53 
GeneralRe: lock needed in this scenario? Pin
Luc Pattyn25-May-08 21:06
sitebuilderLuc Pattyn25-May-08 21:06 
GeneralRe: lock needed in this scenario? Pin
George_George25-May-08 21:27
George_George25-May-08 21:27 
GeneralRe: lock needed in this scenario? Pin
Luc Pattyn26-May-08 2:52
sitebuilderLuc Pattyn26-May-08 2:52 
GeneralRe: lock needed in this scenario? Pin
George_George26-May-08 15:39
George_George26-May-08 15:39 
Questiondoing validation in other file.cs Pin
angels77725-May-08 1:58
angels77725-May-08 1:58 
hi i would like to seperate my design page from validation. so i put the validation code in e.g validate.cs

design form

private void textboxInteger_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)
		{			
			validate.txtIntValidate(txtPhone.text)		
		}


in my validate class
class Validate
    {
        public bool txtIntValidate(string txt)
        {
            if (!Char.IsDigit(e.KeyChar) && e.KeyChar != (char)8)
            {
                e.Handled = true; // input is not passed on to the control(TextBox)                
            }            
        }
    }



BUT in the validate.cs class .. how do i declare the e..
Error 3 The name 'e' does not exist in the current context
AnswerRe: doing validation in other file.cs Pin
Christian Graus25-May-08 2:03
protectorChristian Graus25-May-08 2:03 
GeneralRe: doing validation in other file.cs Pin
angels77725-May-08 2:10
angels77725-May-08 2:10 
GeneralRe: doing validation in other file.cs Pin
#realJSOP25-May-08 2:14
professional#realJSOP25-May-08 2:14 
Questionwhich website define proje from beginer to advance?, pliz help me Pin
mbaz25-May-08 1:56
mbaz25-May-08 1:56 
AnswerRe: which website define proje from beginer to advance?, pliz help me Pin
Christian Graus25-May-08 2:06
protectorChristian Graus25-May-08 2:06 
QuestionLine changment in streamWriter and sensitive replace method Pin
Casper Hansen25-May-08 1:53
Casper Hansen25-May-08 1:53 
AnswerRe: Line changment in streamWriter and sensitive replace method Pin
Casper Hansen25-May-08 2:33
Casper Hansen25-May-08 2:33 
QuestionIFIlter: how can I read name of value-type property? Pin
Prazwol24-May-08 22:55
Prazwol24-May-08 22:55 
QuestionVisual Studio Setup and Deployment projects Pin
danielk_24-May-08 19:22
danielk_24-May-08 19:22 
AnswerRe: Visual Studio Setup and Deployment projects Pin
Dario Solera25-May-08 0:36
Dario Solera25-May-08 0:36 
QuestionActive Directory and C# Pin
Imtiaz Murtaza24-May-08 12:59
Imtiaz Murtaza24-May-08 12:59 
AnswerRe: Active Directory and C# Pin
teejayem24-May-08 13:39
teejayem24-May-08 13:39 
AnswerRe: Active Directory and C# Pin
Anthony Mushrow24-May-08 14:14
professionalAnthony Mushrow24-May-08 14:14 
AnswerRe: Active Directory and C# Pin
mav.northwind25-May-08 21:26
mav.northwind25-May-08 21:26 
QuestionPattern for GUI invocations from worker threads Pin
Jörgen Sigvardsson24-May-08 12:23
Jörgen Sigvardsson24-May-08 12:23 
AnswerRe: Pattern for GUI invocations from worker threads Pin
Jörgen Sigvardsson24-May-08 13:46
Jörgen Sigvardsson24-May-08 13:46 
GeneralRe: Pattern for GUI invocations from worker threads Pin
Dario Solera25-May-08 0:02
Dario Solera25-May-08 0:02 

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.