469,647 Members | 1,789 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,647 developers. It's quick & easy.

Guide to take a vb6 class and "convert" it to a class usable in vb .net

Hello,

I decided to not spend the rest of my life figuring out docking and,
instead, use the cDockingHandler class offered on Veign.com (http://
www.veign.com/vrc_codeview.asp?type=app&id=149).

The problem is that it is a class for vb6, and uses some methods,
functions and properties that are no longer supported in vb .net. I
attempted to convert it yesterday and got stuck.
Does anyone have a good guide on "converting" from vb6 to vb .net?
The two things that got me confused were the lack of Let support, and
an apparent lack of an HWnd property on a form (something that makes
or breaks this class).
Thanks very much!

Matt

Feb 5 '07 #1
2 1333
On Feb 5, 7:24 am, "Matt Brown - identify" <MatthewBr...@gmail.com>
wrote:
The two things that got me confused were the lack of Let support, and
Are you referring to property Let support? The VB.net property syntax
has both a Set and Get portion. It looks like this:

Private newPropertyValue As Integer
Public Property NewProperty() As Integer
Get
Return newPropertyValue
End Get
Set(ByVal value As Integer)
newPropertyValue = value
End Set
End Property

an apparent lack of an HWnd property on a form (something that makes
or breaks this class).
Forms have a Handle property which exposes the hWnd.

Chris

Feb 5 '07 #2
VB 2002,2003 and 2005 do not support code reuse.

you need to rewrite everything; welcome to VISUAL FRED!

Feb 7 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Michael Stevens | last post: by
5 posts views Thread by Duck Dodgers | last post: by
7 posts views Thread by Jim Bancroft | last post: by
10 posts views Thread by David Garamond | last post: by
3 posts views Thread by convert a Class Library to web service | last post: by
4 posts views Thread by Påhl Melin | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.