I am using Visual Studio 2012 to create a custom control - datetimepicker. The control works fine as a class and there are no debugging errors on the class side.
Once I build the project and import the DLL into the new project to test the control out I get an error saying that it cannot find the file specified even though I load it into the Toolbox control and it shows up and is able to be dragged onto the form. I am using Visual Studio 2012 VB.Net Express. Any ideas would be greatly appreciated. Thank you!
3 Replies - 1416 Views - Last Post: 01 November 2012 - 10:35 AM
Replies To: Custom Control - Cannot Find the File Specified Error
Re: Custom Control - Cannot Find the File Specified Error
Posted 01 November 2012 - 10:35 AM
After adding a reference to System.Windows.Forms and doing the Inherit this seemed to fix the problem. It seems as if when you are doing a control straight from a class as a custom control you have to do an 'Add Reference' to get the inherit statement to recognize the information. Thank you for the replies.
Page 1 of 1