Visual C#
Visual Studio
VS Express Editions
Game Technologies
Microsoft ISV
Visual J#
Visual C++
Visual FoxPro
VS Team System
.NET Development
Windows Forms
SQL Server
Architecture
Smart Device
Visual Basic
Software Development Network>> Windows Forms>> app.path ?
app.path ?
Hot Topic
Articles on webbrowser control
Drawing Strings with fixed-size fonts in pixels
Form Designer Does Not Display Form Containing Custom Control with Generics
ListView - OwnerDraw + Background
Easy SplitterPanel sizing?
Smart client doesnt work Help!
Inheritance and designers
Split Containers - Beta 2
ClickOnce - Can't remove shortcuts
help with Saving Files and Folders (not using Dialog)...
Windows Forms
Adding Several Tables into a DataSet (WinForms)
application.exe to big
DataGridViewComboBoxColumn and binding to a Custom Collection (BindingList<T>)
Using combobox in GridView control
Can anyone help me to make a shadow for forms (Once more)
Eject CD
Datagrid ColumnStyle MappingName To SubClass of A Collection?
AutoComplete combobox option in Whidbey
Use one app.config setting - deploy another?
How to access the textBox property of the current cell?
app.path ?
Hi,
What's the alternate of App.Path in VB.NET
Here is the VB 6.0 example of App.Path.
fileName = App.Path & "\Debtors.INI"
Thanks in advance:-)
Kash
Answer this question
app.path ?
esparagus
Not sure what's the conversion in VB.NET, but in C# it's Application.StartupPath, it should be close to similar in vb.NET
zzy
Here is an example of how I might do this in VB.Net:
Dim appPath As String
Dim fileName As String
appPath = Path.GetDirectoryName([Assembly].GetExecutingAssembly().Location)
fileName = Path.Combine(appPath, "test.ini")
HTH
oz123
Application.StartupPath is the same in VB.NET as it is in C#
Also AppDomain.Current.BaseDirectory should work
app.path ?
Answer this question
app.path ?
esparagus
zzy
Dim appPath As String
Dim fileName As String
appPath = Path.GetDirectoryName([Assembly].GetExecutingAssembly().Location)
fileName = Path.Combine(appPath, "test.ini")
HTH
oz123
Also AppDomain.Current.BaseDirectory should work