Adblock breaks this site

How can I webbrowser control flat?

Discussion in 'Programming General' started by Covey, Dec 30, 2008.

Thread Status:
Not open for further replies.
  1. Covey

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816
    How can I webbrowser control flat?

    Does anyone know how to get rid of the 3D appearance of the webbrowser control?

    This is the code i'm currently using but every time a click a link to go to another page the 3D style kicks in again, but then once the page is loaded it changes back to flat? I can't find any other event that it works on. Please help

    Code:
    Private Sub webMain_DocumentComplete(ByVal pDisp As Object, URL As Variant)
        webMain.Document.Body.Style.BorderStyle = "none"
    End Sub
     
  2. jdsfighter

    jdsfighter Forum Addict
    Visual Basic Programmers

    Joined:
    Jan 21, 2007
    Posts:
    603
    Referrals:
    0
    Sythe Gold:
    0
    How can I webbrowser control flat?

    lol just cheat and put it in a frame.
     
  3. Covey

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816
    How can I webbrowser control flat?

    Lol, i ended up doing that. But lets keep that on the down low :p
     
  4. kironchi

    kironchi Newcomer

    Joined:
    Apr 9, 2008
    Posts:
    16
    Referrals:
    0
    Sythe Gold:
    0
    How can I webbrowser control flat?

    covey that is cheating there are probably other ways to do it i am trying to find out that too for my wb but i might not now for other reasons but basically the hard way is too change the parent of webbrowser control if possible or do what he said..put it in a frame..wish i though of that :(
     
  5. Samarkov

    Samarkov Active Member

    Joined:
    Feb 21, 2008
    Posts:
    147
    Referrals:
    0
    Sythe Gold:
    0
    How can I webbrowser control flat?

    Add a timer with an interval of 1. Then, everytime it ticks, change the webbrowser back to the border you want.

    ~~Samarkov
     
  6. Darthatron

    Darthatron Massive Troll
    Retired Sectional Moderator Visual Basic Programmers

    Joined:
    May 22, 2006
    Posts:
    1,612
    Referrals:
    3
    Sythe Gold:
    0
    How can I webbrowser control flat?

    Please don't post in threads that haven't been posted in for over a month.
     
< where to start with? | [C#] Global Variables. >
Thread Status:
Not open for further replies.


 
 
Adblock breaks this site