checking(ticking) the reference check boxes using code in vb6

R

ravindar thati

dear friends,

i am using ms access 2003, vb6.

i want to add a reference named "Microsoft DAO control 3.51 object
library" programatically(instead of using mouse) to my project.

how do i approach this?

thanq
 
R

ravindar thati

To add a reference programmatically, look at the AddFromFile method of the
References collectionhttp://msdn2.microsoft.com/en-us/library/aa221171(office.11).aspx


thanq friend, it helped me.
i could do add the reference to my project.

also i want to know how do we check whether a reference is already
added or not?
since if we add reference again, there wil be a name conflict.


thanq
 
D

Douglas J. Steele

ravindar thati said:
thanq friend, it helped me.
i could do add the reference to my project.

also i want to know how do we check whether a reference is already
added or not?
since if we add reference again, there wil be a name conflict.

I'll repeat. It's very unusual to set references in code. What are you
trying to do?

Have you read what MichKa has at
http://www.trigeminal.com/usenet/usenet026.asp ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top