Hi,
How to select a value from a ComboBox / Listbox on the newly opened form (Childform), and send this value immediately on select to the opener parent form (Parent Form)
The clickable button which will open a listbox should be placed next to textbox control(The size of the textbox is large enough to hold it) on parent form. It is required that we use a listbox populated with some values in child form.When the user selects a value(text) in the listbox,
1) the listbox should disappear.
2) The text selected should be automatically inserted into the textbox. (on parent form)
Any alternatives ?
Thanks.
Simple, just add this code in the child form
List1 is the list in the child formCode:Private Sub List1_Click() List1.Visible = False Form1.Text1.Text = List1.Text End Sub
form1 is the parent forum
text1 is the textbox that will hold the value on the parent form.
Hope it helped.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks