Problems using msscriptcontrol in vb2005
Dim nfont As Font = New Font("Arial", 20, FontStyle.Regular)
Me.AxScriptControl1.Language = "VBScript"
Me.AxScriptControl1.Reset()
Me.AxScriptControl1.AddObject("nfont", nfont)
Me.AxScriptControl1.AddObject("label1", Me.label1)
strtext = "label1.Font = nfont"
'Me.AxScriptControl1.ExecuteStatement(strtext)
It gives 'Class does'nt support automation: label1.font' while executing .But it
runs perfectly if codes are
label1.font = nfont
without using axscriptcontrol .
Can someone help me ,i shall be highly thankful.
harish gupta

