Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
UserControl initializing the Text property
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00815727
Message ID:
00815743
Views:
9
>I have created a UserControl that Inherits System.Windows.Forms.TextBox, how can I get the Text property of the instance pasted on the user form initially set to 0 ?

I found it! I need to override createhandle and set the properties there.
   Protected Overrides Sub CreateHandle()
       Me.Text = "0"
       MyBase.CreateHandle()
   End Sub
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Reply
Map
View

Click here to load this message in the networking platform