Can any body explain is there any way like Modules in VB where I van declare a variable Public so that I can access it through out the applicaltion (i.e. Globally) so except the singleton and Static declartion is there any way in C#.NET like a module to access a variable.

Questions by NareshPopalgat

Showing Answers 1 - 1 of 1 Answers

Naveen

  • Feb 13th, 2007
 

A public variable can be declared at form level and can be accesssed from any where with in the project. Public variable can be accessed as FormName.PublicVariable. Form will not be loaded when variable is accessed.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions