Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. How to insert a background image to a webbrowser control?

How to insert a background image to a webbrowser control?

Scheduled Pinned Locked Moved C#
htmlhelptutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    King of Kingz
    wrote on last edited by
    #1

    Hi, i m building a html editor, all i want is how to insert a background image. I have done it by replacing the tag with but i wana somthing more professional... plz help me...

    King

    A 1 Reply Last reply
    0
    • K King of Kingz

      Hi, i m building a html editor, all i want is how to insert a background image. I have done it by replacing the tag with but i wana somthing more professional... plz help me...

      King

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      in which control do u want to image ? r can u kindly explain in details ?;)

      Happy Programming ----------------- Abhijit Jana Noida, India

      K 1 Reply Last reply
      0
      • A Abhijit Jana

        in which control do u want to image ? r can u kindly explain in details ?;)

        Happy Programming ----------------- Abhijit Jana Noida, India

        K Offline
        K Offline
        King of Kingz
        wrote on last edited by
        #3

        Thx 4 ur reply. i m building a html editor in vb.net. 2 do so i m using webbrowser control. all i want, when user uses this software, he can insert a background image to document. i have done this like Dim openDlg As New OpenFileDialog openDlg.Filter = "BMP Image|*.bmp|GIF Image|*.gif|JPG Image|*.jpg" If openDlg.ShowDialog() = DialogResult.OK Then Dim Tempstr = openDlg.FileName Dim fileName As String = "" For Each ch As Char In Tempstr If ch = "\" Then ch = "/" End If fileName += ch Next Tempstr = "" webbrowser1.DocumentText = webbrowser1.DocumentText.Replace("King

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups