I'm trying to make an application with multiple forms. When a button is pressed 1st form hides and 2nd form opens. I have a combo Box on the first form. I want to get the text of that combo Box and show it in 2nd form. I tried it using FileStream and it worked well. I wonder if there is some other way to do it, an easy one. I mean, passing the String from one form to another.

3 Years
Discussion Span
Last Post by Shark_1

Actually if you create a new form1 object in form2 and show it from there, you can access the combobox on form1 even after the form is closed.

On a side note, you really should be able to show some code when you ask a question.


There are several process to transfer data from one form to other. Create a property for the form2 and assign the value to the property before showing Form2.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.