Stu

Stu

  • NA
  • 1
  • 0

Sending a string varible from one form to another via button click event

Apr 9 2008 6:29 PM
Hi there,

I am new to C# and was wondering if someone can help me with an issue with a windows app that I am currently working on?

I have two forms Form1 and Form2 I have a string varible in both forms. I call Form2 from Form1 via a menu option and would like to send a string value from Form2 to Form1 via a button click event. The idea is that the user will go itno the options menu on Form1 go to Form2 and make changes to the layout etc which calls a file location string to be passed back to Form1 when the user clicks OK.

I have manged to call Form2 from Form1 ok using the below but I am not sure how to pass the string back once the user has finished?

I would be greatful if someone could point me in the right direction?

Answers (2)