Hello,

I come from the Delphi world which has what is called a TActionList.

In a nutshell, an action list is a way to centralize the response to user
commands (actions). Action list components maintain a list of actions that
are available to the client controls in an application. These actions also
hold the images related to the actions.

I place my relavent code in the action and just assign that action to the
action property on the control (button, menu, popup menu, etc.). I can then
control the action which will in turn affect all controls that have that
action assigned to them. For example, I can disable an action and the menu,
toolbar, and popup menu all reflect that disabled state.

Is there anything in WindowsForms or, at a lower level, the .NET frameworld
that works similarly?

Thanks for you input.

Re: Looking for an equivalent in .NET framework / WindowsForms by hirf-spam-me-here

hirf-spam-me-here
Thu Jan 08 02:03:54 CST 2004

* "Shannon Broskie" <shannonbroskie@tagfolio.com> scripsit:
> In a nutshell, an action list is a way to centralize the response to user
> commands (actions). Action list components maintain a list of actions that
> are available to the client controls in an application. These actions also
> hold the images related to the actions.
>
> I place my relavent code in the action and just assign that action to the
> action property on the control (button, menu, popup menu, etc.). I can then
> control the action which will in turn affect all controls that have that
> action assigned to them. For example, I can disable an action and the menu,
> toolbar, and popup menu all reflect that disabled state.
>
> Is there anything in WindowsForms or, at a lower level, the .NET frameworld
> that works similarly?

There is nothing "built-in", but have a look at this post:

<http://groups.google.com/groups?selm=090d01c3b5b3%24f95c8730%24a301280a%40phx.gbl>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Looking for an equivalent in .NET framework / WindowsForms by Fabrice

Fabrice
Wed Jan 14 15:06:10 CST 2004

You can read the source code at www.icsharpcode.net. It's
a great web site.


>-----Original Message-----
>Hello,
>
>I come from the Delphi world which has what is called a
TActionList.
>
>In a nutshell, an action list is a way to centralize the
response to user
>commands (actions). Action list components maintain a
list of actions that
>are available to the client controls in an application.
These actions also
>hold the images related to the actions.
>
>I place my relavent code in the action and just assign
that action to the
>action property on the control (button, menu, popup menu,
etc.). I can then
>control the action which will in turn affect all controls
that have that
>action assigned to them. For example, I can disable an
action and the menu,
>toolbar, and popup menu all reflect that disabled state.
>
>Is there anything in WindowsForms or, at a lower level,
the .NET frameworld
>that works similarly?
>
>Thanks for you input.
>
>
>
>.
>