Click here to Skip to main content
16,005,339 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hello its me again, on to a new fire, and thanks again for your help.

I receive declaration expected errors using the following code:

VB
Private WithEvents mConnection As clsConnection
Attribute mConnection.VB_VarHelpID = -1
Private WithEvents mTimer As clsTimer
Attribute mTimer.VB_VarHelpID = -1


and

VB
VERSION 1.0 CLASS
BEGIN
  MultiUse = -1  'True
  Persistable = 0  'NotPersistable
  DataBindingBehavior = 0  'vbNone
  DataSourceBehavior  = 0  'vbNone
  MTSTransactionMode  = 0  'NotAnMTSObject
END
Attribute VB_Name = "clsRegistry"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_Description = "Allows access to the {application name withheld} registry entrys"
Attribute VB_Ext_KEY = "SavedWithClassBuilder6" ,"Yes"
Attribute VB_Ext_KEY = "Top_Level" ,"Yes"
Posted
Comments
Dave Kreskowiak 20-Aug-12 13:39pm    
Your tags say VB.NET, but this looks like VB6 code. The two are completely different animals. So, which is it?
Christian Graus 20-Aug-12 14:45pm    
Don't do VB6. Life is too short
Sergey Alexandrovich Kryukov 20-Aug-12 17:05pm    
5++! :-)
Is it your own saying? If so, I would like to quote it sometimes, with proper attribution. May I?
--SA
Christian Graus 20-Aug-12 17:10pm    
Yes, that was off the cuff. By all means, use it :-) I've had to convert a lot of VB6 code to .NEt of late, I am not feeling the love, at all.
Sergey Alexandrovich Kryukov 20-Aug-12 17:33pm    
Hm. Really sorry for you and your wasted life... :-( :-)
Thank you very much,
--SA

1 solution

If you don't know what this code is written in you're in deep sh*t. I CAN tell you, unless you're got some really funky scripting in your app going on that this is not VB.NET code.

If LOOKS like VB6 code that the VB6 form designer used to create. There is no direct conversion to VB.NET. You just scrap this and layout your form in VB.NET as normal.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900