Free Code


All examples include a PB10.5 version and a PB12.6 version if there are Windows API functions. The PB12.6 versions are verified to work in 64bit. PowerServer doesn't support the longptr type so you must use the 10.5 version.

If you find this code really useful and would like to donate, click the PayPal button in the upper right corner.

Click here to download an installer for all the free code samples: WebExamples


Adapter  

ParentWindow

This program can run another program like Notepad or the DOS command window attached to a PowerBuilder window, making it appear to be part of your program.

Click here to download the PowerBuilder sample: PARENTWINDOW.ZIP

Win API Functions used:

CloseHandle
CreateProcess
GetDesktopWindow
GetWindow
GetWindowText
GetWindowThreadProcessId
MoveWindow
SetParent
SetWindowLong
ShowWindow
Sleep

——— Last updated 02/14/2019 ———

Amyuni  
BCrypt  
Bitmap  
Canvas  
ChooseFont  
Colors  
ControlPanel  
Cryptoapi  
DisplayIcon  
DWGridXP  
DynamicMenus  
EmailPOP3  
EmailSMTP  
Filesys  
FTPClient  
GetFileName  
GetFolder  
GetURL  
Icontray  
ImageList  
Indirect  
LDAPQuery  
LineCount  
MessageBox  
Mutex  
ODBC API  
OSVersion  
Outlook  
ParentWindow  
PBDebug  
PBEditor  
Ping  
PrinterInstall  
PSRViewer  
ResizeResponse  
RunAndWait  
Send SMS  
SizeOf  
Splitbars  
Statbar  
String Class  
USPS Barcode  
WebBrowser  
WinHTTP  
Winsock  
XmlHttp  
Zlibwapi