This week's nugget deals with front panel control references. If you need a control reference on the panel (like when you're sending a control reference into a subVI), you typically drop a Control Reference from the Refnum palette on the front panel, right-click, and choose the appropriate class. Also you sometimes will have to right-click and choose "Include Data Type" when dealing with a control class that may have more than one data type associated with it (like a single-select vs. a multi-select listbox). This gets even more confusing if the data type of the control you're dealing with is not the "normal" data type of that control (an array data type listbox is a good example).
Turns out there's a much easier way to create a class-specific, type-specific control reference on the front panel. Assuming you already have the appropriate control (like our afore-mentioned listbox) on your front panel, just drop a control reference on the front panel, then control-drag the control *into* the control reference. You'll see that the control reference automatically adapts to be of the proper class and data type of the dragged control.
-D
P.S. - Check out past nuggets
here.