1. Kevin Ridley
  2. PowerBuilder
  3. Tuesday, 08 January 2019

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.

Olan Knight Accepted Answer Pending Moderation
0
Votes
Undo

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

Comment
Hi Olan, thanks for the reply, but the dropdown is on the webpage, not in PB. This is a .NET app with a dropdown running inside the browser control.
  1. Kevin Ridley
  2. 5 days ago
There are no comments made yet.
  1. 5 days ago
  2. PowerBuilder
  3. # 1
Kevin Ridley Accepted Answer Pending Moderation
0
Votes
Undo

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.

Attachments (1)
Comment
There are no comments made yet.
  1. one week ago
  2. PowerBuilder
  3. # 2
Chris Pollach Accepted Answer Pending Moderation
0
Votes
Undo

Hi Kevin;

    Can you post some screen captures of what you are seeing?

Regards ... Chris

Comment
There are no comments made yet.
  1. one week ago
  2. PowerBuilder
  3. # 3
Kevin Ridley Accepted Answer Pending Moderation
0
Votes
Undo

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. 

Comment
Or potentially what's different about the browser control when running in the IDE vs EXE.
  1. Kevin Ridley
  2. 1 week ago
There are no comments made yet.
  1. one week ago
  2. PowerBuilder
  3. # 4
Chris Pollach Accepted Answer Pending Moderation
0
Votes
Undo

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

 

Comment
There are no comments made yet.
  1. one week ago
  2. PowerBuilder
  3. # 5
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.