Purpose: Use selected one or multiple currencies then from this, browsers open up simultaneously and auto refresh, so as to see changing currency rates
I have created an app, Which using a listbox and a button creates a copy of the set form and passes a url through to the form. Once the url had been passed through and the new form created. This new form will then using a timer refresh the page ever 2 or so seconds.
The problem I am facing is, 6/7 forms created continually refresh as intended but one of the forms does not.
From what I understand, this is due to the fact that each application is given an amount of processing speed and I have moved over the amount allocated to my prog.
I would like to when asking to make acopy of the form for this form to be opened on a new thread.
How do I do this??
Btw I really wish to use multi-threading to fix this
Public Class RefreshPage
Public AssignWeb As String
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
WebBrowser1.Navigate(AssignWeb)
End Sub
End Class
Public Class Form1
Dim CurrencyUrl, NormalUrl, MyCurrency, MiddleSymbol As String
Public Sub CopyFORM(ByVal SelectedCur As String)
NormalUrl = "http://www.xe.com/ucc/convert/?Amount=1&From="
MiddleSymbol = "&To="
MyCurrency = "GBP"
CurrencyUrl = NormalUrl & MyCurrency & MiddleSymbol & SelectedCur
Dim f As RefreshPage
f = New RefreshPage
f.Name = "Currency: " & SelectedCur
f.Text = f.Name
f.AssignWeb = CurrencyUrl
f.Show()
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim i As Integer
For i = 0 To ListBox1.SelectedItems.Count - 1
Call CopyFORM(ListBox1.SelectedItems(i))
Next
End Sub
End Class
[IMG]http://uploadpic.org/storage/2011/thumb_YZ22XQjC57W2sE1js1HLDV7jZ.png[/IMG]
[IMG]http://uploadpic.org/storage/2011/thumb_oiPaXiojHVW8JLPSeTyDXkBXf.png[/IMG]
[IMG]http://uploadpic.org/storage/2011/thumb_XmqYpLnKURz0m1FG4exTlzsq7.png[/IMG]
Thank you in advance for all help