Help with TLB files please
Hail to All,
I have many applications that create TLB files which I guess are so that vb2005 can comunicate with the DLL files. Now what I would like to do is have all my TLB files in one folder and have my application point to that folder to use them.
The problem I am having is that my EXE will not run unless all the TLB files are in the same folder as the EXE. I do not want this. I want to put some code into my file that sais that the tlb files it needs are located in say:
C:\MyTLBFiles\
then be able to put my EXE into:
C:\Program Files\My Program\
and still have it work. again right now they all have to be in the same folder which is really bugging me.
Thanks for your help.
Re: Help with TLB files please
In your application, create a user setting in My.Settings to save the user specified path of the tlb file(s), then have your program read from it. If the directory is not valid (blank or non-existent...), prompt the user to enter or browse to a valid directory, then save it in My.Settings.
Re: Help with TLB files please
Ok I don't see a file type in my.settings. How do I point to the file? say the file is the following:
C:\MyTBLs\filename.tbl
How do I add that to the settings?
Thank you
Mythos
Re: Help with TLB files please
Go to your project properties, click on the Settings tab and create a setting there. Once you've created a setting, you can access it in code by thru My.Settings.[theSettingNameHere]