In VB.NET
Dim directory as String = My.Application.Info.DirectoryPath
In C#
string directory = AppDomain.CurrentDomain.BaseDirectory;
More Related Contents:
- Watermark TextBox in WinForms
- How to add folder to assembly search path at runtime in .NET?
- Get current folder path
- Checking for directory and file write permissions in .NET
- Implementing MVC with Windows Forms
- When creating a new GUI, is WPF the preferred choice over Windows Forms? [closed]
- Best way to hide a window from the Alt-Tab program switcher?
- What is the preferred way to find focused control in WinForms app?
- Simplest way to have a configuration file in a Windows Forms C# application
- .NET How to check if path is a file and not a directory?
- Open a URL from Windows Forms
- Overcome OS Imposed Windows Form Minimum Size Limit
- Added new application setting to app.config but MSI won’t install it (doesn’t overwrite)
- Display a tooltip over a button using Windows Forms
- How can I make a DateTimePicker display an empty string?
- How to disable click sound in WebBrowser Control
- Detecting when a SerialPort gets disconnected
- Equivalent of MoveNext in VB.NET
- How do I convert a .NET console application to a Winforms or WPF application
- When creating a new GUI, is WPF the preferred choice over Windows Forms? [closed]
- Start a Task in the Form Shown event
- Horrible redraw performance of the DataGridView on one of my two screens
- How to send email using default email client?
- How to find the main() entry point in a VB.Net winforms app?
- How do I find out which control has focus in .NET Windows Forms?
- How do I fill an empty textbox with default text?
- Standard Windows menu bars in Windows Forms
- Maintain scroll position of treeview
- Using a custom WPF control in WinForms
- How to determine ACTUAL windows form size (with all nonclient elements) when running Aero?