View Single Post
  #8 (permalink)  
Old 10-24-2008, 12:29 PM
JuggaloBrotha's Avatar
JuggaloBrotha JuggaloBrotha is offline
VB.NET Forum Moderator
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Jun 2004
Location: Lansing, MI; USA
Age: 25
Posts: 3,631
Reputation: 396
JuggaloBrotha master of VB.NETJuggaloBrotha master of VB.NETJuggaloBrotha master of VB.NETJuggaloBrotha master of VB.NETJuggaloBrotha master of VB.NETJuggaloBrotha master of VB.NETJuggaloBrotha master of VB.NETJuggaloBrotha master of VB.NETJuggaloBrotha master of VB.NET
Default

Quote:
Originally Posted by dluxoh View Post
All that information is in my first post... I'll start over. New project, and a fresh class that inherits textbox.

here's my class:
Code:
Public Class MySpecialTextBox : Inherits TextBox
End Class
Next I build the project.
So far so good.
Now I drag my new component from the toolbox to the form. I see a textbox on the form...
now I build. . . and it works... strange... I don't know what I did differently this time asside from choosing a different name for my component... oh well I guess I'll never know :P
You have an inconsistency going here. In your first post the only custom control code you posted was this line:
Code:
    Dim test As FormattedTextbox
Which doesn't show any of the actual control's code. It doesn't provide any information as to why you're getting an error at all.

Now in the most recent of your posts you have a custom control named 'FormattedTextbox' which isn't 'MySpecialTextBox'. What's actually going on?
__________________
Currently using: VS 2005 & 2008 Pro w/sp1 on Win7 Ultimate x64.


There are 3 kinds of people in the world: Those who can count and those who can't.
4 out of 3 people have trouble with fractions.

Windows has a 64 bit GUI for a set of 32 bit extensions on a 16 bit shell for an 8 bit OS using a 4 bit kernel made by a 2 bit company that can't stand 1 bit of competition.
Reply With Quote