Hi all !

Is there a way to share components among forms. I think especially about ImageList which should be
created once and reused in every form. Database connecions is another example.

TIA

Best wishes
Kai Bohli
kaiboeNO_SPAM@online.no
Norway

Re: Sharing stuff amoung forms by Mark

Mark
Tue May 11 11:12:26 CDT 2004

sounds like a potential case to use static members. On one of the recent
VB.net seminars, the instruction talks about creating a single Globals class
that he puts only static (or Shared in vb!) members that can reused
throughout the application.

--

--

Br,
Mark Broadbent
mcdba , mcse+i
=============
"Kai Bohli" <kaiboe@nospamonline.no> wrote in message
news:ihs1a0p7iagh6r8ichkhpa22lntndt4445@4ax.com...
> Hi all !
>
> Is there a way to share components among forms. I think especially about
ImageList which should be
> created once and reused in every form. Database connecions is another
example.
>
> TIA
>
> Best wishes
> Kai Bohli
> kaiboeNO_SPAM@online.no
> Norway



Re: Sharing stuff amoung forms by hirf-spam-me-here

hirf-spam-me-here
Tue May 11 12:20:08 CDT 2004

* Kai Bohli <kaiboe@nospamonline.no> scripsit:
> Is there a way to share components among forms. I think especially about ImageList which should be
> created once and reused in every form. Database connecions is another example.

Create a class with shared properties, or implement the singleton design
pattern in a "global" class (see Google for more info).

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>