3 Replies - 853 Views - Last Post: 01 November 2012 - 10:35 AM Rate Topic: -----

#1 kyle_denney  Icon User is offline

  • D.I.C Head

Reputation: -1
  • View blog
  • Posts: 136
  • Joined: 10-August 12

Custom Control - Cannot Find the File Specified Error

Posted 30 October 2012 - 03:27 PM

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!

Is This A Good Question/Topic? 0
  • +

Replies To: Custom Control - Cannot Find the File Specified Error

#2 sela007  Icon User is offline

  • D.I.C Addict

Reputation: 138
  • View blog
  • Posts: 838
  • Joined: 21-December 11

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...
Was This Post Helpful? 0
  • +
  • -

#3 AdamSpeight2008  Icon User is offline

  • MrCupOfT
  • member icon


Reputation: 2240
  • View blog
  • Posts: 9,411
  • Joined: 29-May 08

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?
Was This Post Helpful? 0
  • +
  • -

#4 kyle_denney  Icon User is offline

  • D.I.C Head

Reputation: -1
  • View blog
  • Posts: 136
  • Joined: 10-August 12

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.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1