09-19-2010 08:40 AM
Hi,
I use IMAQ Vision Development Moule 2010 with VS 2010. I observed that the backcolor property is not active at runtime although it can be changed at design time.
Is it a bug? I also observed that palette type is not changed at r untime.
All help is appreciated.
Solved! Go to Solution.
09-20-2010 01:15 PM
Are you using the correct property node? I've used the following at it seems to work.
Let me know if you have any additional information.
09-21-2010 09:50 PM
Thanks for your response,
I changed the BackColor property in design time which implies that it is the correct property. It is not changed at runtime. The case is reversed for Palette Type property as the property can be effectively changed only at runtime.
P.S: I use Visual Studio 2010, not LABVIEW
09-22-2010 07:02 PM - edited 09-22-2010 07:03 PM
There is a property called Image Area Fill Style which you need to set to Solid rather than Default. Then you should be able to change the color during runtime. If you have it set to Default, it will not allow you to change colors. Sorry I forgot you were using Visual Studio. Even though I'm using LabVIEW, you should be able to do the same thing in Visual Studio, just set both these properties.
*Edit: Just a small note, there is no need for me to use an explicitly linked property node here.
Hope this helps!
09-27-2010 09:55 PM
Hi,
I searched for the property you mentioned and finally found it. Here is the code for future reference (In VB.NET):
imgPreview.BackgroundOptions.FillStyle = NationalInstruments.Vision.WindowsForms.BackgroundFillStyle.Solid imgPreview.BackColor = Color.Black
By the way, I got a weired suggesstion from NI Arabia to compile your labview code and use it as a Dll in my project !!!.
Thanks Tejinder for your help