When I try compiling it for the desktop, I get that error message.
I downloaded and unzipped the sample; opened the file. Received a message that
ControlsEx.dll
SQLDesktop.dll
FormLib.dll
were copied
Hit OK and then received two messages
Library ControlsExDevice.dll was not found.
Library RichTextBoxDesktop.dll was not found.
I copied these from the Additional Libraries into the folder and then got the error.
Since it's a desktop app, I don't see why it's looking for controlsExDevice. So I deleted that and copied ControlsExDesktop.dll instead.
Problem solved.