Fill a listbox1

  • Thread starter Thread starter Jan
  • Start date Start date
J

Jan

Hi there,

Is there a solution to the following problem:

I've got a button1 in form2, with this button1 I want to fill a listbox in
form1.
How can I make listbox1 in form1 accesable for form2??

thank you
 
* Jan said:
I've got a button1 in form2, with this button1 I want to fill a listbox in
form1.
How can I make listbox1 in form1 accesable for form2??

In the 2nd form:

\\\
Private m_t As TextBox

Public Sub New(ByVal ResultTextBox As TextBox)
MyBase.New()
m_t = ResultTextBox
InitializeComponent()
End Sub

' You can access the control with m_t.
///


Main form:

\\\
Dim f As New Form1(Me.TextBox1)
f.Show()
///
 
Back
Top