473,394 Members | 1,734 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,394 software developers and data experts.

Application architecture help needed

Hi, I'm doing the proof of concept for a very large application. My initial
design shows the app exe file will probably hit about 2MG. I decided to
split the GUI into DLL to support the main form. My problem is as follows:

MyDLL contains a user control, MyUserList, that it's placed inside a
container in the MainForm. The app exe obviously has a reference to MyDLL so
it can find the control and load it.

What I need is a way for MyDLL.MyUserList to notify the MainForm when an
event occurs. For example, if the user selects multiple items, I want the
MainForm to update the toolbar accordingly. This is where I'm stumped.

How do I make the DLL notify the mainform of events? Circular references are
not allowed.

Any help would be appreciated. Thanks.

BTW, I tried placing a MDIChild form in the DLL and use the ChildActivate
event, but my design allows for only one View to be displayed at a time.
Multiple forms would be unnecessary. Besides, it seems that I can't get rid
of the Minimize/Maximize buttons in the child window without some funky hack
and a weird side effect when the form loads. Not acceptable.

Eddie.
Nov 16 '05 #1
1 1038
Raise an event from the user control and sink into that event in your
main form.

Kohinoor.

Eddie Pazz wrote:
Hi, I'm doing the proof of concept for a very large application. My initial
design shows the app exe file will probably hit about 2MG. I decided to
split the GUI into DLL to support the main form. My problem is as follows:

MyDLL contains a user control, MyUserList, that it's placed inside a
container in the MainForm. The app exe obviously has a reference to MyDLL so
it can find the control and load it.

What I need is a way for MyDLL.MyUserList to notify the MainForm when an
event occurs. For example, if the user selects multiple items, I want the
MainForm to update the toolbar accordingly. This is where I'm stumped.

How do I make the DLL notify the mainform of events? Circular references are
not allowed.

Any help would be appreciated. Thanks.

BTW, I tried placing a MDIChild form in the DLL and use the ChildActivate
event, but my design allows for only one View to be displayed at a time.
Multiple forms would be unnecessary. Besides, it seems that I can't get rid
of the Minimize/Maximize buttons in the child window without some funky hack
and a weird side effect when the form loads. Not acceptable.

Eddie.

Nov 16 '05 #2

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

Similar topics

21
by: Lasher | last post by:
Hi, I have clients using an application that allows users to change their passwords. The application uses the 'ALTER USER xxx IDENTIFIED BY.....' command. What I need to do is use Oracle to...
5
by: Rajat Tandon | last post by:
Hello Everybody, Please guide me so that I can fulfill this challenging assisnment ... I have been asked to "Restructure a Windows application" from scratch in 2 months. The existing...
10
by: NUPUL | last post by:
Hi, I have a few questions to ask with the use of C++ per se: 1. For what type of applications is C++ actually used/preferred/ chosen? 2. ANSI C++ doesn't have any support for GUI...
0
by: jehugaleahsa | last post by:
On Jun 13, 3:09 pm, "Bob Powell " <b...@spamkillerbobpowell.net> wrote: I apologize for the size. I should have probably put this on a blog or something. I'm not interested in tools. I...
1
by: abhijitbkulkarni | last post by:
Hello, I am designing a .NET database application that uses 3 tier architecture. Starting initially, this application will be desktop application but I will convert it into a website later but...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.