Re: .NET component in VB6
mendak, this what i tried.
i created and successfully registered a ASP.NET component.
i included it in the references of my VB project, and tried creating it dynamically:
VB Code:
Dim newObject As ARTEC.ARTEC
Set newObject = Form1.Controls.Add("ARTEC.ARTEC", "TESTCTL")
With newObject
.Visible = True
.Width = 1000
.Height = 1000
.BackColor = &H0
End With
weird enough, i get a 'Type mismatch' error 13 on the Set instruction...
no typos though, this works perfectly if i use Labels for instance. furthermore, it DID recognize the ARTEC.ARTEC class, as if i change that i get a 'could not find reference...'.
...hummm...
Re: .NET component in VB6
Re: .NET component in VB6
Quote:
Originally Posted by wildcat_2000
Your second post in this thread looks good. :thumb: Did you find a way to add it to the components toolbar though?
I have been through both of Scott Swigart's links, but nowhere could I find him trying to do what you did... he's been adding to references both times.
Re: .NET component in VB6
yep exactly, that is the whole point.
even though he does reference to .NET components, in the end when he needs to avtually 'display' something he is then using standard VB objects.
damn.
what is it you actually need? a generic .NET component or you need a richedit20.dll wrapper for VB6?