|
-
Jul 16th, 2010, 09:21 PM
#1
Thread Starter
Member
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.
-
Jul 16th, 2010, 09:57 PM
#2
Fanatic Member
Re: usercontrol compiling problem
Um... Should it be
Public Property LetImageList or
Public Property GetImageList?
-
Jul 16th, 2010, 10:10 PM
#3
Re: usercontrol compiling problem
The Let should be a Set.
Public Property Set ...
-tg
-
Jul 16th, 2010, 11:10 PM
#4
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
-
Jul 17th, 2010, 03:23 AM
#5
Thread Starter
Member
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
-
Jul 17th, 2010, 06:14 AM
#6
Re: usercontrol compiling problem
 Originally Posted by LaVolpe
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.
Software I use and highly recommend: Opera, Miranda IM, Peerblock, Winamp, Unlocker Assistant, JoyToKey, Virtual CloneDrive, Secunia PSI, ExplorerXP, GOM Player, Real Alternative, Quicktime Alternative,Sumatra PDF, and non-freeware: Photoshop and VB6( ).
My codebank: AllRGB, Rounded Rectangle(math), Binary Server, Buddy Paint, LoadPictureGDI+, System GUID/Volume Serial, HexToAsc, List all processes and their paths, quasiString matching
Strings(search, extraction, retrieval etc): Retrieve BBCode Link from HTML, RemoveBetween ()'s, strFindBetween(str1,str2), Insert text in HTML, HTML - GetSpanByID
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|