Results 1 to 3 of 3

Thread: webbrowser background image display

  1. #1
    Addicted Member
    Join Date
    Oct 12
    Posts
    134

    webbrowser background image display

    any ways to add image background on webbrowser1 chat window ? its not for browsing its a chat window that receives text from other chat users and i want to know if its possible to change webbrowser1 background add my own image so we can chat while having nice background

  2. #2
    PowerPoster
    Join Date
    Jan 08
    Posts
    6,781

    Re: webbrowser background image display

    WebBrowser1.Document.body.bgColor = &HFF0000 '<-------- Make background Color Red

    To make background different color and have an image:

    Dim HTML As String

    HTML = "<body background='url_of_image' bgcolor=&hff0000>"

    WebBrowser1.Document.write HTML
    The better the information you give to begin with and the sooner you reply the sooner you will get help and get your problem resolved


    When I was young and in my prime I used to program all the time but now I'm old and getting gray I only program once a day

  3. #3
    Addicted Member
    Join Date
    Oct 12
    Posts
    134

    Re: webbrowser background image display

    Dim HTML As String

    Dim HTML As String

    HTML = "<body background=" & Text2.Text & " bgcolor=&hff0000>"

    frmClient.WB.Document.write HTML


    works great i only need 1 thing with this code sir
    my webbrowser1 height = 4200 and wight = 7455

    how do i set the image to that setting so it fits in perfectly ? please
    Last edited by bogaa; Nov 18th, 2012 at 03:17 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •