Solved

user control vs2005 in access2007?

Posted on 2012-04-02
13
347 Views
Last Modified: 2012-04-05
I'm developing a user control in vs2005.
Bu now, what I have to do in orer to use this 'user control' in access2007?
I don't see my control in activex..
thanks
0
Comment
Question by:bobdylan75
13 Comments
 
LVL 57
ID: 37795697
<<Bu now, what I have to do in orer to use this 'user control' in access2007?>>

You may need to register it first with regsrv32:

Regsvr32 <OCX File Name>

Jim.
0
 

Author Comment

by:bobdylan75
ID: 37795717
JDEttamn thnaks,
but now it says: Entry point not found.??
What?
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37796525
Then perhaps you should give us more info on this "User Control" you are creating...
What does it do?
How did you create it?

Are you sure you have designed it so that it is compatible with Access 2007?
0
 

Author Comment

by:bobdylan75
ID: 37796753
I used visual studio 2005, Autocreate solution, (controls library solution), in VB.NET.
Now I made a simple user control, a simple "hello world" user control.
0
 

Author Comment

by:bobdylan75
ID: 37796793
0
 
LVL 57
ID: 37797053
Something is wrong with the control then.  When you use regsrv32, DllRegisterServer is called.  If it can't find it in the control, then that's the error message you get.

  Beyond that, I'm out of my depth here as I've never done a Active-x control or COM programming.

  One thing I should mention which Boag2000 alluded to is that in regards to com and active-x, Access is a strange animal in that it doesn't have full support for the IDIspatch interface, which makes many 3rd party controls incompatible with Access.

  That doesn't have anything to do with your present problem however as you haven't even gotten that far yet, but it's something your going to bump into.

Jim.
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 

Author Comment

by:bobdylan75
ID: 37797412
But my user control doesnt work in any application, all office pack, all vs2005 solution, and regsvr32..
0
 

Author Comment

by:bobdylan75
ID: 37800912
perhaps I undestood thata user control is not an Activex...
so... to make an activex I have to use C++ wizard project.. and not VB.net usercontrol.
Isn't it?
0
 
LVL 57

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 500 total points
ID: 37801721
<<Isn't it?>>

  Yes.  I just looked and a usercontrol in VB.Net is based on the .Net framework, so there is no way it's going to work in Access.

  To use a control in Access, it must be an Active-X/COM based control.

Jim.
0
 

Author Comment

by:bobdylan75
ID: 37809895
I've requested that this question be deleted for the following reason:

there isn't any solution to my question. Unfortunatly.
0
 
LVL 77

Expert Comment

by:peter57r
ID: 37809896
Jim (JDettman) has told you that, so you should give him the points.
0
 

Author Comment

by:bobdylan75
ID: 37809925
ok ;).
0
 

Author Closing Comment

by:bobdylan75
ID: 37809929
thanks!
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now