hi,
in VB6 I could use app.path
but in .NET that isn't so..
how do I get the path of my app?
thanx
Printable View
hi,
in VB6 I could use app.path
but in .NET that isn't so..
how do I get the path of my app?
thanx
application.startuppath
something like that
there are like 3 good ways to get teh path, I always use that. Search the forum if that doesnt help, there are about 10000000 posts about this ;)
VB Code:
MsgBox(Windows.Forms.Application.ExecutablePath())
that will do the job
;)VB Code:
Application.StartupPath
bugger, cross posts, grrr...
edit: wait a minute isnt that what I just said?!!! :rolleyes:Quote:
Originally posted by RealNickyDude
;)VB Code:
Application.StartupPath
btw the ExecutablePath function also returns the exe filename with it. That's why I just use the simpler StartupPath function.
Umm and yes, it's nice to search :) if you wanna search for .net stuff though, dont search it up there in the search textbox, because you're gunno get a whole bunch of vb6 stuff (mostly). Click on the small search button and on the combo box on the bottom of the page, choose the vb.net forum
nobody mentioned this method :D
VB Code:
Imports System.IO Path.---
huh?Quote:
Originally posted by pirate
nobody mentioned this method :D
VB Code:
Imports System.IO Path.---
What?? :rolleyes: