Page 1 of 1

Control Problems

Posted: Tue Oct 09, 2012 5:02 am
by Smiley
Hi Guys, I've been having a little problem with importing external controls into my applications ever since i reinstalled my operating system, heres what I'm getting when i try to debug with an external control in my application.

Example:
Untitled.png
Thanks In Advance cooll;

Re: Control Problems

Posted: Tue Oct 09, 2012 2:10 pm
by Scottie1972
the Control is using a different Framework then the Project is.
Either find a Updated control or change the Framework of your Project to Framework 2.0.

this is happening a lot since Win7 came out. And people are downloading and using custom controls posted on CodeProject.com VbForums.com and other coding websites.

Re: Control Problems

Posted: Tue Oct 09, 2012 2:20 pm
by muttley1968
you might find that you got the same problem as me i have a custom control that give me that warning and that errors yet if i go to the desiner and change it from
Me.CrystalClearTabControl1 = New Minecraft_lotto.CrystalClearTabControl()
to
Me.CrystalClearTabControl1 = New CrystalClearTabControl()

It will work fine i dont know why but it works you might want to try that

Re: Control Problems

Posted: Tue Oct 09, 2012 5:41 pm
by Smiley
Scottie1972 wrote:
the Control is using a different Framework then the Project is.
Either find a Updated control or change the Framework of your Project to Framework 2.0.

this is happening a lot since Win7 came out. And people are downloading and using custom controls posted on CodeProject.com VbForums.com and other coding websites.
Hi Scottie, i tried your solution unfortunately when i tried to import the control into my toolbar i would not show up this happens when i use every .NET framework other than 4.0.

Do you have any other solutions dunnno;

Re: Control Problems

Posted: Tue Oct 09, 2012 5:44 pm
by Smiley
muttley1968 wrote:
you might find that you got the same problem as me i have a custom control that give me that warning and that errors yet if i go to the desiner and change it from
Me.CrystalClearTabControl1 = New Minecraft_lotto.CrystalClearTabControl()
to
Me.CrystalClearTabControl1 = New CrystalClearTabControl()

It will work fine i dont know why but it works you might want to try that
Hi Muttley, i tried out your solution but i still got the same error even after i re-imported the reference.

Do you have any other solutions dunnno;

Re: Control Problems

Posted: Tue Oct 09, 2012 6:01 pm
by CodenStuff
Try changing target framework....

Image

Re: Control Problems

Posted: Wed Oct 10, 2012 1:02 am
by Smiley
CodenStuff wrote:
Try changing target framework....

Image
Hi Code N Stuff,
Thank you very much i have been scratching my head over this problem for a while and finally i have a solution and can get back to making applications.

Thanks Again, Smiley cooll;