Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9017529
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T04:17:55+00:00 2026-06-16T04:17:55+00:00

We have developped quite an heavy ms-access app, with some 300 forms (yes!). As

  • 0

We have developped quite an heavy ms-access app, with some 300 forms (yes!). As the code instantiates these forms (and do not just ‘open’ them), we can have multiple instances of the same form displayed on the screen.

To bypass the limitations of VBA, and its poor implementation of some object oriented concepts such as inheritance, interface, encapsulation, etc, the code is managing:

  • a windows collection made out of the all the active instances of our forms.
  • a ‘ghost windows’ object, which hold all the extra properties and methods needed for our code.

So, as an example, when I want to reach the standard property of one of my instances, I can write:

MyWindows.accessWindow(hWnd).name 

Where hWnd is the handle given by Windows, and name the standard form().name property

But if I want to reach a specific property of one of my instances, I can write:

MyWindows.ghostWindow(hWnd).originalRecordset

Where ‘originalRecordset’ holds the original ADODB.recordset which was loaded when the form was first instanciated (meaning before any changes made by the user … can be interesting!)

It’s working great, but coding it can be a real PITA, specially when one knows how starighforward it could be to do something similar in C#, as long as one could encapsulate the MS-Access form object into a more generic C# object. So this is the question: could one embed the MS-Access form into a home-made C# dll? Is it feasable?

I do not expect a complete answer, but I am expecting some help to get on the right track. Any idea pals?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T04:17:57+00:00Added an answer on June 16, 2026 at 4:17 am

    This should be doable through Office Automation.

    In short, you use c# to launch your access application, and then get the proper object model for your forms, the same way you have them available in vba.

    It’s probably the first step if you want to use more of c# (good), and less of vba (meh) to gradually improve/refactor your access app.

    More details in the MS KB article “How to automate Microsoft Access by using Visual C#”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In code I have developed some years ago I have been using this a
I have developed an app which works alot with dates and also stores these
I came to a new project which have been developed for a quite long
I have a jax-ws web service developped using netbeans 7 and glassfish 3.1.2 .
I developped a package to extend Visual Studio. As part of it, I have
I have developed sample api as jar file. This jar file contains the code
I have developed a web site that requires user registration and authentication for some
i have developed an app which executes sql jobs. When I click on execute
So I have an interview next week for a shop that makes heavy use
I have developed a Java application and now i want to give some simple

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.