Hi,

I have a form with a Inet control, for downloading some files listed in a MSHFlexgrid. That runs totally fine until I decided to have multiple instances of this form. When the app is ready to open the file for writing, I have a error 55 "File already open".

My download function is defined on the form, and this is where the error occurs:

Code:
Public Function Download(ArqURL As String, Arqtemp As String) As Boolean
'(...)
Open Arqtemp For Binary Access Write As #1
'(...)

and this is how I'm creating a new instance of the form:
Code:
Private Sub ger_Click()
Dim x As New MainForm
x.Show
End Sub
My question now is: if I create a new instance of the form, why is there a conflict with the "Download" function (which is defined in the form) and how can I solve this issue?

Many thanks