public MainForm() { InitializeComponent(); GPS = new GPSHandler(); //Initialize GPS handler GPS.TimeOut = 5; //Set timeout to 5 seconds GPS.NewGPSFix += GPSEventHandler; //Hook up GPS data events to a handler frmGpsSettings = new FrmGpsSettings(); }