hello guys im a newbie started studying vb.net 2010 on last week of december 2011.
in my first form i have a datagrid havng access 2003 as db.
on my second form i have textboxes.
now what i need to do is when i clicked a specific row of my datagrid the second form will pop out and display the data on its textboxes, there it can be edited.
so far i have this code. i got this from my search on net

Private Sub dgv1_CellDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles dgv1.CellDoubleClick

        Dim empid As Object = dgv1.Rows(e.RowIndex).Cells(0).Value

        display.Text = Convert.ToString(empid)

    End Sub

this code display the employee id of the clicked datagrid row on my textbox on the same form.
now i need to place my textbox to another form.. can anybody guide me.. thanks.

hi!
u want to move textbox from one form to another ? y not u try to get values from textbox of first form to textbox of 2nd form ,

hi!
u want to move textbox from one form to another ? y not u try to get values from textbox of first form to textbox of 2nd form ,

i have done it thank you though

if ur prob is solved please mark this thread as solved
Regards
M.Waqas Aslam

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.