Example Code

Drag and Drop Between Listboxes But Not in the Same Listbox

Code and Documents

Attachment

Overview

This example demonstrates the use of Event Structure to enable drag and Drop between Listbox.

 

 

Description

This program controls drag drop functionality between listboxes in one VI. If the drag is started in one Listbox, the drop will not be allowed in the same Listbox. However, all other Listboxes will accept the drop.

 

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Download the attached folder to your computer
  2. Open the VI "Drag and Drop Between Listbox 2012 NIVerified.vi”
  3. Run the program
  4. Drag between listbox.

 

Additional Information or References
VI Snippet

 Block Diagram.PNG

 

 **This document has been updated to meet the current required format for the NI Code Exchange.**

 

Applications Engineer
National Instruments

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.