App.HelpFile question

Y

Yoavo

Hi,
I have a VB6 project which had the line:
App.HelpFile = "c:\MyFolder"
I made a convert to VB.Net, and this line wont compile. ("Name App is not
declared")

Can someone help ?

Yoav.
 
C

Cor Ligthert [MVP]

Yoavo,

(which version are you using now)

At least you should have to know what application from class is, somewhere
should probably have to be

(Whatever) App as New TheClassToBeUsed
App.HelpFile = "c:\MyFolder"

I hope this helps to start with

Cor
 
Y

Yoavo

Sorry, the line should be:
App.HelpFile = "c:\MyFolder\MyFile.chm"

(loading a .chm file)
 
K

Kalpesh

Cor,

App is the VB6 object similar to Application class in .net
In vb6, you could write app.path - this wil return you the path of the
executable

Also, app.helpfile will associate a help file with the application

Kalpesh
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top