>Hi Brain,
>
>Thx for your helping, but u know we don't have default path command in VB, then where I should put the ocx file will be better, cause I don't want to hard code the file path in my application.
>
>Thanks
>Aston
It is best practice to install the OCX file into the system directory of the windows folder.
Make sure it is the right system directory for the OS though.
ie. 95 uses Windows\System
NT and 2000 use WinNT\System32
By always installing there it should make registration easy. If you really want to play it safe though you could always copy the OCX into the same folder as your app.
then use
app.path & "\MYFILE.OCX"
Good Luck!
Brian Seekford
Seekford Solutions, Inc.http://www.SeekfordSolutions.comInternet ActiveX Controls and .NET Class Libraries.
SMTP/S FTP POP3/S HTTP/S SNTP MIME PING WHOIS TRACEROUTE NNTP DNS MX
Base64, UUEncode, yEnc, MD5, SHA1, URL, Quoted-Printable.
Resizer and Tooltips
Email Verification and more. Check us out!