Code: Select all
void Screen1_Opened(System.Object sender, System.EventArgs e)
{
Form form = (Form) this;
//create new image object here
form.Controls.Add(imgObj);
}
Code: Select all
void Screen1_Opened(System.Object sender, System.EventArgs e)
{
Form form = (Form) this;
//create new image object here
form.Controls.Add(imgObj);
}
What do you mean by doesn't work? Please send a screen shot of the error.Secondly, I try to load opennetcf library located on your folder, it doesn't work it on iX developer.
You may want to put this code in an event so you can exit to WinCE 6.0 and view exactly what files are on the terminal. Warning if you change something in the files, you risk corrupting the unit and will need to return it for repair.Thirdly, Where the folder "project pictures" in HMI? how we address it?
Code: Select all
Process.Start("Explorer.exe", "");
Application.Exit();
Yes that is correct. The HMI has an underlying O.S. of Windows Embedded CE 6.0 which means it only support the ".NET Compact Framework" library which is a subset of the .NET Framework library.I think image has some properties not supported by HMI OS. I don't know what is that?
I have not written the code to do this, but from the information I've gathered online this should be possible.Do you have any idea to create image supported by windows CE?
We don't have any code to do this. The Multi-Picture object will let you change between different pictures at run-time, but it doesn't let you dynamically load the pictures from a file at run-time.or is it possible to change picture in your component "picture" using script.
I suspect that you will have better luck dynamically loading 24-bit .BMP files from C# script into an instance of an Image control.My image file is very small (about 10k), I notice bit depth 32bit and atrributes is N. Does those properties cause problem?