Results 1 to 2 of 2

Thread: Embedding HTML code into a WinForms application.

  1. #1

    Thread Starter
    PowerPoster cicatrix's Avatar
    Join Date
    Dec 2009
    Location
    Moscow, Russia
    Posts
    3,654

    Question Embedding HTML code into a WinForms application.

    Hi, I've a somewhat unusual feature to implement and I don't know if it can be done without much effort.
    A WinForms application has a help file (well, not HTML help, but simply a HTML file with a reference sheet). When user presses F1 button a form with a web-browser control in it displays showing this file. The client wants this HTML file to contain buttons/checkboxes which a program should respond to.
    For example, if a user clicks a HTML button in the help file some value should appear in a textbox on the main form, etc. Is it altogether possible?

    (the HTML file is local)


  2. #2

    Thread Starter
    PowerPoster cicatrix's Avatar
    Join Date
    Dec 2009
    Location
    Moscow, Russia
    Posts
    3,654

    Re: Embedding HTML code into a WinForms application.

    Well, I've got it working, but I don't particularly like the solution I've found.
    I've established a httplistener on 127.0.0.1:8001 and added a POST HTML form to http://127.0.0.1:8001 from my help file. This works but too many things may go wrong with this approach. Is there a better way of doing this?

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