I pass two variables to the procedure. One is output to be printed in the form's textbox and another is a form's Name. How do I actually substitute Form1 with the frmName to make sure that the text is printed in the textbox of the form that I need?
I can implement it using Select Case or if.. then basing on frmName value, but I wonder how to do that avoiding it.
Public Sub Result(ByVal output As String, ByVal frmName As String)
.Text &= vbCrLf & output