![]() ![]() When the utility runs, the following window will appear. ![]() I have optimized the utility to minimize the calls to the DTE and it runs a couple of seconds faster than Chetan's code if you have multiple assemblies to install. Since the Toolbox itself can change depending on whether you are working with Desktop Framework 2.0 or Compact Framework 2.0 applications, different commands exist which let you add desktop or mobile device controls. UsageThe Toolbox utility is a single executable which processes one or more tasks via the command-line. You are welcome to redistribute this utility and I consider it freeware. This article describes how to use the utility and integrate it into your own installers. Thanks to his efforts, I was able to turn the code into a command-line utility which is well-suited for installers (which is usually when Toolbox controls are installed). Fortunately, Chetan Chudasama generously gave out source code in his blog which explains how to add or remove Toolbox controls using code and the "DTE" (Design-Time Environment) for Visual Studio. Visual Studio 2005 does already have some mechanisms for installing user controls, such as ".vsi" files, but unfortunately this approach typically results in a "Package Load Failure" and does not have a guarantee to work on every VS2005 installation. It is definitely not a matter of adding a registry key (as I would have liked to see).Īfter getting a lot of e-mails from customers asking me how to add real-time GPS controls to their Toolbox, I decided that I needed to come up with some kind of utility to get the job done. On the other hand, however, deploying controls and adding them to the Toolbox is a process rife with errors. NET platforms via design-time attributes and "asmmeta" assemblies. On one hand, writing the control itself is painless and Visual Studio 2005 has greatly improved the process of making controls work on multiple. If you have ever tried to write a user control in Visual Studio.NET, you'll already know that the process is bittersweet. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
May 2023
Categories |