Robert,
Are you talking a Class or a Class Library?
As a Class within your current Project should not be causing your problems,
it sounds like you defined a new Class in a new Class Library.
Remember that Imports go outside the Class statement. If this new Class is
in a Class Library you need to reference (Project - Add References) the
assembly where the namespace is defined. Both the namespace & assembly for a
Class is defined in the Requirements section of the info topic on the class
in MSDN.
As far as where to define a delegate itself, it can be defined inside or
outside of a Class depending on your "requiremen ts".
Hope this helps
Jay
"Robert Batt" <ro********@yah oo.co.uk> wrote in message
news:0c******** *************** *****@phx.gbl.. .
Hello,
I'm trying to modularize the code in my forms by
putting some procedures and delegates in a seperate class.
However I try to put a delegate with the following header
in a class.
Public Sub DecimalToCurren cyString(ByVal sender As
Object, ByVal cevent As ConvertEventArg s)
However I get a syntax error on ConvertEventArg s, saying
it is not declared. the class will not let me import
system.windows. forms for some reason.
Any ideas if or how I can get around this, or are
delegates just not allowed in classes
Regards
Robert