visual studio web browser control display google search page problem

aday 1 Reputation point
2022-03-29T07:21:03.95+00:00

I want my web browser control show google search page like this:
187832-image.png
but it show like this:
187720-image.png

Can anyone help me?

Developer technologies | .NET | .NET Runtime
Developer technologies | VB
Developer technologies | C#
{count} votes

2 answers

Sort by: Most helpful
  1. Jiachen Li-MSFT 34,221 Reputation points Microsoft External Staff
    2022-03-29T08:12:12.23+00:00

    Hi @aday ,
    Maybe you can try the code below to control the scaling of pages in webbrowser.

    private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)  
        {  
            webBrowser1.Document.Body.Style = "zoom:120%";  
        }  
    

    You can refer to other solutions in the link below.
    Zoom in on a web page using WebBrowser .NET control

    Best Regards.
    Jiachen Li

    ----------

    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    2022-03-29T21:35:17.727+00:00

    you probably want to define a google search engine page where you can control layout

    https://programmablesearchengine.google.com/controlpanel/all

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.