Results 1 to 3 of 3

Thread: HelpProvider Question in VB.Net

  1. #1

    Thread Starter
    Hyperactive Member vincentg's Avatar
    Join Date
    Jun 2005
    Location
    Chicago IL, USA
    Posts
    261

    HelpProvider Question in VB.Net

    This is the situation.

    I have many forms that I used and I dont use a MDI form to organize that.
    (Dont ask why MDI was not used. Am not the boss )

    Just a main form and the rest are pop up modal forms.

    Just like to ask if is it possible to create a HelpProvider which is global that all the forms can used it whenever user press F1 for help.

    Because right now, on every form I just added a HelpProvider object and set its HelpNameSpace property.

    Thanks in advance.
    -Yince

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083

    Re: HelpProvider Question in VB.Net

    Can't you just create one instance and put it public in a module or class file !! I believe you can .

  3. #3
    Hyperactive Member
    Join Date
    Mar 2005
    Location
    Bath, England
    Posts
    411

    Re: HelpProvider Question in VB.Net

    In a public module somewhere, add the following line:
    VB Code:
    1. Dim GlobalHelp As HelpProvider

    Then in another sub that is called at startup, perhaps even the Sub Main(), add this:

    VB Code:
    1. GlobalHelp = New HelpProvider()
    2. With GlobalHelp
    3.     .HelpNamespace = ...
    4. End With

    You'll have to fill in the blanks

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