I want to do a user-control like TextBox but with my features...
How can I do it?
Thank you.
I want to do a user-control like TextBox but with my features...
How can I do it?
Thank you.
You make a Usercontrol and give it the same properties. Try the Wizard to get started. You can either draw it all yourself or just use the textbox in your usercontrol and add or map all the properties.
How to make it?Quote:
Originally posted by Edneeis
...or just use the textbox in your usercontrol.
How can my UserControl inherit the TextBox's properties?
Thank you.
VB6 doesn't support inheritance but you can drag a textbox on to your usercontrol and then run the wizard to help you map the properties to your usercontrol. Unfortunately you'll need to add all the properties to your Usercontrol or it wont have them.
Can I do it with MessageBox?
You should work through this tutorial from Karl Moore. Learn how to create ActiveX controls, create properties & property sheets, handle events, package..etc.
In lesson 2 to 6 he uses the text box and examines some interesting topics. Karl also provides great examples, tips & resources...all with a bit of dry humor.
http://www.developer.com/net/vb/article.php/1539541
charcoal :cool:
Thank you.