MicrosoftEdge / MicrosoftEdge/WebView2Feedback

WebView2Loader.dll for vba,VB6 need ADD some Export API

Open
#3,536 0 comments 0 reactions 2 assignees View on GitHub

@Lakshmisha-KS is already working on this.

Since Feb 12, 2025.

feature request
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

Just a WebView2Loader.dll, 108KB, and do a VB6, VBA can be used,208KB, 1000KB can be used.
There's only four apis out there, but VB6 doesn't work and sometimes you need the simplest functionality, you don't need to implement everything, you can take your time.
1, you can execute JS, 2 a sentence to create a control and display to the specified window handle, 3 open the URL.
api export:
newwebview2(hwnd as long)
if hwnd=-1, it will show a new window for show webview
openurl(url as string)
sub runjs(js as string)
eval(js as string) as string

i put a sample ,someone can download test.
vb6 edge webview demo by IUnknown,only WebView2Loader.dll-VBForums

https://www.vbforums.com/showthread.php?900231-vb6-edge-webview-demo-by-IUnknown

create webview2 object by vb6,CreateCoreWebView2EnvironmentWithOptions-VBForums
https://www.vbforums.com/showthread.php?900226-create-webview2-object-by-vb6-CreateCoreWebView2EnvironmentWithOptions

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.