To further explain what I am currently doing that does not seem to work I'm
cutting actaul code here.
From a formd called StoreSelection:
Public Class myFormLibrary
Public Shared StoreInformatio n1 As Form
End Class
Also from form StoreSelection;
Dim frminfo1 As New StoreInformatio n1
'Set up values for storeinform1 screen
frminfo1.LegalN ame1.Text = myDV(rowIndex)( "LEGAL_NAME_LIN E1").ToString ()
frminfo1.LegalN ame2.Text = myDV(rowIndex)( "LEGAL_NAME_LIN E2").ToString ()
frminfo1.StoreO wner.Text = myDV(rowIndex)( "STORE_OWNER"). ToString()
From a form called StoreInformatio n that is called from StoreSelection
using;
Dim frminfo As New StoreInformatio n
'Set up values for storeinfor screen
frminfo.LegalNa me1.Text = myDV(rowIndex)( "LEGAL_NAME_LIN E1").ToString ()
frminfo.Show()
From StoreInformatio n I'm trying to see the form StoreInformatio n1 using the
following code, I'm not putting any data in the form here, it was all added
in StoreSelction.V B
Private Sub NextButton_Clic k(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles NextButton.Clic k
myFormLibrary.S toreInformation 1.Show()
Me.Hide()
End Sub
I do not get any errors during compiling or green underlines in the Visual
Studio program. The Me.Hide() does remove the StoreInformatio n form but I
see StoreSelection form instead of the StoreInformatio n1 form.
THanks,
Steve
"ag" <na******@gmail .com> wrote in message
news:11******** **************@ y43g2000cwc.goo glegroups.com.. .
Look, if you want to track down your forms in your application, then
you need to create forms manually and keep the objects and when calling
another form, pass that object to another form by using any public
method.
lemme show u a pseodo code:
Form1
----------
Dim f2 As New Form2()
f2.xxx(f2)
f2.show
Form2
------------
// variable to store f2 objects
Dim myF2 as Form2
// then declare a public procedure
public xxx(ByVal f2 As Form2)
//
myF2=f2
//
end procedure
In that same way u can call Form3 also. If you want to send data to
form2 then just add an extra parameter on xxx().