Hello!
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 - 298 Views - Last Post: 01 November 2012 - 10:35 AM
#1
Custom Control - Cannot Find the File Specified Error
Posted 30 October 2012 - 03:27 PM
Replies To: Custom Control - Cannot Find the File Specified Error
#2
Re: Custom Control - Cannot Find the File Specified Error
Posted 01 November 2012 - 10:01 AM
have you try with add reference to dll.
project>add reference >browse...
project>add reference >browse...
#3
Re: Custom Control - Cannot Find the File Specified Error
Posted 01 November 2012 - 10:07 AM
Is that DLL trying to load something? An Image?
#4
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
|
|

New Topic/Question
Reply



MultiQuote




|