25-11-14, 05:10 PM
اخي ظهرتلي هذي الرسالة
Unable to cast object of type 'System.String' to type 'System.Windows.Forms.TextBox'.
هذي الكودات الي استخدمتها
Dim book As New BookInfo
' to be inside the main form
BookInfo.MdiParent = MdiParent
BookInfo.Show()
BookInfo.TextBox16 = DataGridView3.CurrentRow.Cells(0).Value
BookInfo.TextBox15 = DataGridView3.CurrentRow.Cells(1).Value
BookInfo.TextBox14 = DataGridView3.CurrentRow.Cells(2).Value
BookInfo.TextBox13 = DataGridView3.CurrentRow.Cells(3).Value
BookInfo.TextBox19 = DataGridView3.CurrentRow.Cells(4).Value
BookInfo.TextBox12 = DataGridView3.CurrentRow.Cells(5).Value
BookInfo.TextBox11 = DataGridView3.CurrentRow.Cells(6).Value
Me.Close()
وهل تكون في CellContentDoubleClick ؟؟
Unable to cast object of type 'System.String' to type 'System.Windows.Forms.TextBox'.
هذي الكودات الي استخدمتها
Dim book As New BookInfo
' to be inside the main form
BookInfo.MdiParent = MdiParent
BookInfo.Show()
BookInfo.TextBox16 = DataGridView3.CurrentRow.Cells(0).Value
BookInfo.TextBox15 = DataGridView3.CurrentRow.Cells(1).Value
BookInfo.TextBox14 = DataGridView3.CurrentRow.Cells(2).Value
BookInfo.TextBox13 = DataGridView3.CurrentRow.Cells(3).Value
BookInfo.TextBox19 = DataGridView3.CurrentRow.Cells(4).Value
BookInfo.TextBox12 = DataGridView3.CurrentRow.Cells(5).Value
BookInfo.TextBox11 = DataGridView3.CurrentRow.Cells(6).Value
Me.Close()
وهل تكون في CellContentDoubleClick ؟؟
