Results 1 to 7 of 7

Thread: I want to do a user-control like TextBox but with my features...

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2002
    Location
    Israel
    Posts
    25

    Unhappy I want to do a user-control like TextBox but with my features...

    I want to do a user-control like TextBox but with my features...
    How can I do it?

    Thank you.

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    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.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Apr 2002
    Location
    Israel
    Posts
    25
    Originally posted by Edneeis
    ...or just use the textbox in your usercontrol.
    How to make it?
    How can my UserControl inherit the TextBox's properties?

    Thank you.

  4. #4
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    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.

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Apr 2002
    Location
    Israel
    Posts
    25
    Can I do it with MessageBox?

  6. #6
    New Member
    Join Date
    Dec 2002
    Location
    Phoenix
    Posts
    8

    Start With ActiveX Control

    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
    charcoal

  7. #7

    Thread Starter
    Junior Member
    Join Date
    Apr 2002
    Location
    Israel
    Posts
    25
    Thank you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width