Webbrowser Navigate to an embedded resource

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • FishingScout

    #1

    Webbrowser Navigate to an embedded resource

    I have a small html file that I have added to my project. When I added
    "sample.htm l", I set the build action to "embedded resource".

    In the application I would like to do something like this ( but this
    doesn't work ):

    WebBrowser.Navi gate( "MyApplication. Sample.html" )

    Does anyone know if

    1. it is possible to Navigate to an embedded html page
    2. how to Navigate to an embedded hteml page

    Thank you.

  • FishingScout

    #2
    Re: Webbrowser Navigate to an embedded resource

    Hello,

    I just was reading more and found someone had posted a message about
    ediqute and mentioned that someone should be posting in the
    winforms.contro l group. Being new to this site and its capabilitites I
    thought I should look around and actually check out that group for this
    question as well.

    Anyway, I found a solution and here it is:

    Dim stream As IO.Stream =
    Me.GetType().As sembly.GetManif estResourceStre am("MyApplicati on.Sample.html" )

    WebBrowser.Docu mentStream = stream

    Thanks and sorry about the bandwidth...

    FishingScout wrote:
    I have a small html file that I have added to my project. When I added
    "sample.htm l", I set the build action to "embedded resource".
    >
    In the application I would like to do something like this ( but this
    doesn't work ):
    >
    WebBrowser.Navi gate( "MyApplication. Sample.html" )
    >
    Does anyone know if
    >
    1. it is possible to Navigate to an embedded html page
    2. how to Navigate to an embedded hteml page
    >
    Thank you.

    Comment

    • FishingScout

      #3
      Re: Webbrowser Navigate to an embedded resource

      Hello,

      I just was reading more and found someone had posted a message about
      ediqute and mentioned that someone should be posting in the
      winforms.contro l group. Being new to this site and its capabilitites I
      thought I should look around and actually check out that group for this
      question as well.

      Anyway, I found a solution and here it is:

      Dim stream As IO.Stream =
      Me.GetType().As sembly.GetManif estResourceStre am("MyApplicati on.Sample.html" )

      WebBrowser.Docu mentStream = stream

      Thanks and sorry about the bandwidth...

      FishingScout wrote:
      I have a small html file that I have added to my project. When I added
      "sample.htm l", I set the build action to "embedded resource".
      >
      In the application I would like to do something like this ( but this
      doesn't work ):
      >
      WebBrowser.Navi gate( "MyApplication. Sample.html" )
      >
      Does anyone know if
      >
      1. it is possible to Navigate to an embedded html page
      2. how to Navigate to an embedded hteml page
      >
      Thank you.

      Comment

      Working...