473,513 Members | 2,708 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to control application context?

As the app that I am developing gets more complex, it is getting harder to
manage state and ensure that the menus and controls have the correct
enabled/disabled state.

One thing that I do not like is to have each control talk to all other
controls and menus to determine the state of menus and such. What I need is
some kind of controlling mechanism. Does anyone know of any frameworks that
help coordinate application contexts?
Apr 16 '06 #1
3 2515
You might want to try to wrap your mind around the enterprise library. it
will do all that for you but it will bring complexity that like of which you
will scarcely imagine. Not to mention various obscure bugs.

--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Professional VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:Oy**************@TK2MSFTNGP04.phx.gbl...
As the app that I am developing gets more complex, it is getting harder to
manage state and ensure that the menus and controls have the correct
enabled/disabled state.

One thing that I do not like is to have each control talk to all other
controls and menus to determine the state of menus and such. What I need
is some kind of controlling mechanism. Does anyone know of any frameworks
that help coordinate application contexts?

Apr 16 '06 #2
sb
This article may help. I wrote my own class which uses the same
paradigm...only took a day and it saves me a lot of headaches now.

http://msdn.microsoft.com/msdnmag/is...t/default.aspx

-sb
"Alvin Bruney" <www.lulu.com/owc> wrote in message
news:u%****************@TK2MSFTNGP05.phx.gbl...
You might want to try to wrap your mind around the enterprise library. it
will do all that for you but it will bring complexity that like of which
you will scarcely imagine. Not to mention various obscure bugs.

--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Professional VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:Oy**************@TK2MSFTNGP04.phx.gbl...
As the app that I am developing gets more complex, it is getting harder
to manage state and ensure that the menus and controls have the correct
enabled/disabled state.

One thing that I do not like is to have each control talk to all other
controls and menus to determine the state of menus and such. What I need
is some kind of controlling mechanism. Does anyone know of any
frameworks that help coordinate application contexts?


Apr 16 '06 #3
SP

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:Oy**************@TK2MSFTNGP04.phx.gbl...
As the app that I am developing gets more complex, it is getting harder to
manage state and ensure that the menus and controls have the correct
enabled/disabled state.

One thing that I do not like is to have each control talk to all other
controls and menus to determine the state of menus and such. What I need
is some kind of controlling mechanism. Does anyone know of any frameworks
that help coordinate application contexts?


You should be able to encapsulate your controlling mechanism into one
object. Your UI will act primarily as an event listener. This object raises
events, listens to events raised by the business layer and also has methods
like OnTabChanged or event a generic OnStateChanged() that can be called by
your UI. All the logic about deciding what should be enabled, disabled,
visible etc is within this object. A simple example would be where you have
2 menu items where only one should be enabled at a time based on what tab
the user has selected. So now your tab changed event tells this object "a
tab has changed and this is the selected tab". This object raises a
UiStateChanged event to all listening UI controls. The UI controls ask this
object "should I be enabled or disabled?".

SP

Apr 17 '06 #4

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

Similar topics

1
3375
by: Dennis | last post by:
I'm using VS 2003 my project uses COM interop and the Tao Framework. I have a custom control derived from UserControl. It implements many functions similar to the Tao's SimpleOpenGLControl, for...
0
1026
by: Dakota2030 | last post by:
I have a custom server control that contains an image button. ______________________________________________________________ protected override void OnLoad(EventArgs e) { DownloadButton = new...
0
2468
by: MarkD | last post by:
I have an ASP.NET (VB.NET) application that calls all VB6 COM DLL via Interop. The DLL uses functionality contained in a Custom OCX Control (Also VB6) that in turn contains a standard TreeView...
1
2701
by: Chris Murphy via DotNetMonster.com | last post by:
Hi all, I'm just wondering if any one can help me with this development issue I'm having. I've created a customized treeview control to handle the particular tasks to which I'll be using it. Within...
0
2080
by: nate | last post by:
the error returned is this: Server Error in '/AnnAccRpt' Application. -------------------------------------------------------------------------------- Could not find control 'DropDownList1' in...
1
1408
by: abhishek007p | last post by:
HI, i am using visual web developer for .net 2.0. does .NET 2.0 comes with a timer control, i was unable to find it in the IDE, where is it ? thanks, Abhishek
2
1881
by: mmacrobert | last post by:
We have an MFC application mixed with a few .NET controls. I would like to be able to render the content of a .NET control to an MFC device context - specifically a printing device context. We...
8
5342
by: Andrew Teece | last post by:
Hope someone can help. We are trying to deploy an ASP.Net 2.0 application to a 3-node webfarm. The application uses the ReportViewer control in local mode, hence we need session state. Because we...
0
778
by: Baz | last post by:
Hi, I am new to VB .net (long time VBA programmer) and was trying to integrate a freeware list bar control into a windows mdi child form in VB.net 2005 Express. I think I am doing it right,...
0
887
by: Baz | last post by:
Hi, I am new to VB .net (long time VBA programmer) and was trying to integrate a freeware list bar control into a windows mdi child form in VB.net 2005 Express. I think I am doing it right,...
0
7158
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7380
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,...
0
7535
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...
1
7098
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5683
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,...
1
5085
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...
0
3232
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3221
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
455
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.