Ja sam mislio nesto kao:
Code:
// Bazna klasa koju ce ostale forme da naslede
class SharedFormBase : System.Windows.Forms{
protected static string m_strName;//ovo je varijabla koju hoce svi :)
// .... ostalo smece
//Ovaj property je opciono, ali kod izgleda urednije :)
public static string SomeName{
get{ return this.m_strName;}
set{ this.m_strName = value;}
}
}
//Primer jedne klase koja je forma
class Form1:SharedFormBase{
//...... konstruktor, init i ostalo generisano smece od VS-a
// Metoda koja nesto radi sa tim stringom
public void Foo(){
this.m_strName = "Pera";
// ili
SomeName = "Pera";
textBox1.Text = m_strName;
// ili
textBox1.Text = SomeName;
}
}
Sigurno ima gresaka, nemoj samo copy+paste, pa da kukas

Just kidding, ako treba pomoc pishi

America national sport is called baseballs. It very similar to our sport, shurik, where we take dogs, shoot them in a field and then have a party.