Sub btnStart_Click
'Dim dlg As CustomDialog2
'dlg.AddView(pnl,100%x, 50%y)
'dlg.Show("Manager", "OK", "", "", Null)
Dim dialog As CustomLayoutDialog
Dim sf As Object = dialog.ShowAsync("Manager", "OK", "", "", Null, False)
Wait For (sf) Dialog_Ready (DialogPanel As Panel)
DialogPanel.AddView(pnl,0dip, 75dip, 100%x, 50%y)
Wait For (sf) Dialog_Result (Result As Int)
If Result = DialogResponse.POSITIVE Then
'...Do Something
End If
End Sub