Click here to Skip to main content
16,006,768 members
Home / Discussions / C#
   

C#

 
NewsC# on-the-fly to control home appliance Pin
biggirl27-May-07 23:25
biggirl27-May-07 23:25 
GeneralSpam Pin
Christian Graus27-May-07 23:27
protectorChristian Graus27-May-07 23:27 
GeneralRe: Spam Pin
Colin Angus Mackay28-May-07 0:15
Colin Angus Mackay28-May-07 0:15 
Questionmenuitems Pin
treah27-May-07 23:18
treah27-May-07 23:18 
AnswerRe: menuitems Pin
Christian Graus28-May-07 0:02
protectorChristian Graus28-May-07 0:02 
GeneralRe: menuitems Pin
treah28-May-07 0:15
treah28-May-07 0:15 
GeneralRe: menuitems Pin
Seishin#28-May-07 1:17
Seishin#28-May-07 1:17 
QuestionCreating an event Pin
M. J. Jaya Chitra27-May-07 22:50
M. J. Jaya Chitra27-May-07 22:50 
I want to create a user control in which a button is there now when I am clicking the button it has to invoke some event which has to be handled by the form which is using this control.

Same task in vb can be achieve easily as follows:
In the user control
public event MyEvent()
...

public sub Button_click(byval Sender as Object...)Handles Button1.click
raiseevent MyEvent
end sub
...
In the Front end

public sub USercontrol_MyEvent() handles USercontrol.MyEvent
...
end sub


In C#, is there any option like this

Best Regards,
M. J. Jaya Chitra

AnswerRe: Creating an event Pin
CPallini27-May-07 22:55
mveCPallini27-May-07 22:55 
GeneralRe: Creating an event Pin
M. J. Jaya Chitra27-May-07 23:19
M. J. Jaya Chitra27-May-07 23:19 
Questionnotifyicon Pin
Saritha Devaki27-May-07 22:44
Saritha Devaki27-May-07 22:44 
AnswerRe: notifyicon Pin
mav.northwind27-May-07 22:54
mav.northwind27-May-07 22:54 
GeneralRe: notifyicon Pin
Saritha Devaki27-May-07 22:57
Saritha Devaki27-May-07 22:57 
Questionprintdialog Pin
Saritha Devaki27-May-07 22:36
Saritha Devaki27-May-07 22:36 
AnswerRe: printdialog Pin
Giorgi Dalakishvili27-May-07 22:46
mentorGiorgi Dalakishvili27-May-07 22:46 
Questionvideo and audio equipment Pin
jason_mf27-May-07 22:01
jason_mf27-May-07 22:01 
AnswerRe: video and audio equipment Pin
Christian Graus27-May-07 22:13
protectorChristian Graus27-May-07 22:13 
GeneralRe: video and audio equipment Pin
jason_mf27-May-07 22:23
jason_mf27-May-07 22:23 
GeneralRe: video and audio equipment Pin
Christian Graus27-May-07 23:28
protectorChristian Graus27-May-07 23:28 
Questionplottinggraphs Pin
prateek_nitw27-May-07 21:58
prateek_nitw27-May-07 21:58 
AnswerRe: plottinggraphs Pin
Christian Graus27-May-07 22:12
protectorChristian Graus27-May-07 22:12 
Questionproblem occured while using bmp Pin
IrfanHaleem27-May-07 21:58
IrfanHaleem27-May-07 21:58 
AnswerRe: problem occured while using bmp Pin
Guffa27-May-07 22:11
Guffa27-May-07 22:11 
AnswerRe: problem occured while using bmp Pin
Christian Graus27-May-07 22:11
protectorChristian Graus27-May-07 22:11 
AnswerRe: problem occured while using bmp Pin
blackjack215027-May-07 22:52
blackjack215027-May-07 22: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.