We have a super weird issue with a browser control. We have an external vendor supplied .NET 1 page app that we host and call from PB 12.5.2 (build 5609). The control sits on a response window. We've been in prod for almost a year with great success. The vendor has now supplied a 2nd .NET 1 page app with a separate URL. The new app has a dropdown on it. In the IDE on a win7 machine, the dropdown works as expected, expanding and allowing selection of a value, but in the EXE on both win7 and win10, the dropdown will open but you cannot select a value. Here's the very weird part, in the EXE on both win7 and win10, if you right click in the browser control and open the properties window and then click the dropdown, it works as expected, allowing selection of a value. Has anyone else seen craziness like this? I tried the registry setting to change compatibility mode from Yuri Denshchik's video (to IE11) but that didn't work either.
- You are here:
- Home
- Q&A
- Q&A
- PowerBuilder
- 12.5.2 Web Browser control - dddw not working in EXE
- Kevin Ridley
- PowerBuilder
- Tuesday, 8 January 2019 16:45 PM UTC
- Friday, 20 November 2020 08:09 AM UTC
- PowerBuilder
- # 1
Hi,
Yes this seems very weird. Maybe it's a wild guess, but would it be possible that when running from the IDE, the 32 bit version of IE is being run and when running the EXE, for some reason the 64 bit version of IE ?
If that would turn out to be the case, then your can force the use of the 32 bit browser by importing this registry setting:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"TabProcGrowth"=dword:00000001
- Chris Pollach @Appeon
- Friday, 20 November 2020 15:12 PM UTC
-
Helpful Loading... Helpful 0
- Miguel Leeuwe
- Friday, 20 November 2020 16:14 PM UTC
-
Helpful Loading... Helpful 0
- Chris Pollach @Appeon
- Friday, 20 November 2020 18:20 PM UTC
-
Helpful Loading... Helpful 0
- Thursday, 19 November 2020 22:40 PM UTC
- PowerBuilder
- # 2
Do you have the same problem if you use the new Chromium WebBrowser control? I know you are currently on PB 12.5, but just as a test to see if it is the Internet Explorer browser problem.
- Friday, 11 January 2019 15:58 PM UTC
- PowerBuilder
- # 3
It sounds to me like the focus is not being set on the DDDW after it has opened, and that clicking the DDDW does not set the focus.
Try setting the focus onto the DDDW in the code after the dddw has been opened.
Olan
- Kevin Ridley
- Friday, 11 January 2019 16:10 PM UTC
-
Helpful Loading... Helpful 0
- Wednesday, 9 January 2019 22:01 PM UTC
- PowerBuilder
- # 4
Hey Chris,
Thanks for following up. There's not really much to see. The Microsoft Web control takes up the whole page. The app this is running has a dropdown that will open but does not close. I'm attaching a screenshot of the relevant area with last names crossed out. As you can see it opens, and another weird thing, if you just move the mouse it will select more than one until you click (probably not relevant). When you click it does select, but does not close. The only way it closes is if you click away from the dropdown, but it doesn't keep the value, just closes with no value selected.
If you right click inside the browser and select Properties, the properties widow does open, and only then the dropdown works as expected. It selects and closes when you click and the value is retained. But if you close the properties window and try again, you get the original results where it does not select and close.
I tried the registry "hack" mentioned in this article:
https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/general-info/ee330730(v=vs.85)#browser_emulation
but not sure if it's possible to determine if it's actually in IE11 mode, or still in 7.
Again for clarity, it does, for some reason work in the IDE just not the EXE.
- Wednesday, 9 January 2019 20:52 PM UTC
- PowerBuilder
- # 5
Hi Kevin;
Can you post some screen captures of what you are seeing?
Regards ... Chris
- Wednesday, 9 January 2019 13:17 PM UTC
- PowerBuilder
- # 6
Hi Chris,
I tried Roland's but got the same results. Just think it's very odd that if the Properties window is open, it works fine but when it's not open the dropdown doesn't select and close, only highlights. Wondering what's different inside IE when the Properties window is open.
- Kevin Ridley
- Wednesday, 9 January 2019 13:20 PM UTC
-
Helpful Loading... Helpful 0
- Tuesday, 8 January 2019 18:55 PM UTC
- PowerBuilder
- # 7
Hi Kevin;
There are some "sneaky" compatibility issues that you might need to set in order for IE to behave when embedded as an OLE control in your PB App. Have you tried Roland's embedded web browser code ... http://www.topwizprogramming.com/freecode_webbrowser.html
Regards ... Chris
- François Thibault
- Thursday, 19 November 2020 22:22 PM UTC
Someone found a solution for this problem ?
-
Helpful Loading... Helpful 0
- Page :
- 1
However, you are not allowed to reply to this question.