![]() Just put this into a separate module and call fHandleFile() with the right parameters. IIf(stRet = "", vbNullString, ", " & stRet) VarTaskID = Shell("rundll32.exe shell32.dll,OpenAs_RunDLL " _ StFile, vbNullString, vbNullString, lShowHow) LRet = apiShellExecute(hWndAccessApp, vbNullString, _ ' ?fHandleFile("I:\mdbs\CodeNStuff.mdb", Win_NORMAL) ' ?fHandleFile("C:\TEMP\TestThis",Win_Normal) 'Handle Unknown extensions (call Open With Dialog): 'Call Email app: URL: ?fHandleFile("", WIN_NORMAL) ![]() 'Open a folder: ?fHandleFile("C:\TEMP\",WIN_NORMAL) Net 2. Private Declare Function apiShellExecute Lib "shell32.dll" _ Webbrowser control authenticate not working when access file folder. When the WebBrowser control (using Microsoft Edge WebView2) is used in your PowerBuilder application, you need to distribute the WebView2 Runtime with your application. ' provided the copyright notice is left unchanged. ' You are free to use it in any application, ' It is not to be altered or distributed, Specifies whether the control is visible. Value is a percentage in the range 0 (opaque) to 100 (completely transparent). Specifies the transparency of the control. Specifies the tag value assigned to the control. Go to Control Panel > User Accounts > Credential Manager > Click Windows Credentials > Under Generic Credentials, remove ALL credentials related with Office. ' This code was originally written by Dev Ashish. The WebBrowser control cannot receive focus when the user tabs among controls within a window. ![]() If I command this first: WebBrowser1. I did a lot of testing and found that the first WebBrowser1.Navigate command I give it will not accept any others other than refresh. In my test folder there are 4 files to select from. ![]() If you want a more robust solution with ShellExecute that will open ANY file, folder or URL using the default OS associated program to do so, here is a function taken from : '************ Code Start ********** Same thing, I get a WebBrowser control refresh but the file displayed is the initial file I select. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |