Jump to content
Xtreme .Net Talk

"Copy" Lsitbox-Items to another Listbox


Recommended Posts

Guest Chrisis
Posted

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

Guest Chrisis
Posted
I realized it by myself !!! No more help needed !!!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...