Problems with my timesheet program - please help

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am writing a timesheet program for my office and I am trying to keep a
portion of my code synchronous during shutdown (so that it registers the time
a user shuts down the computer) , but
webBrowser1.Navigate("www.webpage.com"); starts, then the app shuts down
before the navigation is completed.

I've tried:
while (this.webBrowser1.IsBusy.Equals(true)) { }
and
while
(!this.webBrowser1.ReadyState.Equals(System.Windows.Forms.WebBrowserReadyState.Complete)) { }

but neither seem to work correctly.

Any help would be appreciated, thank you,
Michael

I'm using C# EE beta2 at the moment
 
Hi,

Just do a "ping" using either UDP or TCP IMO a webrequest is more complex
and takes longer.


cheers,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top