How to share code and icon between menu and toolbar

Nov 10, 2010 at 5:22 PM

Hi guys,

When I use Delphi, I can create Action Components and assign Icon and Click even code to them. I can link Action Components to menu item or toolbar button. So if anything need to change, like event handle code or icon, I just change the Actions will be OK. Is there any simulate way in .net platform?

Coordinator
Nov 15, 2010 at 5:47 AM

Hello dead_lee

I'm not familiar with Delphi, however, in .NET you can store all icons in Resources

http://msdn.microsoft.com/en-us/library/7k989cfy(VS.80).aspx

and share code in a class library to be used by multiple projects.

Nov 15, 2010 at 2:51 PM

Thank you very much.