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

  • Thread starter Matt Brown - identify
  • 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
 
C

Chris Dunaway

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
 
A

aaron.kempf

VB 2002,2003 and 2005 do not support code reuse.

you need to rewrite everything; welcome to VISUAL FRED!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top