Click here to Skip to main content
14,983,344 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm trying to load a text file from 1 form and load that information into multiple text boxes on the other form.

As well as save whatever is typed in the text boxes and save it as a text file and do what is mentioned above.

What I have tried:

I have tired multiple things but can't seem to be able to have the load button load the file to the other forms textbox
Posted
Updated 29-Apr-21 0:50am

1 solution

Exactly how depends on the "relationship" between the two forms.
Have a look at these, one of them will fit your circumstances.
The form that creates an instance of another:
C#
MyForm mf = new MyForm();
mf.Show();
Is the "parent", the other form is the "child".
(This doesn't imply any formal MDI relationship)

Transferring information between two forms, Part 1: Parent to Child[^]
Transferring information between two forms, Part 2: Child to Parent[^]
Transferring information between two forms, Part 3: Child to Child[^]
   
Comments
CPallini 29-Apr-21 6:52am
   
5.
Aurora51x 29-Apr-21 6:53am
   
I'll give that a go, thanks for the response!
OriginalGriff 29-Apr-21 7:21am
   
You're welcome!

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