>Hi All,
>
>I am reviewing the idea of moving a VFP app to c#. Although I am happy to re-write the business and data access layers I was hoping I could automate the winform creation. I wrote a small c# program to open up the scx file and pull out all of the controls and position correctly on th new c# form. This all worked well, but the problem is that this is all done at run time so I dont have the actual source code for the form.cs and form.designer.cs.
>
>Is there anyway to achieve this or anything similar?
>
>I have a hundred plus forms so even if I can get something semi automated it will save me some significant time.
>
>Thanks
>
>Jon
Having a long VFP background, and 5-6 years of C# WinForms under my belt, let me say this .....
I strongly recommend you consider WPF using the MVVM pattern. Once you get the hang of it, there is so much more you can do that you can with WinForms. And the MVVM pattern makes it simple to segregate the UI from the data and the BizObj. And, once you learn WPF, you will have a decent start on Silverlight. I can tell you this - I will probably never again write a WinForm app.
Here's a few links:
http://olivercode.net/2010/02/12/mvvm-model-view-view-model-for-dummiessimplified/http://msdn.microsoft.com/en-us/magazine/dd419663.aspxhttp://www.codeproject.com/KB/WPF/WPF_with_MVVM.aspxhttp://www.codeproject.com/KB/silverlight/mvvm-explained.aspx
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people