Importing ActiveX Controls into .NET

I am experiencing a problem when adding ActiveX controls onto a form in .NET when the account I am logged into on XP does not have full administrator rights.

I can successfully add the control to the Toolbox, however when I try and create a control, eg the Microsoft Rich Text Control 6.0, on the form the references are successfully created and then I get the following error:

"One or more of the types in the assembly unable to load"

If I load a project that already has the controls on them, created previously using an Admin account, then when the form is displayed in the IDE, the following errors are displayed in the Task List even though the references are present and viewable in the Object Browser:

C:\Research\DN\WindowsApplication1\WindowsApplication1\Form1.vb(51): The variable 'AxRichTextBox1' is either undeclared or was never assigned.
Could not find type 'AxRichTextLib.AxRichTextBox'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has been successfully built.

When the application is run, the control displays successfully.

Has anyone else seen similar behaviour of the IDE?

Thanks,

Tim Day

[1239 byte] By [TimDay] at [2008-1-25]
# 1
Have you looked at the .NET System.Windows.Forms.RichTextBox class that is just a wrapper around the Rich Text Control?
DavidM.Kean at 2007-9-7 > top of Msdn Tech,Windows Forms,Windows Forms Designer...
# 2
It is actually some custom ActiveX controls that I am trying to use in .NET. I just used the Rich Text Box control as an example as people will be familiar with it.

Tim Day

TimDay at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms Designer...
# 3
I'm running into the same problem with the Web Browser Active X control. (ShDocVw.dll)
I can add the button to my toolbox (and the correct interop references get added to my project), but when I try to add the control to my form with the designer, I get that error message:
"one or more of the types in the assembly unable to load"
I've been looking around on google and I've run into a few suggestions that don't seem to work. One guy tried reinstalling .NET and Studio with no effect. Then he said deleting your user settings folder (Local Settings\Application Data\Microsoft\VisualStudio\7.1\) fixed the problem. But it hasn't for me.
I don't know how to fix this problem.
Jeff
JMartin at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms Designer...