Results 1 to 6 of 6

Thread: How to add icon to ActiveX(OCX)

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2007
    Location
    Iran
    Posts
    237

    How to add icon to ActiveX(OCX)

    Hi,
    How can i add icon to my ActiveX Ctrl(OCX)?
    Like MsWinSck.ocx PC icon!
    Very thanks.
    Y.P.Y

  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: How to add icon to ActiveX(OCX)

    The icon in Widows Explorer is a generic ocx icon. Do you mean the icon that shows in the toolbox in the IDE? That's the ToolboxBitmap property of the ctl file (Under User Controls).
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 2007
    Location
    Iran
    Posts
    237

    Re: How to add icon to ActiveX(OCX)

    Quote Originally Posted by Al42
    The icon in Widows Explorer is a generic ocx icon. Do you mean the icon that shows in the toolbox in the IDE? That's the ToolboxBitmap property of the ctl file (Under User Controls).
    Like timer icon in Form & Toolbox!
    Y.P.Y

  4. #4
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: How to add icon to ActiveX(OCX)

    That's the ToolboxBitmap property of the control. Click on it and select a 16 X 15 icon.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Jan 2007
    Location
    Iran
    Posts
    237

    Re: How to add icon to ActiveX(OCX)

    Sorry, i dont understand. Can you attach a simple ActiveX with icon?
    Very Tnx.
    Y.P.Y

  6. #6
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,729

    Re: How to add icon to ActiveX(OCX)

    See this pic.



    Highlight that property on the Properties Window and press F1 for local MSDN help. Also read this.
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


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