What to use for Shell.Explorer?
Posted: Mon Jun 27, 2022 2:32 pm
In VO, we have several OLE controls which can show any file format linked in Windows to a specific program with code like this:
As we should replace OLE controls in DotNet, we have for example used the WebView2 where we replace the OLE control with a CustomControl and separately define a WebView2 which is assigned with SetParent using the handle of the customer control, as e.g. in https://www.xsharp.eu/forum/public-prod ... trol#21933.
This will probably work for Shell.Explorer situations but I can imagine that there are file types which can't be handled by a webbrowser while Explorer would show them, using the assigned handling program.
How should we use "CreateEmbedding("Shell.Explorer")" in X#?
Dick
Code: Select all
SELF:oDCPreView:CreateEmbedding("Shell.Explorer")
SELF:oDCPreView:InitAutoObject()
This will probably work for Shell.Explorer situations but I can imagine that there are file types which can't be handled by a webbrowser while Explorer would show them, using the assigned handling program.
How should we use "CreateEmbedding("Shell.Explorer")" in X#?
Dick