Hi,
When right clicking a project in Solution Explorer, and chosing the 'Add'
menu, a bunch of choices come up depending on the project type. So there
might be 'Add Module', 'Add Class', 'Add Windows Form', etc.
Is there a way to modify what is on this menu? I would like to include a
custom file type in that menu, that is already defined and appears in the
'Add New Item' dialog box. That way instead of chosing 'Add New Item' and
chosing the right file type from the dialog, someone could just chose it
from the menu.
Thanks 4 1369
Interesting. I found that this is apparently controlled by a file. Fire up a
text editor and open C:\Program Files\Microsoft Visual Studio .NET
2003\VC#\CSharpProjectItems\LocalProjectItems\Loca lProjectItems.vsdir
(substitute with your install path). By copying the "new CodeFile.cs" line
and modifying it like so:
...\NewPythonFile.py|{FAE04EC1-301F-11d3-BF4B-00C04F79EFBC}|#2261|80|#2267|{F
AE04EC1-301F-11d3-BF4B-00C04F79EFBC}|4599|0|PythonFile.py
And then creating an empty file under C:\Program Files\Microsoft Visual
Studio .NET 2003\VC#\CSharpProjectItems called "NewPythonFile.py" the item
shows up under the "Add New Item" dialog and is added successfully to the
project as "NewPythonFile1.py". Of course who knows what all those numbers
and the GUID are for.
The icon in the dialog is the right one, but when added to the project its
shown with the generic text icon.
There's probably a better way to do this, but this should get you started =)
--
____________________
Klaus H. Probst, MVP http://www.vbbox.com/
"Marina" <nospam> wrote in message
news:uf**************@TK2MSFTNGP09.phx.gbl... Hi,
When right clicking a project in Solution Explorer, and chosing the 'Add' menu, a bunch of choices come up depending on the project type. So there might be 'Add Module', 'Add Class', 'Add Windows Form', etc.
Is there a way to modify what is on this menu? I would like to include a custom file type in that menu, that is already defined and appears in the 'Add New Item' dialog box. That way instead of chosing 'Add New Item' and chosing the right file type from the dialog, someone could just chose it from the menu.
Thanks
I already have all this working.
I already have my new template appearing in the Add New Item dialog - I
mentioned this in my post.
What I don't have, is have it as a separate item when you right click on the
project in Solution Explorer, chose Add, and then get the menu options. The
options in this context menu is what I need to modify.
"Klaus H. Probst" <us*******@vbbox.com> wrote in message
news:ej**************@TK2MSFTNGP09.phx.gbl... Interesting. I found that this is apparently controlled by a file. Fire up
a text editor and open C:\Program Files\Microsoft Visual Studio .NET 2003\VC#\CSharpProjectItems\LocalProjectItems\Loca lProjectItems.vsdir (substitute with your install path). By copying the "new CodeFile.cs" line and modifying it like so:
...\NewPythonFile.py|{FAE04EC1-301F-11d3-BF4B-00C04F79EFBC}|#2261|80|#2267|{F AE04EC1-301F-11d3-BF4B-00C04F79EFBC}|4599|0|PythonFile.py
And then creating an empty file under C:\Program Files\Microsoft Visual Studio .NET 2003\VC#\CSharpProjectItems called "NewPythonFile.py" the item shows up under the "Add New Item" dialog and is added successfully to the project as "NewPythonFile1.py". Of course who knows what all those numbers and the GUID are for.
The icon in the dialog is the right one, but when added to the project its shown with the generic text icon.
There's probably a better way to do this, but this should get you started
=)
-- ____________________ Klaus H. Probst, MVP http://www.vbbox.com/
"Marina" <nospam> wrote in message news:uf**************@TK2MSFTNGP09.phx.gbl... Hi,
When right clicking a project in Solution Explorer, and chosing the
'Add' menu, a bunch of choices come up depending on the project type. So
there might be 'Add Module', 'Add Class', 'Add Windows Form', etc.
Is there a way to modify what is on this menu? I would like to include
a custom file type in that menu, that is already defined and appears in
the 'Add New Item' dialog box. That way instead of chosing 'Add New Item'
and chosing the right file type from the dialog, someone could just chose it from the menu.
Thanks
You'll probably have to write an add-in for that. I can't see where these
menu entries can be modified manually.
--
____________________
Klaus H. Probst, MVP http://www.vbbox.com/
"Marina" <mz*******@hotmail.com> wrote in message
news:eN**************@TK2MSFTNGP12.phx.gbl... I already have all this working.
I already have my new template appearing in the Add New Item dialog - I mentioned this in my post.
What I don't have, is have it as a separate item when you right click on
the project in Solution Explorer, chose Add, and then get the menu options.
The options in this context menu is what I need to modify.
"Klaus H. Probst" <us*******@vbbox.com> wrote in message news:ej**************@TK2MSFTNGP09.phx.gbl... Interesting. I found that this is apparently controlled by a file. Fire
up a text editor and open C:\Program Files\Microsoft Visual Studio .NET 2003\VC#\CSharpProjectItems\LocalProjectItems\Loca lProjectItems.vsdir (substitute with your install path). By copying the "new CodeFile.cs"
line and modifying it like so:
...\NewPythonFile.py|{FAE04EC1-301F-11d3-BF4B-00C04F79EFBC}|#2261|80|#2267|{F AE04EC1-301F-11d3-BF4B-00C04F79EFBC}|4599|0|PythonFile.py
And then creating an empty file under C:\Program Files\Microsoft Visual Studio .NET 2003\VC#\CSharpProjectItems called "NewPythonFile.py" the
item shows up under the "Add New Item" dialog and is added successfully to
the project as "NewPythonFile1.py". Of course who knows what all those
numbers and the GUID are for.
The icon in the dialog is the right one, but when added to the project
its shown with the generic text icon.
There's probably a better way to do this, but this should get you
started =)
-- ____________________ Klaus H. Probst, MVP http://www.vbbox.com/
"Marina" <nospam> wrote in message news:uf**************@TK2MSFTNGP09.phx.gbl... Hi,
When right clicking a project in Solution Explorer, and chosing the 'Add' menu, a bunch of choices come up depending on the project type. So there might be 'Add Module', 'Add Class', 'Add Windows Form', etc.
Is there a way to modify what is on this menu? I would like to
include a custom file type in that menu, that is already defined and appears in the 'Add New Item' dialog box. That way instead of chosing 'Add New Item' and chosing the right file type from the dialog, someone could just chose
it from the menu.
Thanks
Right, the question is what the add-in looks like. The API is very poorely
documented, especially considering everything is just a huge collection of
objects with some sort of name for everything.
What I'm looking for is sample code that would do this...
"Klaus H. Probst" <us*******@vbbox.com> wrote in message
news:Oe**************@TK2MSFTNGP12.phx.gbl... You'll probably have to write an add-in for that. I can't see where these menu entries can be modified manually.
-- ____________________ Klaus H. Probst, MVP http://www.vbbox.com/
"Marina" <mz*******@hotmail.com> wrote in message news:eN**************@TK2MSFTNGP12.phx.gbl... I already have all this working.
I already have my new template appearing in the Add New Item dialog - I mentioned this in my post.
What I don't have, is have it as a separate item when you right click on the project in Solution Explorer, chose Add, and then get the menu options. The options in this context menu is what I need to modify.
"Klaus H. Probst" <us*******@vbbox.com> wrote in message news:ej**************@TK2MSFTNGP09.phx.gbl... Interesting. I found that this is apparently controlled by a file.
Fire up a text editor and open C:\Program Files\Microsoft Visual Studio .NET 2003\VC#\CSharpProjectItems\LocalProjectItems\Loca lProjectItems.vsdir (substitute with your install path). By copying the "new CodeFile.cs" line and modifying it like so:
...\NewPythonFile.py|{FAE04EC1-301F-11d3-BF4B-00C04F79EFBC}|#2261|80|#2267|{F AE04EC1-301F-11d3-BF4B-00C04F79EFBC}|4599|0|PythonFile.py
And then creating an empty file under C:\Program Files\Microsoft
Visual Studio .NET 2003\VC#\CSharpProjectItems called "NewPythonFile.py" the item shows up under the "Add New Item" dialog and is added successfully to the project as "NewPythonFile1.py". Of course who knows what all those numbers and the GUID are for.
The icon in the dialog is the right one, but when added to the project its shown with the generic text icon.
There's probably a better way to do this, but this should get you started =)
-- ____________________ Klaus H. Probst, MVP http://www.vbbox.com/
"Marina" <nospam> wrote in message news:uf**************@TK2MSFTNGP09.phx.gbl... > Hi, > > When right clicking a project in Solution Explorer, and chosing the
'Add' > menu, a bunch of choices come up depending on the project type. So there > might be 'Add Module', 'Add Class', 'Add Windows Form', etc. > > Is there a way to modify what is on this menu? I would like to include a > custom file type in that menu, that is already defined and appears
in the > 'Add New Item' dialog box. That way instead of chosing 'Add New
Item' and > chosing the right file type from the dialog, someone could just
chose it > from the menu. > > Thanks > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Bizt |
last post by:
Hi,
I would like to create a menu where the menu options were taken from
an XML file. The reason is that I would be able to update the xml file
(by simply adding new child nodes) after I...
|
by: George Rogic |
last post by:
Hello:
I've done an exhaustive online search and either can't find what I'm looking
for or I'm unable to make what I've found work. I'm not a programmer, but
I'm sure that this is probably...
|
by: Yuk Cheng |
last post by:
<<<start index.htm>>>
<html>
<head>
<script>
function perform(action){
}
</script>
</head>
|
by: Cecilia Bergengruen |
last post by:
2 questions:
1)I inserted a menu in an mdi window form. I right clicked on a menu
item and pressed edit names. I therefore edited all my menu item names.
Then I right clicked and pressed edit...
|
by: Marina |
last post by:
Hi,
When right clicking a project in Solution Explorer, and chosing the 'Add'
menu, a bunch of choices come up depending on the project type. So there
might be 'Add Module', 'Add Class', 'Add...
|
by: shankwheat |
last post by:
I've been using this little script to change the <a href=""></a> value
of a link which works well.
<script language="javascript" type="text/javascript">
function ordering(sorder)
{
var link =...
|
by: Jason |
last post by:
Hi all,
I know how to do this the hard way, but I suspect that there's an
easier option.
I'm creating a program that requires a series of 4 or 6 select menus.
Something like this:
<select...
|
by: Ravi Joshi |
last post by:
The menu on my site works fine in IE6 and Firefox.
In IE7, there is a problem with the menu: when you mouse over the various main catagories, the sub-catagories all appear to the right as they...
|
by: Anic297 |
last post by:
Hello,
I'm a newbie in php.
I would like to show a popup menu on my website and update the page when
the user has changed its selection.
I have looked over the Internet but haven't found what I...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
| |