You can define it as a static class member.
For instance, you can create a static class for holding the whole of the variables that are used globally:
static class MyGlobals
{
public static double a;
}
Then, you can use it in your form and, in other forms:
MyGlobals.a = Convert.ToDouble(textbox1.text);