Hallo alle zusammen!
Ich habe bis jetzt mit delphi proammiert und will jetzt .net (C#) nutzen.
Meine Frage:
Wie kann ich eine Variable (gemeinsame SQL-Connection) erzeugen, die in allen Forms und so sichtbar ist und zum Progammstart inizialisiert wird.
in delphi habe ich das bisher so gelöst:
		                    
            
                        Delphi-Quelltext                    
           	 															1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17:
  				 | 									unit xyz; .....
  var   WRSConnection:= TWRSConnection;
  initialization   WRSConnection:=TWRSConnection.create(nil);   WRSConnection.Connected:=true;
 
  finalization   if assigned(WRSConnection) then begin     WRSConnection.Free;   end;
  end.					 				 | 			
		
	  
Moderiert von 
Christian S.: Delphi-Tags hinzugefügt