how to make web browser in c# visual studio 2022 (urgent)

_ ati 111 Reputation points
2022-08-03T21:03:36.78+00:00

please tell me the whole code to make a web browser

Developer technologies Windows Presentation Foundation
{count} votes

2 answers

Sort by: Most helpful
  1. Castorix31 90,681 Reputation points
    2022-08-03T21:28:49.27+00:00

  2. Hui Liu-MSFT 48,676 Reputation points Microsoft External Staff
    2022-08-11T07:44:02.44+00:00

    Hi,@_ ati . I tested the linked projects WPFSample.sln and WinForms_GettingStarted.sln in Visual Studio 2019 and Visual Studio 2022.
    WPFSample.sln works fine.
    Forms_GettingStarted.sln works fine in Visual Studio2022.
    Forms_GettingStarted.sln reproduced your problem in Visual Studio2019, I updated the code sequence as follows, the project works fine.

      this.Name = "Form1";  
            this.Text = "Form1";  
            this.Load += new System.EventHandler(this.Form1_Load);  
            this.ResumeLayout(false);  
            this.PerformLayout();  
      this.Controls.Add(this.goButton);  
      this.Controls.Add(this.addressBar);  
      this.Controls.Add(this.webView);  
    
    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.