steinie
31-08-2011, 20:49
This will open the Windows Calculator from ThinBasic.:D
Uses "OS"
CallBack Function XXXXXXXX() as long
'----------------------------------------------------------------
Select Case CbMsg
Case %WM_INITDIALOG
Case %WM_SIZE
Case %WM_COMMAND
Select Case CbCtl
Case %open_calc
Dim utility_path As String = "C:\Windows\System32\calc.exe"
OS_ShellExecute("open", utility_path, "", "", %OS_WNDSTYLE_NORMAL)
End Select
Uses "OS"
CallBack Function XXXXXXXX() as long
'----------------------------------------------------------------
Select Case CbMsg
Case %WM_INITDIALOG
Case %WM_SIZE
Case %WM_COMMAND
Select Case CbCtl
Case %open_calc
Dim utility_path As String = "C:\Windows\System32\calc.exe"
OS_ShellExecute("open", utility_path, "", "", %OS_WNDSTYLE_NORMAL)
End Select