Click here to Skip to main content
15,887,135 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
Generallike PotMssage and User define message Pin
kobybr9-Jul-04 9:11
kobybr9-Jul-04 9:11 
GeneralRe: like PotMssage and User define message Pin
mav.northwind9-Jul-04 22:34
mav.northwind9-Jul-04 22:34 
GeneralAccepting date values Pin
Richard Jones9-Jul-04 2:33
Richard Jones9-Jul-04 2:33 
GeneralRe: Accepting date values Pin
Richard Jones12-Jul-04 7:18
Richard Jones12-Jul-04 7:18 
Generalraising an event Pin
Member 11412669-Jul-04 2:14
Member 11412669-Jul-04 2:14 
GeneralRe: raising an event Pin
mav.northwind9-Jul-04 22:26
mav.northwind9-Jul-04 22:26 
GeneralRe: raising an event Pin
Member 114126612-Jul-04 0:24
Member 114126612-Jul-04 0:24 
GeneralRe: raising an event Pin
mav.northwind12-Jul-04 2:00
mav.northwind12-Jul-04 2:00 
There's no consistent way for doing this.
If you want to raise the event from a derived control, then usually the base class offers protected OnEvent... methods to call, but if you're trying to raise an event from a different class than you're probably out of luck.
You usually have to call a method/set a property of the object you want to fire the event in such a way that the event desired is fired.
For example, if you want the TextChanged event of a TextBox to fire you can call
myTextBox.Text = "Some new Text";
and the event gets fired.
If you already have an event handler in your class for the desired event, then you can simply call this method by yourself.
For example:
// You already registered for the event
button1.Click += new EventHandler(this.button1_Click);
...
// later on you want to perform whatever is to be done as if the button was pressed
this.button1_Click(this, new EventArgs());
// or any other arguments you want to specify.


Regards,
mav
GeneralNew .NET Pin
Brendan Vogt8-Jul-04 23:26
Brendan Vogt8-Jul-04 23:26 
GeneralRe: New .NET Pin
Roman Rodov15-Jul-04 15:22
Roman Rodov15-Jul-04 15:22 
GeneralFrame Windows Pin
smack_2k27-Jul-04 10:10
smack_2k27-Jul-04 10:10 
GeneralSystemparametersinfo (Wallpaper) Pin
MeConfused7-Jul-04 7:22
MeConfused7-Jul-04 7:22 
General# of projects in Start Page Pin
Richard Jones7-Jul-04 2:14
Richard Jones7-Jul-04 2:14 
GeneralRe: # of projects in Start Page Pin
Colin Angus Mackay7-Jul-04 2:24
Colin Angus Mackay7-Jul-04 2:24 
GeneralRe: # of projects in Start Page Pin
Richard Jones8-Jul-04 1:55
Richard Jones8-Jul-04 1:55 
GeneralButton Focus in Compact Framework Pin
ripi10006-Jul-04 23:45
ripi10006-Jul-04 23:45 
GeneralGetting and Setting the Master and Wave Volume Pin
bneacetp5-Jul-04 21:37
bneacetp5-Jul-04 21:37 
GeneralRe: Getting and Setting the Master and Wave Volume Pin
mav.northwind9-Jul-04 22:47
mav.northwind9-Jul-04 22:47 
GeneralRe: Getting and Setting the Master and Wave Volume Pin
bneacetp9-Jul-04 23:06
bneacetp9-Jul-04 23:06 
GeneralMTS Pin
hatim_ali5-Jul-04 18:02
hatim_ali5-Jul-04 18:02 
GeneralRe: MTS Pin
Sendilkumar.M9-Jul-04 21:16
Sendilkumar.M9-Jul-04 21:16 
GeneralRe: MTS Pin
Serge Lobko-Lobanovsky16-Jul-04 6:52
Serge Lobko-Lobanovsky16-Jul-04 6:52 
GeneralRe: MTS Pin
Serge Lobko-Lobanovsky16-Jul-04 6:54
Serge Lobko-Lobanovsky16-Jul-04 6:54 
GeneralApp works on OS with no .NET Pin
smack_2k25-Jul-04 9:28
smack_2k25-Jul-04 9:28 
GeneralRe: App works on OS with no .NET Pin
Mike Dimmick5-Jul-04 12:52
Mike Dimmick5-Jul-04 12:52 

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.