Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a flowchart in form1 and whatever the values of a variable collected throughout the flowchart in each step is plotted in graph in form2 that is called from form1 when button is clicked
Form2 form2 = new Form2();

form2.show();

so the graph is opened in new form whenever the button is clicked. i want to show the value of variable in graph at any point of execution in one single form. is it possible.

What I have tried:

i have also tried user control but some how i couldnt.
Posted
Updated 11-Oct-21 6:36am

1 solution

Passing information between forms is quite simple, but it's also very easy to do it the wrong way. Have a look at this series of 3 tips from OriginalGriff to see best practice
Transferring information between two forms, Part 1: Parent to Child[^]

If you are still stuck after that then you will have to give us a clearer explanation of where you are stuck or what isn't working.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900