Results 1 to 4 of 4

Thread: My First Custom Control

  1. #1

    Thread Starter
    No place like 127.0.0.1 eyeRmonkey's Avatar
    Join Date
    Jul 2005
    Location
    Blissful Oblivion
    Posts
    2,306

    My First Custom Control

    I am in the process of making my first custom control in VB6. I was wondering if anyone had links to good tutorials on the subject because Google hasn't provided me with too much help.

    Basically what I am trying to make is an improved RTB. I intend it to be used with LightFusion™ but I might make it for more general use. Mouer has some good stuff in the codebank about RTBs, but I am not that familiar with making my own controls.

    I have used the ActiveX control wizard to generate some output and do most of the work for me and that helped me understand some things.

    One question I have is how do Property Pages work (making a custom one). I won't be doing it until later, but I was curious.

    If anyone has any suggestions/tutorials that would help me in making my first control or with RTBs, I would appriciate hearing them.

    Thanks.
    Visual Studio 2005 Professional Edition (.NET Framework 2.0)
    ~ VB .NET Links: Visual Basic 6 to .NET Function Equivalents (Thread) | Refactor! (White Paper) | Easy Control for Wizard Forms | Making A Proper UI For WinForms | Graphics & GDI+ Tutorial | Websites For Free Icons
    ~ QUOTE: Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. -Rich Cook

    ~ eyeRmonkey.com

  2. #2
    Frenzied Member wiz126's Avatar
    Join Date
    Jul 2005
    Location
    Mars,Milky Way... Chit Chat Posts: 5,733
    Posts
    1,080

    Re: My First Custom Control

    This tutorial might look primitive but it is by fare very easy to follow (lots of picture to help )

    http://cuinl.tripod.com/tutorials/ocx-11.htm


    Here is another good one from developer.com although it got very few picture and used some other code

    http://www.developer.com/net/vb/article.php/1539541
    Last edited by wiz126; Sep 19th, 2005 at 08:19 PM.
    1) If your post has been adequately answered please click in your post on "Mark Thread Resolved".
    2) If someone has been useful to you please show your respect by rating their posts.
    3) Please use [highlight="VB"] 'your code goes in here [/highlight] tags when posting code.
    4) Before posting your question, make sure you checked this links:
    MICROSOFT MSDN -- VB FORUMS SEARCH

    5)Support Classic VB - A PETITION TO MICROSOFT

    ___________________________________________________________________________________
    THINGS TO KNOW ABOUT VB: || VB Examples/Demos
    What are Classes?
    || -
    Where to place a sub/function?(global) || Webbrowser control

  3. #3
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: My First Custom Control

    There is a Property Page Wizard add-in available that can help you with the creation of a property page.

  4. #4
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632

    Re: My First Custom Control

    Here's a quick demo of an RTB Custom control.
    It pretty much does nothing except "override" the text property and adds "WOOF" to the text.

    This is merely a concept idea on how you can modify the control.

    Just type into the normal textbox and then click the button.

    WOka
    Attached Files Attached Files

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