Results 1 to 8 of 8

Thread: open chm file with expanded state

  1. #1

    Thread Starter
    Fanatic Member manhit45's Avatar
    Join Date
    May 2009
    Location
    Ha noi - Viet Nam
    Posts
    826

    open chm file with expanded state

    I want to open a chm file with expanded state.I opend my file but it collapse all.
    --***----------***-----

    If i help you please rate me.

    Working with Excel * Working with String * Working with Database * Working with array *

    K51 ĐH BÁCH KHOA HÀ NỘI - Khoa CNTT pro.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: open chm file with expanded state

    You can open up a specific topic using

    hh.exe "C:\blah\filename.chm::/Root_Topic/Sub_Topic/topic9.htm"

    hh.exe is what opens the CHM, the bit after the :: specifies where you want it to be open.

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: open chm file with expanded state

    Doesn't the Help.ShowHelp method let you do that too? I haven't used it much and not for a long time, but I think that's the case.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4

    Thread Starter
    Fanatic Member manhit45's Avatar
    Join Date
    May 2009
    Location
    Ha noi - Viet Nam
    Posts
    826

    Re: open chm file with expanded state

    please guid me more clearly . Thánks
    --***----------***-----

    If i help you please rate me.

    Working with Excel * Working with String * Working with Database * Working with array *

    K51 ĐH BÁCH KHOA HÀ NỘI - Khoa CNTT pro.

  5. #5

    Thread Starter
    Fanatic Member manhit45's Avatar
    Join Date
    May 2009
    Location
    Ha noi - Viet Nam
    Posts
    826

    Re: open chm file with expanded state

    Quote Originally Posted by mendhak View Post
    You can open up a specific topic using

    hh.exe "C:\blah\filename.chm::/Root_Topic/Sub_Topic/topic9.htm"

    hh.exe is what opens the CHM, the bit after the :: specifies where you want it to be open.
    I try your way but not work.
    --***----------***-----

    If i help you please rate me.

    Working with Excel * Working with String * Working with Database * Working with array *

    K51 ĐH BÁCH KHOA HÀ NỘI - Khoa CNTT pro.

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: open chm file with expanded state

    @jmc: I haven't either, but I think that may be it. I don't know if it can open a CHM to a specific topic or not. http://www.helpware.net/mshelp2/demo2/h1xNET.htm

    @manhit: Try the link. I was basing my answer for a Process.Start but it appears you could do a Help.ShowHelp.

    @mendhak: Nice work.

  7. #7

    Thread Starter
    Fanatic Member manhit45's Avatar
    Join Date
    May 2009
    Location
    Ha noi - Viet Nam
    Posts
    826

    Re: open chm file with expanded state

    OK, THANKS MENDHAK. I try noW
    --***----------***-----

    If i help you please rate me.

    Working with Excel * Working with String * Working with Database * Working with array *

    K51 ĐH BÁCH KHOA HÀ NỘI - Khoa CNTT pro.

  8. #8

    Thread Starter
    Fanatic Member manhit45's Avatar
    Join Date
    May 2009
    Location
    Ha noi - Viet Nam
    Posts
    826

    Re: open chm file with expanded state

    sorry, as last time. I used this but still not work :
    PHP Code:

        
    Private Sub Button1_Click(ByVal sender As System.ObjectByVal e As System.EventArgsHandles Button1.Click
            HelpProvider1
    .HelpNamespace "C:/Help.chm"
            
    HelpProvider1.SetHelpNavigator(Button1HelpNavigator.KeywordIndex)
            
    HelpProvider1.SetHelpKeyword(Button1"Nếu bạn muốn thêm ")

        
    End Sub 
    --***----------***-----

    If i help you please rate me.

    Working with Excel * Working with String * Working with Database * Working with array *

    K51 ĐH BÁCH KHOA HÀ NỘI - Khoa CNTT pro.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width