View Full Version : Using Custom VB.NET Control in Access


nathansav
01-27-2011, 02:28 AM
I have written a custom control in vb.net. I have built it up in a test project (to test) and compiled as an EXE.

The EXE file works exactly as planned, but i would like to use the custom text box i created in Access, when i try and register the DLL as a reference in Access, it says "cant add a reference to the specified file"

In Visual Studio, i created the custom text box, added a windows form application to the project, and used my control as a project reference.

Is it possible to use my control in Access?

DJkarl
01-28-2011, 05:22 AM
In short, no you cannot use your custom VB.NET control in Access.

.NET is managed code, and Access can really only use unmanged or Native Win32 libraries.

Here is a link that outline some of the basic diffs between managed/unmangaged code.

http://www.codeguru.com/forum/showthread.php?t=370170