On Mon, 19 Nov 2007 14:44:33 +0200, "Tark Siala"
<(E-Mail Removed)> wrote:
>hi
>i worked with VB6 then i changed to C#.
>i want define Variable thats i can accessed from any Form or Class in my
>project.
>in VB6 you can do that by define as "Global" in Module, but in C# i can't
>find Global for all forms in project.
>-----------
>Tarek M. Siala
>Software Developer
>http://tarksiala.blogspot.com
>
Try:
public static class MyGlobals {
public static int myInt = 42;
public static string myString = "Armadillo";
}
rossum