Global Variable in C#
Dear Sir,
I want to make such function which could be call every window form..
how to make globle connection in C# so that i call this function in forms as per my requirment
plz Help me out
Regards,
Amit
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ramana GPosted Jan 12, 2006, 9:47 AM
Hi,
Delcare one variable as public static in first form of the your application. use this variable throughout ur application. You can declare SqlConnection object as public staic, use this globally