Sharing stuff amoung forms

  • Thread starter Thread starter Kai Bohli
  • Start date Start date
K

Kai Bohli

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
(e-mail address removed)
Norway
 
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 said:
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).
 
Back
Top