06-24-2010 12:39 AM
Hi all,
I have a problem with the .net button control with the mouse click event...The main purpose of the VI is displaying the color box ,everytime i click on the button...But i had problem that if i am clicking on the button continuously the color dialog box is unable to close and also it sometimes crashing Labview itself..I am attaching the VI also along with the callback function.
Thanks and regards,
srikrishnaNF
06-24-2010 01:53 AM
I can't comment on your issue (no experience with .NET callbacks or that dialog), but I should point out that you create a color selection dialog yourself:
06-24-2010 09:21 AM
Typically when you're calling .NET dialog boxes like that you need to make sure the VI is running in the "user interface" thread.
I have a simpler question: Why are you using a .NET button to do what a normal LabVIEW button can do, and without having to resort to a callback?