I have a large application in which I cannot get WebView to display when the app is in a Do-Loop with DoEvents in it. The WebView is used to display the app's Help file, so the file is loaded at the start of the app and all the Help button does is supposed to do is make the WebView visible, but it will not become visible.
To try to isolate the problem, I created a test app (attached) with a Webview and three buttons:
"Help/X" to show and hide WebView
"Back" to go back after a hyperlink has been clicked.
"Loop/Exit Loop" to put the app into/out of a Do-Loop with DoEvents.
Unlike the main program, in the test program when I exit WebView, activate the Do-Loop, and start up WebView again, it displays okay, but if I click on a hyperlink, it will highlight the link, but it will not go to the destination until after I click on Exit Loop to get out of the DoEvents loop, then it will jump to the hyperlink destination.
So while I didn't duplicate the original problem, there is still a problem. The routine in the main program is equally simple (change the text on the Help/X button and display/hide WebView), but it simply will not display it.
If I remove DoEvents from the loop, none of the buttons or the WebView can be accessed, of course, so DoEvents is working as far as allowing processing of button clicks, etc., but it will not allow processing the hyperlink clicks.
Attached is the test app, including an HTML file to display. Is this a bug, or am I just doing something wrong, or is this just a limitation of DoEvents-WebView?
To try to isolate the problem, I created a test app (attached) with a Webview and three buttons:
"Help/X" to show and hide WebView
"Back" to go back after a hyperlink has been clicked.
"Loop/Exit Loop" to put the app into/out of a Do-Loop with DoEvents.
Unlike the main program, in the test program when I exit WebView, activate the Do-Loop, and start up WebView again, it displays okay, but if I click on a hyperlink, it will highlight the link, but it will not go to the destination until after I click on Exit Loop to get out of the DoEvents loop, then it will jump to the hyperlink destination.
So while I didn't duplicate the original problem, there is still a problem. The routine in the main program is equally simple (change the text on the Help/X button and display/hide WebView), but it simply will not display it.
If I remove DoEvents from the loop, none of the buttons or the WebView can be accessed, of course, so DoEvents is working as far as allowing processing of button clicks, etc., but it will not allow processing the hyperlink clicks.
Attached is the test app, including an HTML file to display. Is this a bug, or am I just doing something wrong, or is this just a limitation of DoEvents-WebView?