bc3tech Posted March 13, 2003 Posted March 13, 2003 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 Quote
bc3tech Posted March 13, 2003 Author Posted March 13, 2003 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 Quote
*Gurus* divil Posted March 13, 2003 *Gurus* Posted March 13, 2003 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. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
bc3tech Posted March 13, 2003 Author Posted March 13, 2003 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? Quote
*Gurus* divil Posted March 13, 2003 *Gurus* Posted March 13, 2003 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. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Administrators PlausiblyDamp Posted May 8, 2003 Administrators Posted May 8, 2003 Inherits System.Collections.DictionaryBase may be better in this case as you get the name / value pair way of dealing with items. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.