Page 1 of 1

"Form form" on T21C

Posted: Mon Aug 12, 2013 2:11 am
by Joe
Hi,

why does not work the following script on T21C and on TA150 is working OK.

Missing library ... ?

T21C -> Error message in iX Developer - Cannot convert type 'Neo.ApplicationFramework.Generated.TestForm' to 'System.Windows.Forms.Form'

Code: Select all

namespace Neo.ApplicationFramework.Generated
{
    using System.Windows.Forms;
    using System;
    using System.Drawing;
    using Neo.ApplicationFramework.Tools;
    using Neo.ApplicationFramework.Common.Graphics.Logic;
    using Neo.ApplicationFramework.Controls;
    using Neo.ApplicationFramework.Interfaces;
	
	using System.IO;
    
    public partial class TestForm
   
	{	
		void Design1()
		
		{
			Form form = (Form) this;
............
Thanks

Regards

Joe

Re: "Form form" on T21C

Posted: Mon Aug 12, 2013 2:53 am
by Edmund
Hi!

Probably because on the TA150 the project output is a "Windows Form Application" but on the PC-version it´s a "WPF-Application"...

Search for something like "Windows Form vs WPF" on Google and you will find more info about the difference...

Re: "Form form" on T21C

Posted: Tue Aug 13, 2013 6:16 am
by mark.monroe
Edmund is right. The TxC units use the full .NET 4.0 framework, while the TAx, TxA, and TxB units use the .NET Compact framework. The different frameworks are similar but not the same. The reason is that units that run Windows CE on them can only use the Compact framework, which is slightly different from the full .NET framework. You always have to keep that in mind wen you are using C# in iX Developer.