Why U do not ...
Create only one instance of your Class XZY in a
module. And place your class in Class
in ClassXZY.vb
Public Class ClassXZY
Public XZY
End Class
In Module1.vb
Module Module1
Public InstanceOfXZY as new ClassXZY
End Module
And U should replace this instance in everywhere that
you create an instance of Class XZY and forgot to
check it exist or not.
Private Function CallInstance() as string
return InstanceOfXZY.XZY()
End Sub
--- Zed Burton <[EMAIL PROTECTED]> wrote:
> I create an instance of Class XZY in several
> places. If it is
> already created I dont want to create another one.
> How do I check
> this? I saw it done in a book somewhere but cant
> remember
>
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/