Click here to Skip to main content
15,920,217 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: VB DLL for C App Pin
NoizeGod19-Dec-02 17:20
NoizeGod19-Dec-02 17:20 
GeneralRe: VB DLL for C App Pin
CT CHANG19-Dec-02 17:32
CT CHANG19-Dec-02 17:32 
GeneralDo I Need To Close SQL Connection Pin
yccheok15-Dec-02 19:33
yccheok15-Dec-02 19:33 
GeneralRe: Do I Need To Close SQL Connection Pin
Nick Seng17-Dec-02 16:51
Nick Seng17-Dec-02 16:51 
GeneralApplication Path Pin
SuperGeek15-Dec-02 15:21
SuperGeek15-Dec-02 15:21 
GeneralRe: Application Path Pin
Wayne Phipps15-Dec-02 18:48
Wayne Phipps15-Dec-02 18:48 
GeneralRe: Application Path Pin
Nick Seng17-Dec-02 16:11
Nick Seng17-Dec-02 16:11 
GeneralRe: Application Path Pin
Wayne Phipps17-Dec-02 21:55
Wayne Phipps17-Dec-02 21:55 
If Application.StartupPath is only applicable to VB6 then why did that sample come from the .Net Framework class library? I ask this question because I have just upgraded from Visual Studio 6 to Visual Studion .Net Pro and this sample came from the .Net help. Visual Studio 6 is now not installed.

Here is the complette sample...

.NET Framework Class Library

Application.StartupPath Property [Visual Basic]

Public Shared ReadOnly Property StartupPath As String

Property Value
The path for the executable file that started the application.

Example
[Visual Basic, C#] The following example gets this property and displays its value in a text box. The example assumes that textBox1 has been placed on a form.

Private Sub PrintStartupPath()<br />
   textBox1.Text = "The path for the executable file that " & _<br />
      "started the application is: " & _<br />
      Application.StartupPath<br />
End Sub


Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family

.NET Framework Security:

FileIOPermission for reading and writing files. Associated enumeration: FileIOPermissionAccess.Read

See Also
Application Class | Application Members | System.Windows.Forms Namespace
GeneralRe: Application Path Pin
Wayne Phipps17-Dec-02 22:35
Wayne Phipps17-Dec-02 22:35 
GeneralRe: Application Path Pin
Nick Seng17-Dec-02 23:13
Nick Seng17-Dec-02 23:13 
GeneralRe: Application Path Pin
Wayne Phipps18-Dec-02 0:06
Wayne Phipps18-Dec-02 0:06 
GeneralRe: Application Path Pin
Nick Seng18-Dec-02 14:36
Nick Seng18-Dec-02 14:36 
GeneralRe: Application Path Pin
Wayne Phipps18-Dec-02 21:42
Wayne Phipps18-Dec-02 21:42 
GeneralRe: Application Path Pin
Nick Seng18-Dec-02 23:07
Nick Seng18-Dec-02 23:07 
GeneralRecieve UDP non-blocking in VB.NET Pin
Wayne Phipps15-Dec-02 6:33
Wayne Phipps15-Dec-02 6:33 
GeneralLooking for a free FTP class library for .NET Pin
gicio15-Dec-02 5:53
gicio15-Dec-02 5:53 
GeneralRe: Looking for a free FTP class library for .NET Pin
rohancragg17-Dec-02 4:12
rohancragg17-Dec-02 4:12 
Generalservices and UI Pin
kasturirawat13-Dec-02 8:42
kasturirawat13-Dec-02 8:42 
Questionhow to debug Visual Com Dll Pin
Leesen13-Dec-02 5:09
Leesen13-Dec-02 5:09 
Generaldeselecting items in list view control Pin
r i s h a b h s13-Dec-02 0:29
r i s h a b h s13-Dec-02 0:29 
GeneralRe: deselecting items in list view control Pin
Richard Deeming13-Dec-02 4:01
mveRichard Deeming13-Dec-02 4:01 
GeneralUsing old com objects Pin
Nick Seng12-Dec-02 17:15
Nick Seng12-Dec-02 17:15 
GeneralRe: Using old com objects Pin
Jonathan [Darka]12-Dec-02 22:08
professionalJonathan [Darka]12-Dec-02 22:08 
GeneralRe: Using old com objects Pin
Nick Seng12-Dec-02 22:51
Nick Seng12-Dec-02 22:51 
GeneralRe: Using old com objects Pin
rohancragg18-Dec-02 0:12
rohancragg18-Dec-02 0:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.