Click here to Skip to main content
15,892,674 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
source code in LookUp_Form
Private Sub m_oFind_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles m_oFind.Click

    On Error Resume Next
    Dim cari = txtKriteria.Text
    Dim kolom = CbKriteria.Text
    If (Equals("Code", kolom)) Then
        Me.RefJnsByrTableAdapter.CariDataDgMap(DataSet.RefJnsByr, cari)
    ElseIf (Equals("Jenis Bayar", kolom)) Then
        Me.RefJnsByrTableAdapter.CariDataDgJnsByr(DataSet.RefJnsByr, cari)
    ElseIf (Equals("Deskripsi", kolom)) Then
        Me.RefJnsByrTableAdapter.CariDataDgNmMap(DataSet.RefJnsByr, cari)
    Else
        Dim i As Integer
        Dim a, b, c As String
        Dim _SPP As New SSPForm
        a = Me.DataGridView1.CurrentRow.Cells(0).Value.ToString
        b = Me.DataGridView1.CurrentRow.Cells(1).Value.ToString
        c = Me.DataGridView1.CurrentRow.Cells(2).Value.ToString
        i = DataGridView1.CurrentRow.Index
        With _SPP
            .m_oMAP.Text = a.Trim & "." & b.Trim
            .m_oDescription.Text = c.Trim
        End With
        Me.Hide()
    End If
End Sub


I want to display data from the datagridview in lookup_form into SSP_Form. when using a method breakpoint at m_oFind_Click event, the process of throwing the data exists but does not appear in the textbox that the heading on SSP_Form. Help on error correction ???
Posted

1 solution

Try to use Request Query string this or Get Set Property
 
Share this answer
 
Comments
ilham zamzami from jakarta 10-May-11 0:06am    
sorry ... please answer with spesific, I don't know you mean

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900