LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

.NET Control does not register "Value Change" event

First of all, I only started LabVIEW about 8 weeks ago.

 

I'm doing a simple leave system management here but encountered a problem with .NET Control.

 

Basically the user will choose the start date & end date of his/her choice and it will reflect that in the indicator.

 

It works fine in a while loop but not in an event structure.

 

How I want it to behave is that after you choose a date in "Start Date", it will reflect back into its own indicator.

 

Can anyone help me please?

0 Kudos
Message 1 of 2
(2,579 Views)

I can't look at your code, but here a couple of relevant options:

 

  1. Use a standard LV timestamp control. You can format it to show only dates and it has a built in button to select a date/time. If you want to have two of these go together, you can create a subVI which will be a separate dialog.
  2. To get events from .NET, you need to use event callbacks. These are more complicated (the event actually runs a VI), but you can register for a user event and have the subVI run that event to get the data in your event structure. Do a search on this to find some examples.

___________________
Try to take over the world!
Message 2 of 2
(2,540 Views)