Hello everybody!
Has anybody developed an app which adds a toolbox item to the .NET IDE
designer? Or knows the steps to do so? Or knows some good tutorials on
this? I have a starting point, the IToolboxService interface, but till
now it didn't work out for me.
Any help is really welcomed,
Christina Androne 7 2491
Christina, it's even simpler than that. Start a new Extensibility project.
The wizard will ask you what application you want to extend and then set
everything up for you. For help on add-ins and the Visual Studio Object
model, check under the
"Extending the Visual Studio Environment" topic in the "Developing with
Visual Studio.NET" help collection as well as the "Extensibility Reference"
under the Reference section.
Hope that's helpful.
--
Greg Ewing [MVP] http://www.citidc.com
"Christina Androne" <ac********@home.ro> wrote in message
news:Od**************@TK2MSFTNGP10.phx.gbl... Hello everybody!
Has anybody developed an app which adds a toolbox item to the .NET IDE designer? Or knows the steps to do so? Or knows some good tutorials on this? I have a starting point, the IToolboxService interface, but till now it didn't work out for me.
Any help is really welcomed,
Christina Androne
Greg Ewing [MVP] wrote: Christina, it's even simpler than that. Start a new Extensibility project.
Thank you for your answer, but unfortunately, I have to find another
solution, without using and addin (team leader says this). Do you know
other solution I can use?
Christina Androne
There are several ways to interact with the VS object model that Greg
mentions.
You can:
- create an addin (essentially an assebly that loads within the VS process).
- create a macro (check Tools->Macros->Macros IDE)
- create a separate exe that opens VS and manipulates it through the object
model or manipulates a currently open instance of VS (you can get a
reference to a running instance of VS by using Marshal.GetActiveObject, if
there's more than one version of VS that's open you would need to do some
extra work to determine which VS you want to manipulate (you would have to
enumerate the elements of the Running Object Table, as far as I know you
would have to invoke the native methods because the framework does not
support this)).
--
Gabriel Esparza-Romero, Visual C# Team
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm
Gabriel Esparza-Romero [MSFT] wrote: There are several ways to interact with the VS object model that Greg mentions.
You can: - create an addin (essentially an assebly that loads within the VS process).
This has been rejected by my team leader, we have to wite separate app
that adds the toolbox item.
- create a macro (check Tools->Macros->Macros IDE)
I'll investigate this
- create a separate exe that opens VS and manipulates it through the object model or manipulates a currently open instance of VS (you can get a reference to a running instance of VS by using Marshal.GetActiveObject, if there's more than one version of VS that's open you would need to do some extra work to determine which VS you want to manipulate (you would have to enumerate the elements of the Running Object Table, as far as I know you would have to invoke the native methods because the framework does not support this)).
What about this approach? http://techrepublic.com.com/5100-6329-5034244.html
I tried to follow the steps from hte article, but, this line a code
raises an exception I have described in another post: EnvDTE.DTE env =
new EnvDTE.DTE();
Untill now, if we figure how to avoid that 1.1 framework bug, most
probably this will be the solution we will choose. The drawback is that
adding components to toolbox is far too slow. We have to add arround 30
components from the same dll. Is there a method of adding all
components from a dll at once? I understood that, for adding component
by component, the IDE loads and frees the dll every time, which is time
consuming.
Thanks for answering,
Christina Androne
Christina, out of curiosity, why does your team lead not want to create an
add-in?
--
Greg Ewing [MVP] http://www.citidc.com
"Christina Androne" <ac********@home.ro> wrote in message
news:eR**************@TK2MSFTNGP10.phx.gbl... Gabriel Esparza-Romero [MSFT] wrote:
There are several ways to interact with the VS object model that Greg mentions.
You can: - create an addin (essentially an assebly that loads within the VS process).
This has been rejected by my team leader, we have to wite separate app that adds the toolbox item.
- create a macro (check Tools->Macros->Macros IDE)
I'll investigate this
- create a separate exe that opens VS and manipulates it through the object model or manipulates a currently open instance of VS (you can get a reference to a running instance of VS by using Marshal.GetActiveObject, if there's more than one version of VS that's open you would need to do some extra work to determine which VS you want to manipulate (you would have to enumerate the elements of the Running Object Table, as far as I know you would have to invoke the native methods because the framework does not support this)).
What about this approach? http://techrepublic.com.com/5100-6329-5034244.html I tried to follow the steps from hte article, but, this line a code raises an exception I have described in another post: EnvDTE.DTE env = new EnvDTE.DTE();
Untill now, if we figure how to avoid that 1.1 framework bug, most probably this will be the solution we will choose. The drawback is that adding components to toolbox is far too slow. We have to add arround 30 components from the same dll. Is there a method of adding all components from a dll at once? I understood that, for adding component by component, the IDE loads and frees the dll every time, which is time consuming. Thanks for answering, Christina Androne
Greg Ewing [MVP] wrote: Christina, out of curiosity, why does your team lead not want to create an add-in?
That was the way the project used to be untill now, but for some
reason, he decided it's better to have a different application for
adding the components to the toolbox. I am not sure, but I think the
main reason was that the addin approach was too slow, like I said in
the previous post.
Christina Androne
Christina Androne wrote: Greg Ewing [MVP] wrote:
Christina, out of curiosity, why does your team lead not want to create an add-in?
Acctully, if I think better, the add-in approach was rejected because
of the method used for adding the toolbox items, which are all located
in the same DLL (we are using ToolBox.ToolBoxItems.Add(...) ). He
thinks that adding component by component is not pretty smart since
that means loading and freeing the assembly for every component. What
we really need right now is a faster method for adding the assembly's
controls.
Christina Androne This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Fred Chen |
last post by:
Hi,
I've created a custom component and I am trying to add this component
to my toolbox through an installer.
I've read previous posts and msdn documentation on using the DTE
object and the...
|
by: Slawomir Piotrowski |
last post by:
Hello,
I'm writing C# code and executing it using InstallUtilLib.dll from custom
action during an installation process. It works fine.
I've written some code to add an item (component) to...
|
by: Javier Ros |
last post by:
Hi guys!, I´m tring to install my own component in the Visual Studio .Net
ToolBox,
I have tried with this code:
// Create a EnvDTE object.
System.Type t =...
|
by: Chien Lau |
last post by:
I frequently define internal UserControl-derived classes in my WinForms
apps:
internal class MyUserControl:UserControl{
...
}
I'll often need to embed these controls in a Form, whose class...
|
by: BluDog |
last post by:
Hi
I have a component that inherits from TreeView, my project is a
standard exe. How do i get the component into the toolbox for use
within the project?
I find that only controls based on...
| |
by: Lawrence |
last post by:
I have started a project, and now when I open the project, I get a message
when I open the toolbox that says "There are no usable control in this group.
Drag an item onto this text to add it to the...
|
by: John Kotuby |
last post by:
Hi all,
This is my first time trying to creaet and use a custome Web Control in a
Web Site project in ASP.NET 2.0 with VS 2005 and VB. I created the control
in a separate Web Control Library...
|
by: R.A.F. |
last post by:
Hi,
I would like to know how can i do to make my custom controls
automatically installed on ToolBox palette and in the right tab.
for example, if my tab does not exist, it should create it and...
|
by: R.A.F. |
last post by:
Hi,
I'm still struggling with my issue about how programmatically add a
custom control on Toolbox palette.
it creates well my TAB with my custom name, but it does not add my
custom control....
|
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,...
|
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...
| |
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: 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...
|
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,...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |