Porting the good ol' VB6 Network Browser

bc3tech

Newcomer
Joined
Dec 31, 1969
Messages
13
Location
Ames, IA
Anybody have advice on how to go about porting to VB.NET the good ol' VB6 Network Browser OCX object that you can find online? I've attached a copy.

I've tried to do this once already but with no success. I can convert all the code into recognizable syntax by .NET but the problem I'm having is where one of the classes starts trying to assign attributes with it's LET and GET statements.

Please let me know if you have advice or if you know of someplace that has a .NET network browsing object (open source or not) that's for download.

Thanks!
 

Attachments

Oh yes, I'm also having problems in one of the properties where it tries to mess with some sort of an enumerator. Not sure how to get that to VB.NET style either.

Thanks again
 
Properties are still there in vb.net, only using slightly different syntax. Also there is just Get and Set, no Let. If you're porting a collection class, you'll probably have to rewrite it inheriting from CollectionBase.
 
divil said:
Properties are still there in vb.net, only using slightly different syntax. Also there is just Get and Set, no Let. If you're porting a collection class, you'll probably have to rewrite it inheriting from CollectionBase.

Yup i've managed to convert all the let get set stuff to work right, but the problems w/ the enumerators and the attribute settings are the ones that i'm facing now.

so you're saying if i

Code:
inherit collectionBase

it'll fix stuff?
 
Not magically no :)

I'm assuming when you talk about enumeration stuff you have a vb6 class which serves as a collection of another class (I don't have time to download the project right now). To make collections in vb.net, you inherit from collectionbase.
 
Back
Top