Re: Late Binding with event handling



Thank you Micheal,

Yes, I can do it , but the only thing is that when I build my program,
the VB reference is set automatically to OL of build machine, say, if I
install Outlook 2002, then it will reference to MSOUTL.OLB and
MSO.dll;
That is not good for outlook2000, which has different properties of
Object;
I tried in my program
as:

detect the Outlook version
if outlook 2000
use copy imange to Clipboard. display as Icon
else
use property .Picture of commandbarbutton
.Picture = myImage
end if

then if I build it on the machine has office 2000, it won't work for
outlook 2002; the image is not displayed

The key issue is the project reference, if I can change it in the run
time, problem is solved

Do I understand what you mean?

If not, can you show me a small example?

thank you very much



JZ

.