Results 1 to 4 of 4

Thread: Custom Controls

  1. #1

    Thread Starter
    Addicted Member articwoof's Avatar
    Join Date
    Oct 2004
    Location
    Alaska
    Posts
    163

    Custom Controls

    I like to show pride in my programs and id like to make my own controls, i guess that would be ActiveX controls.

    I want to make my own Checkbox control that as all the same features as the default except that:
    Not checked is Image: chk_false.jpg
    Checked is Image: chk_true.jpg
    Grayed is Image: chk_disabled.jpg


    I also have an image that is 3d like and i want to make it into a textfield that is just as resizeable as the default

    Any resources? I searched the forums with no luck.
    [+] - My Portfolio/Blog :: RattleSoft

  2. #2

    Thread Starter
    Addicted Member articwoof's Avatar
    Join Date
    Oct 2004
    Location
    Alaska
    Posts
    163

    Re: Custom Controls

    Any help out there?
    [+] - My Portfolio/Blog :: RattleSoft

  3. #3
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Custom Controls

    You could probably do it with a label and a picturebox all in your ActiveX usercontrol.

    Start vb and select ActiveX Control. There is an Add-In that you can also load to assist you in the creation
    of the control. Its called the "VB ActiveX Control Interface Wizard". Load that addin and it will setup your props, etc.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  4. #4
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: Custom Controls

    There are a lot of custom checkbox controls on www.PlanetSourceCode.com that you can learn from and get some ideas.

    I would stick to API drawing methods instead of using other controls but it's best to start out simple if you haven't made anything like that before.

    All you would need is a picturebox and a label like Rob said.

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