I do what you can see below:
Expand|Select|Wrap|Line Numbers
- FORM 'B'
- Private Val1 As Uintenger
- Private Val2 As Boolean
- Public Sub New(ByRef _Val1 As Uinteger, ByRef _Val2 As Boolean)
- InitializeComponent()
- Val1 = _Val1
- Val2 = _Val2
- End Sub
- Private Sub Proceso()
- Val1 = 333
- Val2 = True
- Me.Close
- End Sub
- FORM 'A'
- Dim FormB As New 'B' (Val1, Val2)
- FormB.ShowDialog()
I made an example passing an ArrayList and this modify its value when return, but it seems to be that primitives types (boolean, integer, string, etc) does not work by reference in this context.
Other thing I tried is to pass this variables as Object type, but neither works.
Thanks.