Can't add new form
Yesterdday I added power toys and My.windows.events.extensions. Today I wanted to add a form to my project. I tried the add new item button and got only my templates, with the two choices being the above and search for more templates online.
I tried project menu -> add windows form, with the same result.
I uninstalled power toys to no avail.
I found nothing like windows events extensions, or my.windows, or microsoft. window, etc., to uninstall.
Might somebody please help me add a new form to my project?
Is this a bug, or just my stupidity?
dennist
[569 byte] By [
dennist] at [2008-2-20]
Here's my idiotic workaround. I created a new windows application with form1. I copied form1.vb and form1.designer.vb to my project. I saved them as form2. Now I have two forms to work with. Etc.
I hope I'm not stuck with that.
dennist
I hope you're not stuck with that either... Our template system spits a bunch of info into the Application Event Log (Start | Run | eventvwr) that may be helpful. The next thing to do would be to verify your templates are still installed on your machine in "C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\" -- the folder names are ItemTemplates and ItemTemplateCache. The first has the zipped template, and the second has the .zip file expanded so we don't have to do it every time you add an item to the project.If they're still there, then you should try opening a command prompt in the same folder and typing:
devenv /setup
During this operation, VS will unzip any templates that need to be unzipped.
The last thing I'd ask is where you got your addins from -- if I can try to repro this internally, I may be able to see what's getting corrupted.
thanks,
e-
erickn@microsoft.com
I understand what's happened now, and it's the fact that you installed the MyWindowsEvents.vsi that's causing this. What it's done is that it's added a second node in the Categories tree-view inside the Add New Item dialog so that the dialog should now appear like this (if you catch my drift):Categories Templates
this one is the treeviewVisual Basic Items My Windows...
General
And when you add a new item, focus is by default on the "General" node, which only contains My Windows Events Extensions" and "Search Online Templates...". If you select the "Visual Basic Items" node in the tree-view, then you'll see all the templates you expected to see.
Now the potential problem (that may or may not be problemmatic) could be that if you're using VB Express, I'm not sure if the Categories treeview is visible in the Add-New-Item dialog. Can you let me know if you can see the Categories treeview inside the Add-New-Item dialog?
If it's visible, then simply navigate to the "Visual Basic" node in the treeview, add any item and then the "Visual Basic" node will be the default selected node from that point on.
If it's not visible, the work-around would be to navigate to the location where your templates are stored (this location is specified in Tools | Options | Projects and Solutions | Visual Studio user item templates location) -- mine is "My Documents\Visual Studio 2005\templates\ItemTemplates" -- drill down into the "Visual Basic" folder, and delete the folder named "General".
Let me know if that solves your problem.
hth,
e-
Hi,
I have exactly the same problem. I saw the "General" node and I clicked "Visual Basic intems" but I get nothing but inherited foms and control templates.
I do have both VS2005 and VB 2005 Express installed and everything is OK in VB 2005 express where I can see my templates.
I saw that VB 2005 Express seems to have its own ItemTemplates directory ?
What are 1033 and 1036 directories ? Do they refer to VS ans VB ?
Thanks for your help
Patrick