Click here to Skip to main content
15,896,444 members
Home / Discussions / C#
   

C#

 
GeneralRe: Base Conversion Pin
YNick5-Nov-07 15:51
YNick5-Nov-07 15:51 
GeneralRe: Base Conversion Pin
PIEBALDconsult5-Nov-07 16:13
mvePIEBALDconsult5-Nov-07 16:13 
GeneralRe: Base Conversion Pin
Colin Angus Mackay5-Nov-07 22:40
Colin Angus Mackay5-Nov-07 22:40 
GeneralRe: Base Conversion Pin
YNick6-Nov-07 6:27
YNick6-Nov-07 6:27 
GeneralRe: Base Conversion Pin
Colin Angus Mackay6-Nov-07 6:50
Colin Angus Mackay6-Nov-07 6:50 
GeneralRe: Base Conversion [modified] Pin
YNick6-Nov-07 7:28
YNick6-Nov-07 7:28 
GeneralRe: Base Conversion Pin
Colin Angus Mackay6-Nov-07 9:03
Colin Angus Mackay6-Nov-07 9:03 
QuestionEventArgs Pin
half-life5-Nov-07 7:35
half-life5-Nov-07 7:35 
Hi,

i have a User Control i've created
When a property is changed i like to raise an event
in the Form Hosting The user control
but i also want to pass a value to The Form

i've Done this :

<br />
//In The UserControl :<br />
<br />
public event EventHandler MyVarChanged;<br />
<br />
private void OnChanged(FireEventArgs e) <br />
{<br />
 if (MyVarChanged != null)<br />
     MyVarChanged(this, e);<br />
}<br />
<br />
and in the Set {} of The property:<br />
if (myVar > 10)<br />
    OnChanged(EventArgs.Empty);<br />


in The Form :
<br />
private void userControl11_MyVarChanged(object sender, EventArgs e)<br />
{<br />
  // Do Something          <br />
}<br />


So Far So Good
but i like to pass a parameter
How Do I continue...

THNKS Smile | :)

Have Fun
Never forget it

AnswerRe: EventArgs Pin
Judah Gabriel Himango5-Nov-07 7:58
sponsorJudah Gabriel Himango5-Nov-07 7:58 
GeneralRe: EventArgs Pin
half-life5-Nov-07 8:07
half-life5-Nov-07 8:07 
GeneralRe: EventArgs [modified] Pin
TJoe5-Nov-07 8:12
TJoe5-Nov-07 8:12 
GeneralRe: EventArgs Pin
half-life5-Nov-07 8:15
half-life5-Nov-07 8:15 
GeneralRe: EventArgs Pin
half-life5-Nov-07 8:14
half-life5-Nov-07 8:14 
GeneralRe: EventArgs Pin
Pete O'Hanlon5-Nov-07 10:10
mvePete O'Hanlon5-Nov-07 10:10 
GeneralRe: EventArgs Pin
half-life5-Nov-07 10:14
half-life5-Nov-07 10:14 
GeneralRe: EventArgs Pin
half-life5-Nov-07 10:16
half-life5-Nov-07 10:16 
GeneralRe: EventArgs Pin
Pete O'Hanlon5-Nov-07 10:30
mvePete O'Hanlon5-Nov-07 10:30 
Question[WPF] Pin
LordArcane5-Nov-07 6:46
LordArcane5-Nov-07 6:46 
QuestionIntPtr to Delegate in .NET 1.1 Pin
__DanC__5-Nov-07 6:42
__DanC__5-Nov-07 6:42 
AnswerRe: IntPtr to Delegate in .NET 1.1 Pin
Judah Gabriel Himango5-Nov-07 7:11
sponsorJudah Gabriel Himango5-Nov-07 7:11 
GeneralRe: IntPtr to Delegate in .NET 1.1 Pin
__DanC__5-Nov-07 22:03
__DanC__5-Nov-07 22:03 
GeneralRe: IntPtr to Delegate in .NET 1.1 Pin
Judah Gabriel Himango6-Nov-07 3:54
sponsorJudah Gabriel Himango6-Nov-07 3:54 
GeneralRe: IntPtr to Delegate in .NET 1.1 Pin
__DanC__6-Nov-07 4:01
__DanC__6-Nov-07 4:01 
GeneralRe: IntPtr to Delegate in .NET 1.1 Pin
Judah Gabriel Himango6-Nov-07 5:14
sponsorJudah Gabriel Himango6-Nov-07 5:14 
Question(WPF)Navigating with windows and custom controls? [modified] Pin
wolfshad35-Nov-07 6:34
wolfshad35-Nov-07 6:34 

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.