[Gambas-user] Really dumb question about dialog forms

richard terry rterry at ...1946...
Fri Dec 11 05:18:43 CET 2009


Hi List,

My really stupid question for the week.

If I create a new form with the dialog support it gets this code:
Public Sub Run() As Boolean

  Return Not Me.ShowModal()

End

Public Sub btnOK_Click()

  Me.Close(True)

End

Public Sub btnCancel_Click()

  Me.Close

End

If I had a textbox on the form and wanted to return its contents, what would 
be the change in syntax required?

Thanks in anticipation.




More information about the User mailing list