c# - Winforms user control class accessible by all application -


i'm creating winforms application needs control class manage app components.

i thinking class inherits component, glued in main form of application.

how access control class point of application? correct way this?

or should change mind architecture?

you create static class or single instance class , use allover application.

note: static class should inherit system.object using way not possible inherit component if require derive component can go single instance approach.

check out singleton implementation

hope helps


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -