I here have some codes that make my app become "Non responding" when I click the mouse on its forms. I want my app to work in the background, and let the user see the progress bar, and the progress title showing the status of the application. How can I do this? And where articles about this matter?
Anyone here please help me.
The code make the app not responding below:
Code:WebClient wc = new WebClient(); string s; try { Stream data = wc.OpenRead(url); StreamReader sd = new StreamReader(data); s = sd.ReadToEnd(); } catch (Exception ex) { MessageBox.Show("Chương trình gặp lỗi: " + ex.Message, "Lỗi chương trình", MessageBoxButtons.OK, MessageBoxIcon.Error); s = ""; }
Thanks for reading!




Reply With Quote