System.Windows.Forms.WebBrowser open links in same window or new window with same session

前端 未结 3 1317
有刺的猬
有刺的猬 2020-12-03 05:42

When using the .NET WebBrowser control how do you open a link in a new window using the the same session (ie.. do not start a new ASP.NET session on the server), or how do y

3条回答
  •  时光取名叫无心
    2020-12-03 06:30

    After adding the reference to shdocvw.dll to your project if you are not adding the actuasl object to your toolbox (shwos as "Microsoft Browser") then define the object at the top of your code with:

    Dim WithEvents Web_V1 As SHDocVw.WebBrowser_V1

提交回复
热议问题