none
value pass one form to another form in vb.net RRS feed

  • Question

  • Hi,

    i am developing vb.net2010 application.i am using 2 form(frmVirtual,frmUser).To run application first display frmVirtual form.Then Click button to show frmUser,this from using 2 ratiobutton and 3 button.Click any ratiobutton passvalue frmVirtual from.Pass values ok.But frmVirtual datagrid view data hide.how to solve this problem.

    code

    Dim varTemp As String
        Private Sub radioExpert_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles radioExpert.CheckedChanged
            If radioExpert.Checked = True Then
                varTemp = "1"
            End If
        End Sub

        Private Sub radioUser_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles radioUser.CheckedChanged
            If radioUser.Checked = True Then
                varTemp = "2"
            End If
        End Sub

        Private Sub radioBoth_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles radioBoth.CheckedChanged
            If radioBoth.Checked = True Then
                varTemp = "3"
            End If
        End Sub

        Private Sub btnApply_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnApply.Click
            Dim varPass As New frmVirtual
            varPass.Label12.Text = varTemp
            varPass.Show()
        End Sub

        Private Sub btnCancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCancel.Click
            radioExpert.Checked = False
            radioUser.Checked = False
            radioBoth.Checked = False
        End Sub

        Private Sub btnOk_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOk.Click
            Me.Hide()
        End Sub
    Thursday, September 27, 2012 8:27 AM

All replies

  • Hi there--

    You have erroneously posted your question in a user forum dedicated to customization on Project Server , an enterprise project management tool.

    Please post your question in below forum:
    http://social.msdn.microsoft.com/Forums/en/category/visualbasic

    Hope that helps.


    If you found this post helpful, please “Vote as Helpful”. If it answered your question, please “Mark as Answer”. Thanks, Amit Khare |EPM Consultant| Blog: http://amitkhare82.blogspot.com http://www.linkedin.com/in/amitkhare82

    Thursday, September 27, 2012 10:53 AM