PC Review


Reply
Thread Tools Rate Thread

How To Create A Collection Class with VB.NET

 
 
Supra
Guest
Posts: n/a
 
      22nd Nov 2004
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

 
Reply With Quote
 
 
 
 
Cor Ligthert
Guest
Posts: n/a
 
      22nd Nov 2004
To prevent everytime answering or discussion in different threads.


 
Reply With Quote
 
Supra
Guest
Posts: n/a
 
      22nd Nov 2004
there is no double posted

Cor Ligthert wrote:

>To prevent everytime answering or discussion in different threads.
>
>
>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create a type-safe, collection class that supports For Each...Next? Andrew J. Marshall Microsoft VB .NET 4 1 Week Ago 09:57 AM
Collection problems (create Collection object, add data to collection, bind collection to datagrid) Øyvind Isaksen Microsoft ASP .NET 1 18th May 2007 10:24 AM
Collection problems (create Collection object, add data to collection, bind collection to datagrid) Øyvind Isaksen Microsoft Dot NET 1 18th May 2007 10:24 AM
this is for ken tucker: How To Create A Collection Class with VB.NET Supra Microsoft VB .NET 7 23rd Nov 2004 02:10 PM
How To Create A Collection Class....... Supra Microsoft VB .NET 2 22nd Nov 2004 02:50 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:36 AM.