Does anyone know how to add a Custom Form (say myCustomForm) to the Add dialog box that you get when you right click on your project and select "Add New Item"?
Thanks.
Printable View
Does anyone know how to add a Custom Form (say myCustomForm) to the Add dialog box that you get when you right click on your project and select "Add New Item"?
Thanks.
Have you tried Add -> Add Existing Item... and then browsing for your form? I dunno, maybe I am not understand what you're asking.
I would like to be able to Add my custom form just like you add a new form to a project. Instead of browsing, etc.
So when you right click on the project in the Solution Explorer I would have the option of adding my custom form right from the menu that pops up
OR
When you right click on the project in the Solution Explorer I would select the option of add item, and then my custom form would be one of the options to add.
Hope that is clearer.
Thanks!
You want to customize the context menu for Solution Explorer? You probably can but I can't find the menu option for it. I don't see a command for Project -> Add Existing for that matter. ^_^ Hope you figure it out.
I dug around in the macro recorder a bit and found that the internal command to add existing is:
DTE.ItemOperations.AddExistingItem("[path+filename]")
If you record/write a macro with this command in it, it's a simple matter to assign that to a keyboard command (you probably know this) - how to get it to appear in the context menu I don't know.
It has something to do with the files in the VBProjectItems folder under the vb7 directory of the VS .NET directory.
Takie a look at them and see if you can make heads or tails of them.
Thanks for the input - I will see what I can do. Will let you know...:)
here is some how to info. It is for html templates, but it is the same thing
http://aspfree.com/aspnet/vstemplate.aspx
Thanks for the input - it is working great!!!
Cool.:)