1,105,447 Community Members

How to Set Application Path

Member Avatar
sganandhsg
Light Poster
43 posts since Sep 2008
Reputation Points: 0 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
0
 

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

Member Avatar
Pgmer
Practically a Posting Shark
881 posts since Apr 2008
Reputation Points: 50 [?]
Q&As Helped to Solve: 158 [?]
Skill Endorsements: 3 [?]
Featured
 
0
 

In vb.net u need to use the property called Application.StartupPath="path u want to give"

Member Avatar
sganandhsg
Light Poster
43 posts since Sep 2008
Reputation Points: 0 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
0
 

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"

Member Avatar
Renukavani
Junior Poster
123 posts since Jul 2008
Reputation Points: 0 [?]
Q&As Helped to Solve: 23 [?]
Skill Endorsements: 0 [?]
 
0
 

Thanks for ur replay.. I`ll use this but error msg displayed for " Property is "startuppath " is Read only"

hi
u have specify like

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

Member Avatar
Pgmer
Practically a Posting Shark
881 posts since Apr 2008
Reputation Points: 50 [?]
Q&As Helped to Solve: 158 [?]
Skill Endorsements: 3 [?]
Featured
 
0
 

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"

Member Avatar
sganandhsg
Light Poster
43 posts since Sep 2008
Reputation Points: 0 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
0
 

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

Member Avatar
Renukavani
Junior Poster
123 posts since Jul 2008
Reputation Points: 0 [?]
Q&As Helped to Solve: 23 [?]
Skill Endorsements: 0 [?]
 
0
 

hi
i tried like this for ur ?

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"

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article