|
-
May 14th, 2003, 11:15 AM
#1
Thread Starter
Fanatic Member
How to add custom form to the Add options
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.
-
May 14th, 2003, 04:43 PM
#2
Fanatic Member
Have you tried Add -> Add Existing Item... and then browsing for your form? I dunno, maybe I am not understand what you're asking.
-
May 15th, 2003, 07:37 AM
#3
Thread Starter
Fanatic Member
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!
-
May 15th, 2003, 08:41 AM
#4
Fanatic Member
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.
-
May 15th, 2003, 09:31 AM
#5
Fanatic Member
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.
-
May 15th, 2003, 09:51 AM
#6
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.
-
May 15th, 2003, 10:09 AM
#7
Thread Starter
Fanatic Member
Thanks for the input - I will see what I can do. Will let you know...
-
May 15th, 2003, 10:17 AM
#8
here is some how to info. It is for html templates, but it is the same thing
http://aspfree.com/aspnet/vstemplate.aspx
-
May 16th, 2003, 10:46 AM
#9
Thread Starter
Fanatic Member
Thanks for the input - it is working great!!!
-
May 16th, 2003, 10:48 AM
#10
Cool.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|