msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Path to .chm file and deployment question

 
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Deployment
Author Message
ginacresse



Joined: 28 Nov 2007
Posts: 2

PostPosted: Tue Nov 27, 2007 4:34 pm    Post subject: Path to .chm file and deployment question Reply with quote

I'm converting an application from VB6 to VB.net 2005. In VB6, the help text
was displayed using this code:
hwndHelp = HtmlHelp(hWnd, "wrp.chm", HH_DISPLAY_TOPIC, 0)
In VB.net, in order for the helptext to work in development mode, I have to
use code like this:
Help.ShowHelp(Me, "..\WRP.chm")
or like this (fully qualified):
Help.ShowHelp(Me, "C:\projects.net\DVSystem\DVSystem\WRP.chm")

In both systems, the file WRP.chm resides in the project folder, along with
the forms. Why do I now have to fully qualify the path to the .chm file when
I didn't before? This seems like it will be an issue when I deploy this
application. Am I missing something?

Thanks.

Archived from group: microsoft>public>vb>deployment
Back to top
View user's profile Send private message
ginacresse



Joined: 28 Nov 2007
Posts: 2

PostPosted: Tue Nov 27, 2007 10:50 pm    Post subject: RE: Path to .chm file and deployment question Reply with quote

I found my own answer. Turns out the .chm file needs to be placed in the bin
folder instead of the project folder. Simple solution.

"ginacresse" wrote:

> I'm converting an application from VB6 to VB.net 2005. In VB6, the help text
> was displayed using this code:
> hwndHelp = HtmlHelp(hWnd, "wrp.chm", HH_DISPLAY_TOPIC, 0)
> In VB.net, in order for the helptext to work in development mode, I have to
> use code like this:
> Help.ShowHelp(Me, "..\WRP.chm")
> or like this (fully qualified):
> Help.ShowHelp(Me, "C:\projects.net\DVSystem\DVSystem\WRP.chm")
>
> In both systems, the file WRP.chm resides in the project folder, along with
> the forms. Why do I now have to fully qualify the path to the .chm file when
> I didn't before? This seems like it will be an issue when I deploy this
> application. Am I missing something?
>
> Thanks.

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Deployment All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group