LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Porblem with mouse click event over a .net button control

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

Regards,
Srikrishna


0 Kudos
Message 1 of 3
(2,702 Views)

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:

 

http://forums.ni.com/t5/LabVIEW/Show-Color-dialog-color-selector-as-on-colorbox-click/m-p/1135526#M5...


___________________
Try to take over the world!
0 Kudos
Message 2 of 3
(2,692 Views)

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?

0 Kudos
Message 3 of 3
(2,680 Views)