Hi Guys,
Yes, I did find references to creating a new template in the SF Forums but it did look a bit 'hard core' so I was attempting to take a light weight approach (like it would seem Greg has already done) however, for me, this didn't work out. So I followed you recommendation and returned to the 'new template' approach. Trent's instructions made it seem quite easy but I'm afraid it wasn't for a newbie.
Extracting the existing template files into a new directory doesn't actually create a project - just four files. While the code is there what isn't is a UI for dropping additional controls onto a form. Do I have to hand code all that side of things in the designer file or is there an easier way? I tried creating a new project and copy/pasted the code into a form but that generated the error:
--------------------
The designer could not be shown for this file because none of the classes within it can be designed. Hide at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.EnsureDocument(IDesignerSerializationManager manager) at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
at System.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLoad(IDesignerLoaderHost host)
-------------------
So, I'm just unclear about what stage I'm at. Do I just have to slog it out and change all the designer code by hand? My concern here is the new controls that I want to add into my new template form?
Greg, thanks for the suggestion. Actually I had already tried that approach but it gave me this error: "withEvents variable 'GradientFormHeader1' conflicts with withEvents variable 'GradientFormHeader1' in the base class 'frmBase_01' and should be declared 'Shadows'." Both my forms where created from the SF DevEx Maintenance Form. Given that I had that error and not being sure about the ongoing implications of tracking the cause and fixing it I didn't want to pursue it.
Cheers and happy Easter to all, Peter