After I successfully created a .dll library for a user control, my next step was to be able to add it to the Toolbox. When I select 'Choose items' on the toolbox tab and add the .dll, I received a message 'No components found to be able to add to Toolbox'.
I got around this problem by adding an ToolboxItem(true) attribute to the user control's code behind class.
However, once the control was on the Toolbox, it gave me a 'Invalid FORMATETC structure (Exception from HRESULT: 0x80040064(DV_E_FORMATETC))' error message when I tried to drag and drop that control to the design surface.
Please advise. (I am using VS2005 and .NET 2.0, Visual C#).
TechTalkToe |
"As good as it gets!" |