In vb.net I have a form with the following Variable and Constructor ...
Public Class frmSelectAssembly
Private intAssemblyId As Integer
Public Sub New(ByRef intAssyId As Integer)
intAssemblyId = intAssyId
I have the following code to instantiate and open the form ...
Dim oForm As frmSelectAssembly
Dim intAssemblyId As Integer
oForm = New frmSelectAssembly(intAssemblyId)
I set intAssemblyId in the Form's code before closing the form. Since I passed it "By Reference", why doesn't MsgBox display the value that I set intAssembly? How else can I pass a value back to the calling procedure?