• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 151
  • Last Modified:

Common Controls

I have my own image controls such as close, move next, prev, last etc i use them in most of my forms, how can i use a module to keep them all an use them with every module seperately. I am not strong in general modules programming, so please make it as simple as my brain can take.

thanks
0
abidsml
Asked:
abidsml
1 Solution
 
watyCommented:
The best solution is creating an OCX, add all your code in that OCX. See in the help file to see how to create OCX.

If you explain a little more, I could help you
0
 
abidsmlAuthor Commented:
Thanks, I never worked with OCX, but what i need is to make a single code for my navigation buttons ie, next, find, exit, last filter etc and use it in every form i create.
0
 
EnterSandmanCommented:
There is no simple way to do that without creating an OCX control. If you still need to create specific code for each form, you can allwais provide the interface in your OCX to do that.
Know the big isue here is that I think, by your reply that you are not very familiar with Classes and Object development. Think again. If you develop software without classes and objects, you may say you are still developing in Visual Basic 3.0. So my advice is you to get some info on this, and learn as mutch as you can, because beleave me, they are like Mobile phones.... you dont need them until you have one. Then you cant live without them.
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
abidsmlAuthor Commented:
i want to mention that my progs & forms are in VBA Access 97 , is the same as VB5.
0
 
MAVERICKCommented:
A quick comment.... Although a OCX is the best solution... a easier option might be to create a module with the appropriate subs for the controls in it ... and reuse the module.........


0
 
abidsmlAuthor Commented:
Ok Mavrick, so how can i refer to the controls , command buttons from each form to the module, can i keep the name of the control consistant then ie. cmdNext, cmdPrev
thank you
0
 
MAVERICKCommented:
I'll try and give you a exampe APP for it....

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now