Results 1 to 7 of 7

Thread: [RESOLVED] Failed To Create Component

Threaded View

  1. #3

    Thread Starter
    Hyperactive Member DavesChillaxin's Avatar
    Join Date
    Mar 2011
    Location
    WNY
    Posts
    451

    Re: Failed To Create Component

    Quote Originally Posted by techgnome View Post
    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.
    Please rate if my post was helpful!
    Per favore e grazie!




    Code Bank:
    Advanced Algebra Class *Update | True Gradient Label Control *Dev | A Smarter TextBox *Update | Register Global HotKey *Update
    Media Library Beta *Dev | Mouse Tracker (Available in VB.net and C#.net) *New | On-Screen Numpad (VB.net) *New

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width