When my form first loads, it runs at about 30k CPU, but after about 10 minutes of use, it goes up to (and stays at) about 70k CPU.
What ways can i optimize my code to allow the CPU usage to stay low, or how can i lower it during the running of the program.
My most concerned areas of the CPU are:
1. I have a web browser, and when a user types in a url and presses go or enter, the CPU jumps about 4k:
and
The second worry is when i open other forms, it boosts the CPU up aswell.
the only code for this is:
Thanks for any help!
The full code for my program can be found here
What ways can i optimize my code to allow the CPU usage to stay low, or how can i lower it during the running of the program.
My most concerned areas of the CPU are:
1. I have a web browser, and when a user types in a url and presses go or enter, the CPU jumps about 4k:
VB.NET:
Private Sub Go_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Go.Click
WebBrowser1.Navigate(OldURL.Text)
URL.Select()
End Sub
VB.NET:
Private Sub URL_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles URL.KeyDown
OldURL = URL.Text
If e.KeyCode = Keys.Enter Then
WebBrowser1.Navigate(OldURL)
URL.Select()
End If
End Sub
The second worry is when i open other forms, it boosts the CPU up aswell.
the only code for this is:
VB.NET:
Form.Show()
Thanks for any help!
The full code for my program can be found here