Skip to Content
0
Former Member
Nov 28, 2008 at 11:49 AM

Load from XML Problem

47 Views

Hi Experts,

I want to open a form named addin 10 times. But It opens the form for the first time only . for 2 to 10 times,

a message box is shown that form already exits.

i have written the following code,

for i =1 to 10

LoadFromXML("addin.srf")

next

Public Sub LoadFromXML(ByRef sfileName As String)

Dim oXmlDoc As New System.Xml.XmlDocument

'// load the content of the XML File

Dim sPath As String

sPath = Application.StartupPath.ToString

oXmlDoc.Load(sPath & "\" & sfileName)

'// load the form to the SBO application in one batch

SBOApplication.LoadBatchActions(oXmlDoc.InnerXml)

End Sub

I want to load the form 10 times please help.