I have two forms and wish to share some information between them.
I declare the array as Shared in the fisrt class but cannot reference it in the second class.
code is:-
Public Class DataEntry1
Inherits System.Windows.Forms.Form
Shared deArray(10) As String
#Region " Windows Form Designer generated code "
…
Private Sub Yes_Click(ByVal sender As System.Object ......
deArray(6) = "Yes"
End Sub
Public Class DataEntry2
Inherits System.Windows.Forms.Form
#Region " Windows Form Designer generated code "
…
Private Sub yes1_Click(ByVal sender As System.Object, ....
deArray(4) = "Maybe"
End Sub
--------------------------------------------------
deArray(4) is "Not Declared.
Thanks for yoiur help.