visual studio 2010 - C# Global variable for all forms -


I am a newbie programmer who is now developing application with Visual Studio 2010 on C # and there are many variations, therefore I'm interested in it, is it possible to use some form of global variables in all forms? Simple examples, I have 10 forms, they are all connected to the MySQL database, so it's not really smart to set the 10x database name and password when ideally I can set in one place and use everywhere I can not find the answer, for the question in Google, so maybe someone can help me here? Is this possible?

Build the base class for your form, which is the form . Start the shared values ​​there, be accessible from the inheritance forms.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -