Skip to content

LIFE designer's BLOG

인생을 설계하는 프로그래머의 블로그

Where’s my app.path in vb.net

Posted on 2006년 7월 20일 By kim7463@gmail.com Where’s my app.path in vb.net에 댓글 없음

Where’s my App.Path in VB.NET?

ID: 1064
Author: Abstractvb.com
Date: 9/15/2002 12:59:10 PM
VB.NET

Description

The APP Object no longer exists in VB.NET, so calling App.Path to get the location of your application does not work. Thankfully there are many other ways to do this in VB.NET, here are a few.

NOTE: Some of these will only work for forms and not DLL’s without any UI. The first two that reference the System.Windows.Forms namespace will not work in a DLL with no UI.

Code

Here are a few examples: (I’m sure there are more.)

System.Windows.Forms.Application.ExecutablePath
System.Windows.Forms.Application.StartupPath
System.AppDomain.CurrentDomain.BaseDirectory()
System.GetEntryAssembly().Location

미분류

글 내비게이션

Previous Post: VB.net 에서 ADOCE.net 이용하기
Next Post: Determine the Executing Application’s Path

답글 남기기 응답 취소

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다

최신 글

  • [Vue3] use webpack proxy
  • PCF7953 Read / Write
  • BMW F body Key FOB 케이스 교체
  • BMW
  • Dirty Life
  • Engineer
  • LIFE
  • Software
  • vue3
  • 미분류

Copyright © 2022 LIFE designer's BLOG.

Powered by PressBook WordPress theme