I am working on a simple project, however i am a newcomer in C sharp. Basically i am android developer but i am learning c#. I have two forms say for example — form1 and form2. On form1 there is button. On click of this button form2 is open and certain value from form1 has to be transferred to form2. How to transfer it.
Please help me as i don’t have any idea.
In the From2 class you should add the public property
for example and on Form2 designer add the Label control add in form load event set to the label Text property value from MyProperty
after that in the button click event handler in Form1
add the following code
that all what you need to do