• Log in or sign up for an account here: https://www.sythe.org/login

How can I webbrowser control flat?

Status
Not open for further replies.

Covey

Creator of EliteSwitch

Retired Sectional Moderator
Visual Basic Programmers
Joined
Sep 9, 2005
Sythe Gold
9
Messages
4,510
Age
17
Location
Fuckin' BAM!
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
 
lol just cheat and put it in a frame.
 
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 :(
 
Add a timer with an interval of 1. Then, everytime it ticks, change the webbrowser back to the border you want.

~~Samarkov
 
Please don't post in threads that haven't been posted in for over a month.
 
Status
Not open for further replies.
Runescape Gamblingrunescape gambling
Back
Top