I would like to ask, where can I change version of .Net Framework which is used by iX Developer. Becouse we have simple problem. We try to connect USB cam to TxA to capture screen of products. Here we have C# code thats work when i used in iX Developer (PC) but when we try to converted it to TxA panel there show an error thats refer to iX Developer is using old version 2.0.0.
We have .Net Framwork 4.5
Win 7 ( both version )
iX Dev SP1
Code
Code: Select all
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 AForge.Video;
using AForge.Video.DirectShow;
public partial class Screen1
{
private FilterInfoCollection VideoCaptureDevices;
private VideoCaptureDevice FinalVideoSource;
void Screen1_Opened(System.Object sender, System.EventArgs e)
{
VideoCaptureDevices = new FilterInfoCollection(FilterCategory.VideoInputDevice);
foreach (FilterInfo VideoCaptureDevice in VideoCaptureDevices)
{
ComboBox1.Items.Add(VideoCaptureDevice.Name);
}
ComboBox1.SelectedIndex = 0;
}
void Button1_Click(System.Object sender, System.EventArgs e)
{
FinalVideoSource = new VideoCaptureDevice(VideoCaptureDevices[ComboBox1.SelectedIndex].MonikerString);
FinalVideoSource.NewFrame += new NewFrameEventHandler(FinalVideoSource_NewFrame);
FinalVideoSource.Start();
}
void FinalVideoSource_NewFrame(object sender, NewFrameEventArgs EventArgs)
{
Bitmap image = (Bitmap)EventArgs.Frame.Clone();
PictureBox1.Image = image;
}
void Screen1_Closed(System.Object sender, System.EventArgs e)
{
if(FinalVideoSource.IsRunning)
{
FinalVideoSource.Stop();
}
}
Code: Select all
Could not load file or assembly 'System.Drawing, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
It is necessary to System.Drawing, Version = 2.0.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a it set on actual version
BR
JAN