Solved

removing scrollbars from webbrowser control

Posted on 2000-03-14
3
242 Views
Last Modified: 2010-05-02
hi!
can anybody tell me how to remove the scroll bars from a web browser control.
even if the contents to be displayed in browser control are smaller in area than that of web browser control area, a vertical scroll bar is visible on browser control. is there any way to make it desable.
preeti
0
Comment
Question by:preetiaggarwal
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
mcrider earned 30 total points
ID: 2617290
Here is an easy way do "hide" the scrollbars...

Place the webbrowser control inside a picturebox as a child, then do this:


   form1.picture1.Width=form1.WebBrowser1.Width - 220
   form1.picture1.height=form1.WebBrowser1.height - 220


Hope this helps!


Cheers!®©
0
 

Author Comment

by:preetiaggarwal
ID: 2622950
good soln. thanks.
i to got a soln.
i.e. make a user control, put webbrowser control on it (resize user control such that it contains webbrowser with out scroll bars.)
0
 
LVL 14

Expert Comment

by:mcrider
ID: 2623190
Thanks for the points! Glad I could help!


Cheers!®©
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month9 days, 1 hour left to enroll

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question