WinBatch® Technical Support Forum

Archived Boards => COM Automation and dotNet => Topic started by: stanl on April 16, 2014, 05:36:39 AM

Title: CLR RichText sample updated
Post by: stanl on April 16, 2014, 05:36:39 AM
Script now includes code based on previous thread which addressed running C# code In-Memory. Credit, of course, to Deana and Tony.  Basically, a backcolor value can be assigned to controls on the form and the form background itself. Colors are set by the FromArgb() method, but the C# snippet can probably be modified to accept predefined names, i.e. "Sienna".
Title: Re: CLR RichText sample updated
Post by: stanl on April 16, 2014, 06:45:48 AM
Sample RTF now calls C# code compiled as .dll and in addition to the a,r,g,b parameters, backcolor now accepts a name. Script, dll, and code (as text file) attached.