Click here to Skip to main content
15,922,533 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everyone,

I have a form in Visual Studio 2010 that has to textboxes ready for user input, and on a button click ("Add"), the text that is typed in the two textboxes has to appear in a listview which is on a different form.

Both forms are open a this point, but once the "Add" button has been clicked, the form with the two textboxes needs to close (which I know will be just a "Me.close()"), and the two items will appear in the listview on the other form.

Also, I should be allowed to add as many times as I want to the listview using the same process.

Much appreciated for your thoughts...
Tom.
Posted

1 solution

hello friend
to archive this follow these steps

1) First Approach
1)U can change the modifiers property to internal
2) and from second form U add it in this manner

form1.listview.items.Add(textbox1.text)
 
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