svatasoiu
Oct 26th, 2001, 04:28 PM
Hi,
I would like to create a com (dll) that, when it will be instantiated to display a form on the screen.
I tried with:
Option Explicit
Dim frmView As VB.TextBox
Public Sub NewDaemon()
Set frmView = New VB.TextBox
With frmView
.Text = "test form"
.Width = 1000
.Height = 1000
.Visible = True
End With
End Sub
When I tri this I receive " Invalid use of NEW"
How can this be done? (ex)
Thank you.
I would like to create a com (dll) that, when it will be instantiated to display a form on the screen.
I tried with:
Option Explicit
Dim frmView As VB.TextBox
Public Sub NewDaemon()
Set frmView = New VB.TextBox
With frmView
.Text = "test form"
.Width = 1000
.Height = 1000
.Visible = True
End With
End Sub
When I tri this I receive " Invalid use of NEW"
How can this be done? (ex)
Thank you.