Guest Chrisis Posted August 27, 2002 Posted August 27, 2002 At the moment I try to bring the Items from a second Listbox to another Listbox on my primary Form ! I try to do this by creating a property on my main form which i set to me and then work with this property on my secondary form. but i don't get it working !! Main Form : Dim XXForm As New frmMain() Dim XXCount As Integer Dim XXCurrentItems = lisPersonList.Items.Count() - 1 Dim XXType As System.Type Dim XXTypeString As String Me.Close() XXType = MainForm.GetType() XXTypeString = XXType.ToString() MsgBox(XXTypeString) XXForm.lisPersonList.Items.Clear() XXForm.Show() For XXCount = 0 To XXCurrentItems XXForm.lisPersonList.Items.Add(lisPersonList.Items.Item(XXCount)) Next XXCount End Sub Public Property MainForm() Get Me.ActiveForm() End Get Set(ByVal Value) End Set End Property Quote
Guest Chrisis Posted August 28, 2002 Posted August 28, 2002 I realized it by myself !!! No more help needed !!! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.