Hullo Good Friends,
I need your help. Please Help me.
I am trying to pass the name of the Calling FORM FRMSALES to the Loaded FORM FRMPOPUPCustome rs so that FRMPOPUPCustome r will set the FRMSALES visible to FALSE.
I am not sure how to do it. FRMPOPUPCustmer does not turn FRMSALES visible to FALSE.
Here are the coding from Both FORMs:
I need your help. Please Help me.
I am trying to pass the name of the Calling FORM FRMSALES to the Loaded FORM FRMPOPUPCustome rs so that FRMPOPUPCustome r will set the FRMSALES visible to FALSE.
I am not sure how to do it. FRMPOPUPCustmer does not turn FRMSALES visible to FALSE.
Here are the coding from Both FORMs:
Code:
'--------------------------------------------------------------
' FORM : FRMSALES.VB
' Description : This form load FrmPOPUPCustomer to retrieve specific customer
' or Create New Customer
'----------------------------------------------------------------
Private Sub ToolStripMenuItem_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles ToolStripMenuItem.Click
Dim FM As New FrmCityRef
Dim callFrm As New FrmCustMaint
FM.PropCallForm = callFrm
FM.ShowDialog()
FM = Nothing
End Sub
Code:
'------------------------------------------------------------
' FORM :FRMPOPUPCUSTOMER.VB
' Description : This form uses DataGridView and TEXTBOX to create new customer record
' : It will set the CALLING FORM visible to FALSE
' --------------------------------------------------------------
Option explicit ON
Dim FrmCall As Form
Private Sub FRMPOPUPCUSTOMER_Load(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles MyBase.Load
FrmCall.Visible = False
End Sub
Public Property PropCallForm() As Form
'retrieve calling form name to set visible off
Get
Return FrmCall
End Get
Set(ByVal value As Form)
FrmCall = value
End Set
End Property
Private Sub FRMPOPUPCUSTOMER_FormClosed(ByVal sender As Object, _
ByVal e As System.Windows.Forms.FormClosedEventArgs) _
Handles Me.FormClosed
FrmCall.Visible = True
End Sub
Comment