473,397 Members | 1,974 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Access objects/propertys from another DLL

Hello everybody

I have an application which is grouped in a MainApplication and several
Modules (DLL's)

The Main Application is basically a Form with a NavigationBar on the
Left Side (like in Outlook 2003) and an MDI-Parent. Also there is a
Simple Login Routine on this Form. I store the UserName after LoggingÎn
to a Property.

The DLL's holds functionality and Forms for various Section for example
there is a Employee.dll with a form to show all Employees.

On Loading of the Main Application I loop trough all dlls in a
"Module"-Folder and load NavigationItems from them which I add to the
MainForms NavigationPanel.

This works fine so far.
Access objects/propertys in an Application from another DLL
Hello everybody

I have an application which is grouped in a MainApplication and several
Modules (DLL's)

The Main Application is basically a Form with a NavigationBar on the
Left Side (like in Outlook 2003) and an MDI-Parent. There is also a
Simple Login Routine on this Form. I store the UserName after LoggingÎn
to a Property.

The DLL's holds functionality and Forms for various Sections for example
there is a Employee.dll which holds functions and a form to show all
Employees.

On Loading of the Main Application I loop trough all dll's in a
"Module"-Folder and extract NavigationItems from them which I add to the
MainForms NavigationPanel.

I don't have a reference to the Modules because I want to make it as
flexible as possible so that it is possible to delete a Dll form the
Module directory in order to remove the functionality from the
MainApplication.

The Modules could work also without the MainApplication if they are
Complied as an exe instead of DLL of course.

This works fine so far.

What I want to accomplish is to be able to access Propertys in the
MainApplicatoin from within a Module.

For example: If a UserClicks on the DeleteEmployee Button the Module
should check if the UserName Property (in the MainApplication) is like
"admin" and then delete an Employee.

I should also be able to get a Reference of the MainForm to the
Module(DLL) because I need to set the MDI-Parent Property for all Forms
in within the Modules to the MainForm in order to display it in the
MDI-Window form my MainApplication

Has somebody an Idea if and how this could be accomplished?

Thanks in advance

Olivier Salzgeber
Jan 31 '06 #1
0 966

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

64
by: John | last post by:
Hi What future does access have after the release of vs 2005/sql 2005? MS doesn't seem to have done anything major with access lately and presumably hoping that everyone migrates to vs/sql. ...
9
by: Tony Lee | last post by:
Some time a ago, on this newsgroup the following comments were made in recommending good references for Access (2003) >I used to recommend Dr. Rick Dobson's, "Programming Access <version>" for...
3
by: qwerty | last post by:
I have two User controls in a page. Them ID-propertys are example UC1 and UC2. In code behind file they are declared: Public UC1 As UC1 Public UC1 As UC1 From the page I can call them with...
4
by: Martin | last post by:
Hi, I am getting an "Access Denied" error when attempting to browse asp.net pages. I have installed ASP.NET 1.1.4322 on a domain controller. The machine also has ASP.NET 1.0.3705 installed on...
0
by: Goethals Frederik | last post by:
Hi, I have some questions that are a little difficult to explain, so I give it a try... I have an application (aSP.NET with VB.NET codebehind) and I would like to store my data on disk...
2
by: Bob | last post by:
How do I program vb.net to copy a query or table from one MS Access database to another? I'd like to accomplish what import does when it copies Access objects (primarily queries but some tables)...
52
by: Neil | last post by:
We are running an Access 2000 MDB with a SQL 7 back end. Our network guy is upgrading to Windows Server 2003 and wants to upgrade Office and SQL Server at the same time. We're moving to SQL Server...
17
by: Mell via AccessMonster.com | last post by:
Is there a way to find out where an application was created from? i.e. - work or home i.e. - if application sits on a (work) server/network, the IT people know the application is sitting...
9
by: redivider | last post by:
I followed discussion "access form control propertys via control name as string " but am getting NullReferenceException when trying to access any controls via their name using "this.Controls". ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.