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

  • Thread starter Thread starter Matt Brown - identify
  • Start date Start date
M

Matt Brown - identify

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
 
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
 
VB 2002,2003 and 2005 do not support code reuse.

you need to rewrite everything; welcome to VISUAL FRED!
 
Back
Top