I have designed a windows form, in which I have placed 3 buttons and a richtextBox.
Now I want to get program code in richtextbox on different button click, that I have written in click() event of each button.
Example
private void button1_Click(object sender, ButtonEventArgs e)
{
some code lines goes here //
.... // All these lines to be displayed in richtextBox
.... //
}
I think you'd have to actually link-to and read the source files to do this. Once your application is compiled your C# code becomes IL code and does not look the same at all.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With