Windows Forms: ListBoxItem to TextBox on another Form C#

GregoryTech011

Newcomer
Joined
Jun 1, 2009
Messages
1
I have a text box on a windows form (Form1) that has the double-click event enabled. When the user double-clicks the text box, another form (Form2) opens that displays codes in a listbox. When the user double-clicks the listbox item in Form2, I need the selected item to populate the textbox on Form1. I am a ASP.NET programmer and am having difficulty achieving this task. Since I cannot use the aspx markup page, I have been unsuccessful in my syntax coding attempts. I know that I need to create a method on Form1, but can't get the syntax correct after double-clicking on the selected item in Form2. An example would greatly be appreciated. Thanks.
 
Back
Top