Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subclassing questions
Message
From
30/01/2004 10:41:14
 
 
To
30/01/2004 08:32:29
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00872256
Message ID:
00872323
Views:
27
Steve,

Start with making a project that will contain all your sub-classed controls. I would subclass everything you plan to use on any forms, not just the label and grid.
Namespace MyCompany.WinUI.MyClasses
    _
   Public Class MyGrid
      Inherits System.Windows.Forms.DataGrid
   ' put whatever code you need here
   
   End Class 'MyGrid
    _

   Public Class MyLabel
      Inherits System.Windows.Forms.Label
   End Class 'MyLabel
    _
   
   Public Class MyTextBox
      Inherits System.Windows.Forms.TextBox
   End Class 'MyTextBox

End Namespace 'MyCompany.WinUI.MyClasses
That should get you started ...

~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform