How To Create A Collection Class with VB.NET

  • Thread starter Thread starter Supra
  • Start date Start date
S

Supra

how will i do in vb.net? in vb6 i have no problem. i have rewritten
in vb.net but i got white blank form. i am doing irc chat project
similar mirc chat.

in vb6 class module (not module module)

Public varNewChannel as Collection

Public Property Get NewChannel () as Collection
Set NewChannel = varNewChannel
End Property

Public Property Let NewChannel(byval var as Object)
varNewChannel = var
End Propewrty

Public Sub fChannel(byval sText as string)
Dim m_Chan as New frmChannel
m_Chan.Text= sText
varNewChannel.Item.Add m_Chan,sText
m_Chan.Tag = sText
End Sub

Public Class_Intialize()
Set Me.NewChannel = New Collection =====> that is the only problem
like public sub New() in vb.net
End Sub


in vb.net, do i have to put" import System.Collection"?

regards,
supra
 
Back
Top