Page 1 of 1

Adding OpenDental Components Toolbox items

Posted: Thu Oct 06, 2016 7:22 pm
by wjstarck
While trying to add some controls to one of my plugin forms, I noticed that while the OpenDentBusiness components are visible in my ToolBox in the Designer, the OpenDental components are not. I can't seem to find any way to add those components. What's the trick?

Re: Adding OpenDental Components Toolbox items

Posted: Fri Oct 07, 2016 9:07 am
by jsalmon
You probably only have OpenDentBusiness as a reference? I think once you reference a project (or dll, or exe) you get access to its available controls in the Toolbox menu.

Re: Adding OpenDental Components Toolbox items

Posted: Fri Oct 07, 2016 9:58 am
by wjstarck
jsalmon wrote:You probably only have OpenDentBusiness as a reference? I think once you reference a project (or dll, or exe) you get access to its available controls in the Toolbox menu.
Hmm, OpenDental is referenced in my project. I can see the Toolbox in all of OD's Forms, just not mine. I should mention that I'm using VS 2013, and this is 16.3 beta code I am working with.

Re: Adding OpenDental Components Toolbox items

Posted: Fri Oct 07, 2016 10:34 am
by jsalmon
We changed the framework to .NET 4.5 (your version should support just fine) and then the only other thing that I've heard of people having issues with is the "nameof" error which gives you a compile error and shouldn't have anything to do with UI elements.
Did you do the cliché stuff like "Clean" and/or "Rebuild" the entire solution?

I've read about an "auto populate" option for the toolbox that I've never heard of, maybe that will help:
Tools > Options > Windows Forms Designer > General > At the bottom of the list you'll find Toolbox > AutoToolboxPopulate which on a fresh install defaults to False. Set it true and then rebuild your solution.
http://stackoverflow.com/questions/3446 ... io-toolbox

Re: Adding OpenDental Components Toolbox items

Posted: Fri Oct 07, 2016 11:37 am
by wjstarck
Hmmm.

Check, check and check.

I couldn't resolve the nameof stuff so I just commented out those lines as it doesn't really affect building of the plugin.

I'll try in VS2015 and see if it comes back

Thanks