Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Custom Control help
Message
From
25/06/2007 14:54:34
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
Class design
Title:
Custom Control help
Environment versions
Environment:
VB 8.0
Miscellaneous
Thread ID:
01235431
Message ID:
01235431
Views:
58
OK, now it is my turn to ask a question about custom controls... *ducks*

Hopefully this is an easy one, as I think I am just misunderstanding what I am supposed to do. I created a class called MyTextBox, and inherited from System.Windows.Forms.TextBox, and I could place my custom control on the form. Now, to play around with it I tried to set some defaults, specifically setting ReadOnly = True. It didn't seem to carry forward into the control I dropped.

Here is my code:
Public Class MyTextBox
    Inherits System.Windows.Forms.TextBox

    Public Sub New()

        MyBase.New()

        Me.ReadOnly = True

    End Sub

End Class
Any guidance? Thanks!
Very fitting: http://xkcd.com/386/
Next
Reply
Map
View

Click here to load this message in the networking platform