Re: Display file properties from VB?
- From: "Dave O." <nobody@xxxxxxxxxxx>
- Date: Mon, 22 Jan 2007 13:00:39 -0000
Not only are you missing the definition of ShowProperties you have included
a lethal error:
Never ever do a line like:
App.Path & "\myfile.exe"
Because App.Path can include the terminating slash, you should always test
the string returned by App.Path and only append the slash if it is required.
Odd really, this mistake never used to occur but lately I've seen it turning
up here in several replies.
Regards
Dave O.
"Steve Easton" <admin@xxxxxxxxxxxxx> wrote in message
news:ez0LXuzOHHA.4996@xxxxxxxxxxxxxxxxxxxxxxx
The following will open the properties dialog for your application.
Change the path and file name to suit
App.Path is the location of your exe
Private Sub About_Click()
Dim MyPath as String
'this opens the windows file properties dialog
MyPath = App.Path
MyPath = MyPath & "\myfile.exe"
Call ShowProperties(MyPath)
End Sub
--
Steve Easton
"PeterD" <peter2@xxxxxxxxxx> wrote in message
news:g9fvq2lpb7u7g6fo5n8esf8521i68v5djb@xxxxxxxxxx
I'd like to display the properties of a file. A dialog just like in
Windows Explorer would be ideal, I hate to write any more code than
necessary! <g>
Any suggestions?
.
- References:
- Display file properties from VB?
- From: PeterD
- Re: Display file properties from VB?
- From: Steve Easton
- Display file properties from VB?
- Prev by Date: Re: Simple question
- Next by Date: True DBGrid 8.0
- Previous by thread: Re: Display file properties from VB?
- Next by thread: Re: Display file properties from VB?
- Index(es):