Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subclassing questions
Message
De
30/01/2004 10:41:14
 
 
À
30/01/2004 08:32:29
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00872256
Message ID:
00872323
Vues:
29
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform