Hello,

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.

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.