Home All Groups Group Topic Archive Search About

public object throughout the project

Author
17 May 2009 10:51 AM
NR
I am new in .NET application but have developed many applications in Visual
FoxPro and Visual Basic.
In my first .NET application, I have a USER class which keeps record of user
privileges. Is it possible to instantiate this object once in a project(To
avoid back and forth communication with data server), which can be used in
all other classes and forms.

Any kind of help would be appreciated.

Regards,
NR

Author
17 May 2009 11:15 AM
Henning
Show quote Hide quote
"NR" <N*@discussions.microsoft.com> skrev i meddelandet
news:E93950A7-5C4D-48AD-972A-77F177977FE2@microsoft.com...
>I am new in .NET application but have developed many applications in Visual
> FoxPro and Visual Basic.
> In my first .NET application, I have a USER class which keeps record of
> user
> privileges. Is it possible to instantiate this object once in a project(To
> avoid back and forth communication with data server), which can be used in
> all other classes and forms.
>
> Any kind of help would be appreciated.
>
> Regards,
> NR
>

Hi,

You would better post the Q in microsoft.public.dotnet.languages.vb.

In this group we deal with VB Classic (VB6 and below), and a few MVP's
having a different opinion. ;)

/Henning
Author
17 May 2009 11:17 AM
Ralph
"NR" <N*@discussions.microsoft.com> wrote in message
news:E93950A7-5C4D-48AD-972A-77F177977FE2@microsoft.com...
> I am new in .NET application but have developed many applications in
Visual
> FoxPro and Visual Basic.
> In my first .NET application, I have a USER class which keeps record of
user
> privileges. Is it possible to instantiate this object once in a project(To
> avoid back and forth communication with data server), which can be used in
> all other classes and forms.
>
> Any kind of help would be appreciated.
>

Yes you can, but you have posted to a newsgroup populated primarily by users
of 'classic' VB and the COM-based developement platform. You will have
better success if you post to a newsgroup where more users of the .Net
Framework development platform hang-out. (They will have ".dotnet." or
".vs." in the title.)

Perhaps:
   microsoft.public.dotnet.languages.vb

-ralph