Click here to Skip to main content
15,924,193 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: System.OutOfMemoryException Pin
Brad Fackrell12-Jul-04 6:17
Brad Fackrell12-Jul-04 6:17 
GeneralRe: System.OutOfMemoryException Pin
Brad Fackrell12-Jul-04 6:56
Brad Fackrell12-Jul-04 6:56 
GeneralRe: System.OutOfMemoryException Pin
beowulfagate12-Jul-04 13:46
beowulfagate12-Jul-04 13:46 
GeneralRe: System.OutOfMemoryException Pin
Brad Fackrell13-Jul-04 7:58
Brad Fackrell13-Jul-04 7:58 
GeneralWeb browser credentials Pin
wizard_nz12-Jul-04 0:09
wizard_nz12-Jul-04 0:09 
QuestionOpenFileDialog and StartUpPath of Windows Service? Pin
mythinky11-Jul-04 23:37
mythinky11-Jul-04 23:37 
AnswerRe: OpenFileDialog and StartUpPath of Windows Service? Pin
Syed Abdul Khader11-Jul-04 23:55
Syed Abdul Khader11-Jul-04 23:55 
AnswerRe: OpenFileDialog and StartUpPath of Windows Service? Pin
Dave Kreskowiak12-Jul-04 6:49
mveDave Kreskowiak12-Jul-04 6:49 
mythinky wrote:
2. How to get the startup directory of the windows service? I have used the Environment.Directory, it doesn't work. It will return C:\Windows\System32\.

Try Application.ExecutablePath. This will give you the complete path to the .EXE that started your app. Just remove the filename from the end of what's returned.
Imports System.IO
.
.
.
Dim path As String
path = Application.ExecutablePath()
path = path.SubString(1, path.LastIndexOf(Path.DirectorySeparatorChar))

This should return the complete path to the executable (not including the filename) appended with the path seperator character ( \ ).


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralError in deploying to Pocket PC Pin
Member 53081011-Jul-04 22:13
Member 53081011-Jul-04 22:13 
GeneralRe: Error in deploying to Pocket PC Pin
Dave Kreskowiak12-Jul-04 0:56
mveDave Kreskowiak12-Jul-04 0:56 
GeneralRe: Error in deploying to Pocket PC Pin
12-Jul-04 1:43
suss12-Jul-04 1:43 
GeneralHelp in Serialization and Remote events Pin
Member 106003411-Jul-04 21:51
Member 106003411-Jul-04 21:51 
GeneralRe: Help in Serialization and Remote events Pin
James Gohl14-Jul-04 8:53
James Gohl14-Jul-04 8:53 
QuestionHow to call a form using keyboard like F3 Pin
Seah6911-Jul-04 17:46
Seah6911-Jul-04 17:46 
AnswerRe: How to call a form using keyboard like F3 Pin
Syed Abdul Khader11-Jul-04 23:21
Syed Abdul Khader11-Jul-04 23:21 
AnswerRe: How to call a form using keyboard like F3 Pin
Syed Abdul Khader11-Jul-04 23:45
Syed Abdul Khader11-Jul-04 23:45 
GeneralWord.Application how to load to object without open Pin
vancouver77711-Jul-04 13:00
vancouver77711-Jul-04 13:00 
GeneralRe: Word.Application how to load to object without open Pin
Dave Kreskowiak11-Jul-04 16:53
mveDave Kreskowiak11-Jul-04 16:53 
GeneralRe: Word.Application how to load to object without open Pin
vancouver77712-Jul-04 0:59
vancouver77712-Jul-04 0:59 
GeneralRe: Word.Application how to load to object without open Pin
vancouver77712-Jul-04 7:59
vancouver77712-Jul-04 7:59 
Generaldisplay word file Pin
nazerudeen11-Jul-04 2:21
nazerudeen11-Jul-04 2:21 
GeneralRe: display word file Pin
Dave Kreskowiak11-Jul-04 17:06
mveDave Kreskowiak11-Jul-04 17:06 
GeneralProblem with ADO, ADO.NET and VB.NET Pin
Mekong River10-Jul-04 6:30
Mekong River10-Jul-04 6:30 
GeneralTransfer pop3 to Exchange Pin
sybux200010-Jul-04 5:11
sybux200010-Jul-04 5:11 
GeneralData Filling and Handelling in VB.NET using DataGrid Pin
Thangaraj P.V.10-Jul-04 3:48
Thangaraj P.V.10-Jul-04 3:48 

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.