|
-
Dec 1st, 2011, 11:49 AM
#3
Thread Starter
Hyperactive Member
Re: Failed To Create Component
 Originally Posted by techgnome
when ever you inherit a class, if you add your own constructor, first thing you should make sure you do... invoke the base class's constructor...
Code:
Public Class Class1
Inherits System.Windows.Forms.Panel
Public Sub New()
MyBase.New()
' ... now add your code after this
End Sub
End Class
-tg
I've already tried this and as I usually do... but still I get the same error. 
EDIT: If this helps, I've had a little reference problem with my user controls, where I get errors project wide(controls don't show in the toolbox, and no references to the controls exist, though I can clearly see they do in my solutions explorer).. Nearly every time this happens I have to start from scratch. However this time I was able to salvage my project from the hole.. So I'm not sure if something is still there messing things up - seeing that my button control(user control) doesn't show up in the designer window. Just a blank screen, but the code is still visible.
Last edited by DavesChillaxin; Dec 1st, 2011 at 11:56 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|