public Form1() { proxy = new localhost.Service1(); InitializeComponent(); setwb(); logon form = new logon(); form.ShowDialog(); this.loggedOn = form.loggedOn; Cookies = form.Cookies; //we must be logged on to get to here getPortalData(); }