(vb.net) Stop a thread execution on a button click
I'm a beginner in vb.net and my first project is build to check out if the internet is up our down. To do it, I want to start a thread, on a "start button" click. Once started, the sub execute a ping on three different web site in a loop until I click the stop button. When I click the "stop button", I would like to set a public boolean to "true" to force the sub to stop looping and let it end by itself. How can I do that? By clicking a button, how can I change the value of a boolean defined in the sub of this thread?
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL