Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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!

f_175.zip

Posted

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

  • *Gurus*
Posted
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.

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

Posted
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

 

inherit collectionBase

 

it'll fix stuff?

  • *Gurus*
Posted

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.

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

  • 1 month later...

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...