ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Gui issue with .NET C# OI

Hi all,

I'm developing an OI in .NET C# with WinForm. I started from NI example.

I would like to use Winform extended control to have a better design and ergonomy.

For that, I use "ObjectListView" package which embedded an extended ListView.

In my application, the list view flickers although in a traditionnal Winform app, there is no flickering.

I see some possible fix like adding :   

 

Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);

 

But it's not working with my application.

Probably due to the fact that, I don't use "Application.Run" but "LaunchTestStandApplicationInNewDomain.LaunchProtected"

 

How can I execute these 2 instruction in an OI context?

 

Thanks in advance for your help

 

 

0 Kudos
Message 1 of 2
(545 Views)

I don't know what you mean by Object List View, in fact, it's completely unnecessary to introduce other packages.
brother, just use the native Winform Listview control and it's okay,
I am currently working on this part of the development and happened to be using Listview (also start with "LaunchTestStandApplicationInNewDomain.LaunchProtected"), which is easy to achieve without flickering.

0 Kudos
Message 2 of 2
(487 Views)