In Vista/Win 7 you need to store your data in a folder inside:
either Drive:\Documents and setting\Username\Application Data\YourApplicationFolder\
or Drive:\Documents and setting\All Users\Application Data\YourApplicationFolder\
to get the Foldername you can use the following codesnippet ( it works in XP for sure ):
Dim ForCurrentUser As String = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
Dim ForAllUsers As String = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData)
and for the Dll, that has been a C# article and it is the same for VB.NET.
So if your application is located in:
C:\blabla\MyApplication.Exe
and your DLL which is referenced by your application, is named MyDLL.DLL then you need to put it either in
C:\blabla\MyDLL.DLL
or
C:\blabla\MyDLL\MyDLL.DLL
If you have got questions about this, just ask.
Mark the thread as answered if the answer helps you. This helps others who have the same problem !
C# to VB.NET:
http://www.developerfusion.com/tools/convert/csharp-to-vb/