i want to create a new form in a specific folder under a project. and then i
want to add controls and set properties.
getting the project isnt a problem. adding the form is.
i just cant seem to find any info that is helping me figure this out.
project.VBComponents.Add() seems the obvious choice.. :)
--
Dee Earley (dee.e...@icode.co.uk)
i-Catcher Development Team
iCode Systems
Oops, ignore that, I missed the vb 2008 bit.
ProjectObject.DTE.ItemOperations.NewFile("General\Text File", "test.vb",
ViewKind:=Constants.vsViewKindDesigner)
to open a new text file in the ide, but it doesnt get added to the current
project
and i still cant figure out what the syntax would be for adding a form.
HELP
ItemOperations.AddNewItem("Common Items\Windows Forms\Windows Form")
which WORKS. it gives me a new form and it open in the design mode and its
added to the project.
now i just need to change the name, start setting properties, and add
controls to it...
any suggestions out there?
ItemOperations.AddNewItem("Common Items\Windows Forms\Windows Form",
myFileName)
takes care of making it the right name...
now for the adding of contraols...
This group is for VB6 and earlier(VB Classic). VB.Net and all dotnet groups
have either "dotnet" or "vsnet" in the group name. Please use the following
group instead:
news://msnews.microsoft.com/microsoft.public.dotnet.languages.vb