public void Page_Loaded(object o, EventArgs e) { try { InitializeComponent(); ProgressAnim.Begin(); ad = new ADRemote(); ad.OnCompleted += new ADCompleted(OnCompleted); } catch (Exception ex) { string msg = ex.ToString(); } //this.msg.Text = ad.Caption; }