1. Yuri Denshchik
  2. PowerBuilder
  3. Wednesday, 3 May 2017 18:04 PM UTC

Hello, 

Is it possible to insert to PB App visual controls for .NET forms?

We are looking for any alternative to 32bit ActiveX that can be plugged to 32bit and 64bit PB application. 

Thank you,

Yuri

Bruce Armstrong Accepted Answer Pending Moderation
  1. Thursday, 4 May 2017 13:29 PM UTC
  2. PowerBuilder
  3. # 1

If you are looking to add .Net visual controls to PowerBuilder Classic applications then you can use the .Net Interop Forms Toolkit to add an ActiveX wrapper around the controls.  It's based on WinForm, but you can host WPF controls in an WinForm ElementHost control so WPF controls can be used as well.

https://blogs.sap.com/2014/04/12/how-to-use-net-visual-controls-in-powerbuilder-classic/

http://anvil-of-time.com/wordpress/powerbuilder/powerbuilder-using-net-visual-controls-in-pb-classic-applications/

https://www.codeproject.com/Articles/408620/PowerBuilder-Using-Net-Visual-Controls-in-PB-Class

 

Comment
  1. Armeen Mazda @Appeon
  2. Friday, 5 May 2017 16:12 PM UTC
Just this clarify, this would work for a native PowerBuilder app not just the .NET WinForm target in PowerBuilder Classic?

  1. Helpful
  1. Yuri Denshchik
  2. Wednesday, 10 May 2017 18:27 PM UTC
Will this work for 64bit compile?

  1. Helpful
  1. Heino Hellmers
  2. Thursday, 18 May 2017 19:37 PM UTC
Hi,



it doesn't work for our needs.



We  tried it and needed some events to be raise ( custom events), but it was not able for us to use them in 64 bit pb native compiled apps.



We are using the interop way from visual studio in many cases, but we were not able to make them work in 64 bit



Its still a general bug in pb  to use 64 bit controls

  1. Helpful
There are no comments made yet.
Chris Pollach Accepted Answer Pending Moderation
  1. Wednesday, 3 May 2017 18:32 PM UTC
  2. PowerBuilder
  3. # 2

Hi Yuri;

  The only way to add PB controls to a .Net Winform App is via PB.Net. PB.Net can build a Custom Visual User Object .Net class that your MS Apps can consume. However, remember that there is no more PB.Net after PB v12.6

Regards ... Chris

Comment
There are no comments made yet.
  • Page :
  • 1


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