Results 1 to 6 of 6

Thread: usercontrol compiling problem

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2009
    Posts
    52

    usercontrol compiling problem

    hello guys, may i ask for your help again.

    i got an error with this line when compiling the usercontrol.

    CODE]Public Property Let ImageList(ByVal zImageList As ImageList)
    Set zImg = zImageList
    End Property[[/CODE]

    please check the source code below to see the error. i just can't explain it.

    attached below is the ocx and usage of the ocx. thanks in advance.
    Attached Files Attached Files

  2. #2
    Fanatic Member
    Join Date
    Oct 2009
    Location
    Missouri
    Posts
    770

    Re: usercontrol compiling problem

    Um... Should it be
    Public Property LetImageList or
    Public Property GetImageList?
    Rate my post if i helped you!


    Button Configuration Control For VB6 GetAsyncKeyState
    I'm the 7th best high school programmer in the nation!(according to SkillsUSA Nationals)(Used C#.Net)

  3. #3
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: usercontrol compiling problem

    The Let should be a Set.
    Public Property Set ...

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  4. #4
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: usercontrol compiling problem

    And if techgnome's suggestion doesn't fix it, what exactly is the error message/text?
    P.S. Not everyone here uses WinRar; may want to zip it
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  5. #5

    Thread Starter
    Member
    Join Date
    Aug 2009
    Posts
    52

    Re: usercontrol compiling problem

    thanks for the replies but i still got error when loading the imagelist in form.

    Code:
     ACPRibbon1.ImageList = ImageList1
    @lavolpe - next time i will zip it.

    thanks

  6. #6
    Fanatic Member FireXtol's Avatar
    Join Date
    Apr 2010
    Posts
    874

    Re: usercontrol compiling problem

    Quote Originally Posted by LaVolpe View Post
    And if techgnome's suggestion doesn't fix it, what exactly is the error message/text?
    P.S. Not everyone here uses WinRar; may want to zip it
    You seriously use an archiver that doesn't support unrar?
    -
    @Kizslegs, again you're missing Set ACPRibbon1.ImageList = ImageList1

    You're setting an object reference. Not just an equality.

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