"Form form" on T21C

A forum devoted to the discussion of all topics having to do with scripting and other advanced programming using iX Developer.
Post Reply
Joe
Posts: 27
Joined: Tue Sep 18, 2012 4:53 am

"Form form" on T21C

Post 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

User avatar
Edmund
Posts: 92
Joined: Thu Nov 29, 2012 2:27 pm

Re: "Form form" on T21C

Post 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...
Edmund Andersson

AITECH AB

Part of Beijer Integrator Group

mark.monroe
Posts: 824
Joined: Tue Mar 13, 2012 9:53 am

Re: "Form form" on T21C

Post 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.
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer

Post Reply