Click here to Skip to main content
15,919,336 members
Home / Discussions / C#
   

C#

 
GeneralUsing LAPACK routines Pin
amitmohanty12-Jul-05 6:48
amitmohanty12-Jul-05 6:48 
GeneralRe: Using LAPACK routines Pin
Dave Kreskowiak12-Jul-05 8:18
mveDave Kreskowiak12-Jul-05 8:18 
GeneralNET REmoting & soapsuds Pin
Iurii Okhmat12-Jul-05 6:43
Iurii Okhmat12-Jul-05 6:43 
GeneralRe: NET REmoting & soapsuds Pin
Tom Larsen12-Jul-05 11:45
Tom Larsen12-Jul-05 11:45 
GeneralWindows form controls vanish in runtime Pin
StealthEX12-Jul-05 6:06
StealthEX12-Jul-05 6:06 
GeneralCustom Cursors disappears !!! Pin
RajeshGuptha12-Jul-05 5:42
RajeshGuptha12-Jul-05 5:42 
QuestionCan Somone answer my question? Pin
DeepToot12-Jul-05 5:38
DeepToot12-Jul-05 5:38 
AnswerRe: Can Somone answer my question? Pin
MoustafaS12-Jul-05 11:27
MoustafaS12-Jul-05 11:27 
GeneralRe: Can Somone answer my question? Pin
DeepToot12-Jul-05 11:43
DeepToot12-Jul-05 11:43 
GeneralSave image as CMYK Pin
F_A_C12-Jul-05 5:23
F_A_C12-Jul-05 5:23 
Generalpointer in C# Pin
amitmohanty12-Jul-05 4:59
amitmohanty12-Jul-05 4:59 
GeneralRe: pointer in C# Pin
Judah Gabriel Himango12-Jul-05 5:02
sponsorJudah Gabriel Himango12-Jul-05 5:02 
GeneralRe: pointer in C# Pin
amitmohanty12-Jul-05 5:10
amitmohanty12-Jul-05 5:10 
GeneralRe: pointer in C# Pin
Judah Gabriel Himango12-Jul-05 5:43
sponsorJudah Gabriel Himango12-Jul-05 5:43 
GeneralRe: pointer in C# Pin
Guffa12-Jul-05 5:53
Guffa12-Jul-05 5:53 
GeneralRe: pointer in C# Pin
amitmohanty12-Jul-05 6:03
amitmohanty12-Jul-05 6:03 
GeneralRe: pointer in C# Pin
Guffa12-Jul-05 6:45
Guffa12-Jul-05 6:45 
GeneralRe: pointer in C# Pin
amitmohanty12-Jul-05 6:49
amitmohanty12-Jul-05 6:49 
GeneralRe: pointer in C# Pin
Guffa12-Jul-05 7:39
Guffa12-Jul-05 7:39 
GeneralRe: pointer in C# Pin
3Dizard12-Jul-05 7:09
3Dizard12-Jul-05 7:09 
GeneralExcel Reporting using a Template Pin
Alomgir Miah12-Jul-05 4:34
Alomgir Miah12-Jul-05 4:34 
GeneralEventhandler Pin
pssuresh12-Jul-05 4:12
pssuresh12-Jul-05 4:12 
GeneralRe: Eventhandler Pin
S. Senthil Kumar12-Jul-05 4:39
S. Senthil Kumar12-Jul-05 4:39 
GeneralRe: Eventhandler Pin
Gavin Jeffrey12-Jul-05 4:43
Gavin Jeffrey12-Jul-05 4:43 
GeneralRe: Eventhandler Pin
Judah Gabriel Himango12-Jul-05 4:57
sponsorJudah Gabriel Himango12-Jul-05 4:57 
If you need to, you can write your own event arguments simply by writing a class that derives from System.EventArgs.

However, you wouldn't be able to raise the event with your new arguments unless you inherit from the TextBox class and raise it yourself with your own arguments.

Here is a common handler for both:

this.yearBuiltTextBox.Enter += new EventHandler(Parse_TextBox);
this.yearRenovateTextBox.Enter += new EventHandler(Parse_TextBox);

void ParseTextBox(object sender, EventArgs e)
{
 TextBox tbSender = (TextBox)sender;
 if(sender.Enabled == false)
 {
  return;
 }


 int min, max;
 if(tbSender == this.yearBuiltTextBox)
 {
  min = 1800;
  max = 2200;
 }
 else
 {
  min = 2400;
  max = 2800;
 }

 object parseValue = DataFormatter.ParseInteger(this.yearBuiltTextBox.Text, min, max);
}


Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Homosexuality in Christianity
Judah Himango


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.