With the release of Mi-Forms Designer 6, integration with Visual Studio 2005 is now an excellent alternative to using the embedded editor. To use Visual Studio 2005 as your editor, simply go to Tools-->Options in the Mi-Forms Designer and select the Script Editor tab. The last option in this window is "Visual Studio 2005". Once you set this option, Visual Studio 2005 will load when you select "Script" from the File Menu.
NOTE: Visual Studio 2005 does not include the Event Tree so you will need to create the Event Handlers prior to switching to Visual Studio 2005 or you will need to write your own Event Handlers.
While the Mi-Forms Designer script editor is fairly full-featured, Visual Studio .NET is the gold standard for .NET coding. If you want to code Mi-Forms script in Visual Studio.NET, do the following:
- Create a new Visual Basic project (Class Library) called ScriptProject
- Under References, choose Add Reference"
- On the .NET tab, choose Browse
- Browse to your Form Designers install directory (typically c:\program files\mi-co\mi-forms designer)
- Select MiCo.MiForms.MiFormsComponent.dll and click Open
- Click OK
- Right-click on ScriptProject and choose Add -> Class. Name the class FormScript
- Save this project
Now that you have the project created, you can copy and paste your form script from the Mi-Forms Designers script editor into the FormScript.vb file and code with all the facilities available in VS.NET
Posted in: Scripting