From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

.NET text box Enter and Leave events are not called

Hi,

 

I added a .NET TextBox to LabView using .NET Container. I registered 3 events: Enter, Leave and TextChanged. In each event handler vi, I just prompt a dialog box. Whenever I made some text changes, TextChanged event is called, but seems like Enter and Leave event will never get fired. May I know if anyone has any idea? 

 

I am attaching the program, the main program is textBoxEvent.vi.

 

Thansk.

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

I'm not sure, but I suspect the reason for this is that LabVIEW is not an instance of a Windows Forms class.

 

As an alternative you could use a LabVIEW event structure and handle the control's Mouse Enter event. Note that in this case I'm referring to the .NET container control, not the embedded Textbox. 

0 Kudos
Message 2 of 3
(2,689 Views)
I tried Mouse Enter event. This event will be called everytime there is a mouse hover, although I do not click on the control. This doesn't fit my application needs at the moment. I will look for alternatives. Thanks a lot anyway 🙂
0 Kudos
Message 3 of 3
(2,517 Views)