Running windows application in LAN
-
I have a Windows VB.Net Application with MSFoxPro Database, third party controls within it. With all the granted permissions for assemblies and strong name for dll. I install my App in one system and copy the shortcut key in the other syatem within the LAN. Now if i click on shortcut key it has to fetch the data from the system where I have installed. Can anyone PLS help me in this. Very Urgent.
Rekha
-
I have a Windows VB.Net Application with MSFoxPro Database, third party controls within it. With all the granted permissions for assemblies and strong name for dll. I install my App in one system and copy the shortcut key in the other syatem within the LAN. Now if i click on shortcut key it has to fetch the data from the system where I have installed. Can anyone PLS help me in this. Very Urgent.
Rekha
skandaapriya wrote:
Now if i click on shortcut key it has to fetch the data from the system where I have installed. Can anyone PLS help me in this.
what??? what do you want? fetch the data from the machine where your app is installed to the machine where you put the shortcut???:^)
Paras Kaneriya
The difference between genius and stupidity is that genius has its limits. -
I have a Windows VB.Net Application with MSFoxPro Database, third party controls within it. With all the granted permissions for assemblies and strong name for dll. I install my App in one system and copy the shortcut key in the other syatem within the LAN. Now if i click on shortcut key it has to fetch the data from the system where I have installed. Can anyone PLS help me in this. Very Urgent.
Rekha
You need Client/Server programming. You should write different codes which should run on clients and the server. Your application should be installed on all machines!
-
I have a Windows VB.Net Application with MSFoxPro Database, third party controls within it. With all the granted permissions for assemblies and strong name for dll. I install my App in one system and copy the shortcut key in the other syatem within the LAN. Now if i click on shortcut key it has to fetch the data from the system where I have installed. Can anyone PLS help me in this. Very Urgent.
Rekha
if i am gettin it correctly then you want to fetch your database to all the lan connected system where ever you have installed your executable file well this is server client application... if this is the case, then i know the procedure for sql and excess , i hope same logic should work. In the connection string where you are giving path of your database in coding, jst add the ip adress of server like "//ipaddress of server computer/path of database". and from server computer you have to share the database file. try this out, may it helps you....
-
I have a Windows VB.Net Application with MSFoxPro Database, third party controls within it. With all the granted permissions for assemblies and strong name for dll. I install my App in one system and copy the shortcut key in the other syatem within the LAN. Now if i click on shortcut key it has to fetch the data from the system where I have installed. Can anyone PLS help me in this. Very Urgent.
Rekha
This is easy. In your code, you have to build the fully qualified path to the folder where the database is. You can do this with something like:
Dim fullPath As String = Path.Combine(Application.StartupPath, "database.mdb")
Or, if the database file is in a subdirectory of the StartupPath:
Dim fullPath As String = Path.Combine(Application.StartupPath, "subfolder\\database.mdb")
Other than that, you haven't said what the problem is, nor mentioned any error messages you're getting, so it's very hard to help you. BTW, mentioning "urgent" in your post tends to get people to ignore you.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007