Results 1 to 3 of 3

Thread: Calling the help provider in code

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2003
    Location
    South Africa
    Posts
    13

    Calling the help provider in code

    does anyone know how to call the help provider dynamically in the code(Without using the event F1 keypressed). passing the keyword to it????????????

    Want a What's this type of context menu style.
    -Got all the context menu and the event sorted out just can't call the help in the event.

    thanks

  2. #2
    Frenzied Member trisuglow's Avatar
    Join Date
    Jan 2002
    Location
    Horsham, Sussex, UK
    Posts
    1,536
    Had another idea...

    I thought I was onto something with this, but apparantly you can't raise base class events in a derived class. Maybe you could do it from a Module or something...


    VB Code:
    1. Private Sub Button1_Click(ByVal sender As System.Object, _
    2.                               ByVal e As System.EventArgs) _
    3.                                                         Handles Button1.Click
    4.         RaiseEvent HelpRequested(sender, _
    5.                 New System.Windows.Forms.HelpEventArgs( _
    6.                                 New System.Drawing.Point(200, 200)))
    7.     End Sub
    This world is not my home. I'm just passing through.

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2003
    Location
    South Africa
    Posts
    13
    Thanks!

    We will figure something out. Didn't know about RaiseEvent method

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