473,756 Members | 5,156 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Show Help(Me, "Name_Of_Helpfi le_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 1805
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.enum Widgets
Windows.Forms.H elp.ShowHelp(pa rent, "C:\Help\Widget s.chm")
Case MyHelpEnum.enum Mechanisms
' Insert code to implement additional functionality.
End Select
End Sub

<lo*********@gm ail.comwrote in message
news:11******** **************@ 79g2000cws.goog legroups.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.Show Help(Me, "Name_Of_Helpfi le_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.sta rtupPath 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*********@gm ail.comwrote in message
news:11******** *************@h 40g2000cwb.goog legroups.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.Sta rtupPath with your folder name.

<lo*********@gm ail.comwrote in message
news:11******** *************@h 40g2000cwb.goog legroups.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.Sta rtupPath with your folder name.
Hmm somehow I can't seem to find it... :(
the closest I've gotten is the "Applicatio n 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*********@gm ail.comwrote in message
news:11******** **************@ 73g2000cwn.goog legroups.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.St artupPath with your folder name.

Hmm somehow I can't seem to find it... :(
the closest I've gotten is the "Applicatio n 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*********@gm ail.comwrote in message
news:11******** **************@ 42g2000cwt.goog legroups.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

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

Similar topics

1
3153
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 stream and display it in the application. However, what if the app is a Web app? How do I open an embedded
3
2547
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 "Resource" with the following structure : Resource{,en,fr,es} Yes.. these are the only languages supported actually. A couple of rows in that table would look like this :
5
7856
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 COM control (like Microsoft WebBrowser). For each description there is one HTML file and along description text, it contains links to related information. Clicking related information would for example open new form in application and display some...
13
1952
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 properties at the "current" event. But if I do it in the same way in a continous form seems to be impossible, since all images of the form change at the same time. I need a different image for each register. ¿How can I do it?
12
2343
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: <meta http-equiv="Content-Type" content="text/html; charset=windows-1251"> Will this work for javascript alerts also?
5
1588
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 session_start(); include("connection.php"); $query = "SELECT resource, resource_name FROM tblresources WHERE id = '3' ";
7
2107
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 the images that are used for icons across all of the forms in all of the assemblies in a single resource file so that swaping out an image in the resource file affects all localtions that it appears in the app. Is there a way to create a single...
13
3558
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 some javascript code that calls window.open. I pass the resource url of page B to Page A's window.open call. Page B is then loaded and executed but none of the server-side code is rendered. If I view the source of the page, the code (and page...
38
5076
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
9462
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9886
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9857
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9722
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7259
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6542
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5155
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3817
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2677
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.