473,396 Members | 1,982 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

displaying resource file as Help

Hello,
I have a help file as a chm, which is added to the project as a
resource. I'm trying to display it as
System.Windows.Forms.Help.ShowHelp(Me, "Name_Of_Helpfile_Resource")
which obviously does not work (It cannot find anything at that URL).
Is there a way to do this?

Dec 21 '06 #1
12 1770
You want to leave these files out of your project in my opinion.

' Visual Basic
' This method takes parameters from the client application that allow
' the developer to specify when Help is displayed.
Public Sub DisplayHelp (ByVal parent as System.Windows.Forms.Control, _
ByVal topic as MyHelpEnum)
' The file to display is chosen by the value of the topic
' parameter.
Select Case topic
Case MyHelpEnum.enumWidgets
Windows.Forms.Help.ShowHelp(parent, "C:\Help\Widgets.chm")
Case MyHelpEnum.enumMechanisms
' Insert code to implement additional functionality.
End Select
End Sub

<lo*********@gmail.comwrote in message
news:11**********************@79g2000cws.googlegro ups.com...
Hello,
I have a help file as a chm, which is added to the project as a
resource. I'm trying to display it as
System.Windows.Forms.Help.ShowHelp(Me, "Name_Of_Helpfile_Resource")
which obviously does not work (It cannot find anything at that URL).
Is there a way to do this?

Dec 21 '06 #2

vbnetdev wrote:
You want to leave these files out of your project in my opinion.
Yeah I think you may be right about that I've tried a number of tricks,
and none of them really worked well...
Ok so here's the next problem: if I can't include the chm in the
project resources, how can I ensure the location in the filesystem that
will be installed at? The best place, I think would to just install it
in the same location as the executable file. I thought I could add it
through the Application Files (in "Project Settings -Publish"), but I
can't. The program is being deployed throught ClickOnce, and I can't
seem to find much on how to control the install locations of files.

Dec 22 '06 #3
Yes in that case place them in your bin folder and use teh
application.startupPath placeholder to verify your contents are picked up
correctly. Whereever it is installed, here they will find it.

Now are you asking me in the setup project of how to force a install to a
certain path?

<lo*********@gmail.comwrote in message
news:11*********************@h40g2000cwb.googlegro ups.com...
>
vbnetdev wrote:
>You want to leave these files out of your project in my opinion.
Yeah I think you may be right about that I've tried a number of tricks,
and none of them really worked well...
Ok so here's the next problem: if I can't include the chm in the
project resources, how can I ensure the location in the filesystem that
will be installed at? The best place, I think would to just install it
in the same location as the executable file. I thought I could add it
through the Application Files (in "Project Settings -Publish"), but I
can't. The program is being deployed throught ClickOnce, and I can't
seem to find much on how to control the install locations of files.

Dec 22 '06 #4
There is a section in the setup package that allows you "include files". I
would create a folder, put them in there and reference them with
Application.StartupPath with your folder name.

<lo*********@gmail.comwrote in message
news:11*********************@h40g2000cwb.googlegro ups.com...
>
vbnetdev wrote:
>You want to leave these files out of your project in my opinion.
Yeah I think you may be right about that I've tried a number of tricks,
and none of them really worked well...
Ok so here's the next problem: if I can't include the chm in the
project resources, how can I ensure the location in the filesystem that
will be installed at? The best place, I think would to just install it
in the same location as the executable file. I thought I could add it
through the Application Files (in "Project Settings -Publish"), but I
can't. The program is being deployed throught ClickOnce, and I can't
seem to find much on how to control the install locations of files.

Dec 22 '06 #5

vbnetdev wrote:
There is a section in the setup package that allows you "include files". I
would create a folder, put them in there and reference them with
Application.StartupPath with your folder name.
Hmm somehow I can't seem to find it... :(
the closest I've gotten is the "Application Files" in the project's
Properties page. It shows me the files I can include or exclude, but I
can't add NEW files to this list - right now it just shows files such
as "myApp.exe".
I'm using VB .NET Express for this project...

Dec 22 '06 #6
Oh that changes things a bit. I don't think you have the setup wizard. In
the setup project can you right click on the project name and select view,
filesystem?

If so under application folder place your folder with the help files there.
(right click on Application Folder and select "Add Folder")

<lo*********@gmail.comwrote in message
news:11**********************@73g2000cwn.googlegro ups.com...
>
vbnetdev wrote:
>There is a section in the setup package that allows you "include files".
I
would create a folder, put them in there and reference them with
Application.StartupPath with your folder name.

Hmm somehow I can't seem to find it... :(
the closest I've gotten is the "Application Files" in the project's
Properties page. It shows me the files I can include or exclude, but I
can't add NEW files to this list - right now it just shows files such
as "myApp.exe".
I'm using VB .NET Express for this project...

Dec 22 '06 #7

vbnetdev wrote:
Oh that changes things a bit. I don't think you have the setup wizard. In
the setup project can you right click on the project name and select view,
filesystem?

If so under application folder place your folder with the help files there.
(right click on Application Folder and select "Add Folder")
By "setup project", do you mean the project's Properties?

when you say to right-click the project name, that makes sense if
you're talking about the Solution Explorer... When I'm in the Solution
Explorer, I can right-click the project name and select "Add -New
Folder". Of course, I can already see the chm file in the Solution
Explorer.
*sigh* so much easier with a makefile... hmm, is there some file I
could manually edit to get the chm to be included in the installation?

Dec 22 '06 #8
No I dont mean this. Trying to compile some screenshots for you so stand by.

<lo*********@gmail.comwrote in message
news:11**********************@42g2000cwt.googlegro ups.com...
>
vbnetdev wrote:
>Oh that changes things a bit. I don't think you have the setup wizard. In
the setup project can you right click on the project name and select
view,
filesystem?

If so under application folder place your folder with the help files
there.
(right click on Application Folder and select "Add Folder")

By "setup project", do you mean the project's Properties?

when you say to right-click the project name, that makes sense if
you're talking about the Solution Explorer... When I'm in the Solution
Explorer, I can right-click the project name and select "Add -New
Folder". Of course, I can already see the chm file in the Solution
Explorer.
*sigh* so much easier with a makefile... hmm, is there some file I
could manually edit to get the chm to be included in the installation?

Dec 22 '06 #9

vbnetdev wrote:
No I dont mean this. Trying to compile some screenshots for you so stand by.
no no never mind!
I got what I needed. I selected the file in the Solution Explorer, then
selected the properties *for the file*! ...Then set the Build Type to
Content, then set the Copile Action to "Copy if newer"... Maybe that
wasn't what you meant either, but it got the job done.

Dec 22 '06 #10
>
no no never mind!
I got what I needed. I selected the file in the Solution Explorer, then
selected the properties *for the file*! ...Then set the Build Type to
Content, then set the Copile Action to "Copy if newer"... Maybe that
wasn't what you meant either, but it got the job done.
Sorry, "Build Type" should have read "Build Action" and "Compile
Action" should have read "Copy to Output Directory"...
thanks for all though! ;)

Dec 22 '06 #11
http://www.kjmsolutions.com/images/pics.zip

You should have two projects in your view in VS. One is a setup project and
the other your solution right?

<lo*********@gmail.comwrote in message
news:11**********************@42g2000cwt.googlegro ups.com...
>
vbnetdev wrote:
>Oh that changes things a bit. I don't think you have the setup wizard. In
the setup project can you right click on the project name and select
view,
filesystem?

If so under application folder place your folder with the help files
there.
(right click on Application Folder and select "Add Folder")

By "setup project", do you mean the project's Properties?

when you say to right-click the project name, that makes sense if
you're talking about the Solution Explorer... When I'm in the Solution
Explorer, I can right-click the project name and select "Add -New
Folder". Of course, I can already see the chm file in the Solution
Explorer.
*sigh* so much easier with a makefile... hmm, is there some file I
could manually edit to get the chm to be included in the installation?

Dec 22 '06 #12
OK well I am glad it is resolved. I hoped I helped in some way.

Kelly

<lo*********@gmail.comwrote in message
news:11********************@48g2000cwx.googlegroup s.com...
>
>>
no no never mind!
I got what I needed. I selected the file in the Solution Explorer, then
selected the properties *for the file*! ...Then set the Build Type to
Content, then set the Copile Action to "Copy if newer"... Maybe that
wasn't what you meant either, but it got the job done.

Sorry, "Build Type" should have read "Build Action" and "Compile
Action" should have read "Copy to Output Directory"...
thanks for all though! ;)

Dec 22 '06 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: peter | last post by:
Hi, I have 2 questions: 1) I have read the articles on how to embedd and image in a resource file. I have also read the articles on how to open it from the resource file and put it in a...
3
by: Diego TERCERO | last post by:
Hi... I'm working on a tool for editing text resources for a family of software product my company produces. These text resources are found in a SQL Server database, in a table called...
5
by: Tomaz Koritnik | last post by:
Hi I have many short HTML files stored in a binary stream storage to display descriptions for various items in application. HTML would be display inside application using some .NET control or...
13
by: Jose.M.Huerta | last post by:
I'm trying to display in a continuos form some *.jpg. I have a table with the file path, (a photo of a person). Display these photos in a single form is very easy, just using changing some...
12
by: korund | last post by:
How to make javascript alert with non-english text displaying correctly on computers where english only is default system & language settings? For web page the solution is just use meta tags:...
5
by: monomaniac21 | last post by:
Hi I have uploaded a pdf file into my db and am trying to display it again here is the code i have used (at the moment it is just displaying the binary file's code as text in a html page: <?php...
7
by: craig | last post by:
....quick question for anyone who might have some experience with .net resource files in VS 2003. I have an application that is not localized, but I would still like to be able to place all of...
13
by: Bob Jones | last post by:
Here is my situation: I have an aspx file stored in a resource file. All of the C# code is written inline via <script runat="server"tags. Let's call this page B. I also have page A that contains...
38
by: ted | last post by:
I have an old link that was widely distributed. I would now like to put a link on that old page that will go to a new page without displaying anything.
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.