webbrowser background image display-VBForums
Results 1 to 3 of 3

Thread: webbrowser background image display

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2012
    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 2008
    Posts
    9,156

    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


    Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Oct 2012
    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
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.