Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

c# get event declariation

$
0
0
at runtime, by double-clicking on a control, would inform a textbox the statement double click event of this control. Example: label1 in Form1. User gives double click on it and show the TextBox.Text = "private void label1_Click (object sender, EventArgs e)" and in the case of a mouse event TextBox.Text = "private void label1_MouseDoubleClick (object sender, MouseEventArgs e)"

How to get this statement? There are several statements, usually the first parameter is the object sender and the second parameter can be EventArgs or derived.

Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>