943,717 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 7831
  • VB.NET RSS
Nov 11th, 2008
0

How to Set Application Path

Expand Post »
hi friends

How to set application path using VB.Net using MySQL.....

The same function using VB 6.0 as
Public AttnPath As String
AttnPath = App.Path & "\Data" this type, i need vb.net help me plz...






Regards
Anandh
Similar Threads
Reputation Points: 10
Solved Threads: 1
Light Poster
sganandhsg is offline Offline
39 posts
since Sep 2008
Nov 11th, 2008
0

Re: How to Set Application Path

In vb.net u need to use the property called Application.StartupPath="path u want to give"
Reputation Points: 51
Solved Threads: 112
Practically a Master Poster
Pgmer is offline Offline
668 posts
since Apr 2008
Nov 11th, 2008
0

Re: How to Set Application Path

Click to Expand / Collapse  Quote originally posted by Pgmer ...
In vb.net u need to use the property called Application.StartupPath="path u want to give"


Thanks for ur replay.. I`ll use this but error msg displayed for " Property is "startuppath " is Read only"
Reputation Points: 10
Solved Threads: 1
Light Poster
sganandhsg is offline Offline
39 posts
since Sep 2008
Nov 11th, 2008
0

Re: How to Set Application Path

Click to Expand / Collapse  Quote originally posted by sganandhsg ...
Thanks for ur replay.. I`ll use this but error msg displayed for " Property is "startuppath " is Read only"
hi
u have specify like
Quote ...
Application.StartupPath + " u can specfy remaining path here"
Application.startuppath means it wil show upto bin folder then concatenate with this " u can specfy remaining path here"

if ur probelm solved plz mark as solved
Reputation Points: 10
Solved Threads: 23
Junior Poster
Renukavani is offline Offline
123 posts
since Jul 2008
Nov 11th, 2008
0

Re: How to Set Application Path

yes Ur correct application.startuppath will give you the path where Ur executable files are there in the machine.
Application.StartupPath + " the desired path u want to be"
Last edited by Pgmer; Nov 11th, 2008 at 5:27 am.
Reputation Points: 51
Solved Threads: 112
Practically a Master Poster
Pgmer is offline Offline
668 posts
since Apr 2008
Nov 11th, 2008
0

Re: How to Set Application Path

Click to Expand / Collapse  Quote originally posted by Pgmer ...
yes Ur correct application.startuppath will give you the path where Ur executable files are there in the machine.
Application.StartupPath + " the desired path u want to be"
Any Declare Variable contain This Path
Reputation Points: 10
Solved Threads: 1
Light Poster
sganandhsg is offline Offline
39 posts
since Sep 2008
Nov 11th, 2008
0

Re: How to Set Application Path

hi
i tried like this for ur ?
Quote ...
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
TextBox1.Text = Application.StartupPath()
End Sub
or

Application.StartupPath & "\\DataBase\\dbname.db"
Last edited by Renukavani; Nov 11th, 2008 at 5:55 am.
Reputation Points: 10
Solved Threads: 23
Junior Poster
Renukavani is offline Offline
123 posts
since Jul 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Control resize and positioning at run time. VB.Net
Next Thread in VB.NET Forum Timeline: Need advice on sockets/threads





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC