Results 1 to 3 of 3

Thread: Building a control

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2000
    Location
    Sao Paulo - SP - BRAZIL
    Posts
    65

    Question

    How I do to build a control that uses the standard controls, for instance a textbox
    and do inherit all the properties of this control, besides the properties that I to place in this control.?
    As I build a control that contains more than a control, for instance I want to build a control that has something similar to the text box, more some properties and events, and in this same control it contains a grid with properties, events, methods. eg: the control MSCOMCT2.OCX that contains ANIMATION,UpDown,MonthView,DTpicker,FlatScrollBar

    Where can I find a good tutorial on controls and class
    The blessing of God enriches and it doesn't increase pains

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Property Get/Let is what you need to transfer the properties and Public Event/Raiseevent for the events. Also, making more controls drains system resources, you could use classmodules instead.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  3. #3
    Fanatic Member
    Join Date
    Apr 2000
    Location
    Whats a location?
    Posts
    516

    Lightbulb See online tutorials

    Karl Moore did a thing on making TextBoxes with added
    properties. (The first instalment starts with the very
    basics of ActiveX controls, but later on (2nd or 3rd lesson)
    he tells you how to do what you want.
    (He's also real funny )

    Here's the site:
    http://www.vb-world.net/activex/controls/

    Hope that helps (it helped me )

    Bye!
    Courgettes.

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