Hi Germain,
You can assignn a handler to a button on your dialogbox and in the handler do something along these lines:
Sub ButtonHandler
Dim rc As Integer
rc = WAPIShellExecute(0, "open", sFileOrURL, "", "", SW_RESTORE)
End Sub
Make sure to also include a declare statement for the WAPISHellExecute function and a define for SW_RESTORE:
Declare Function WAPIShellExecute Lib "shell32.dll" Alias "ShellExecuteA"
( ByVal hwnd As Integer 'Can be zero or a pointer to the MapInfo Window
, ByVal sOperation As String 'Operation to perform on the file
, ByVal sFile As String 'File to perform the operation on
, ByVal sParameters As String 'Parameters to send to the file
, ByVal sDirectory As String 'Default working directory
, ByVal nShowCmd As Integer 'How to display the application ) As Integer
'http://msdn.microsoft.com/en-us/library/bb762153(VS.85).aspx
Define SW_RESTORE 9