la_morte1977
New member
- Joined
- Apr 7, 2011
- Messages
- 3
- Programming Experience
- Beginner
hello
I'm new here and I hope to be helped on this problem
I have a windows form with 8 textboxes, 3 datagridview (dgw1, dgw2, dgw3) and a picturebox
When entering the data, I have to click out of the current DataGridview3 (lose focus) to select a picturebox. After two clicks I need to go back into the cell where I was this datagridview.
I captured the coordinates of the cell and the datagrid like this:
And on Doubleclick event I want to return on the cell where i was i this way
I see that the function only highlights the cell. I can not move in the next cell if I press the Tab key
Use sendkeys to skip the Tabindex (
), it seems too difficult, because the datagridview could contain variable rows. To go to the dgw3 must first pass through the dgw1 and dgw2.
Any idea how to solve this problem?
I'm new here and I hope to be helped on this problem
I have a windows form with 8 textboxes, 3 datagridview (dgw1, dgw2, dgw3) and a picturebox
When entering the data, I have to click out of the current DataGridview3 (lose focus) to select a picturebox. After two clicks I need to go back into the cell where I was this datagridview.
I captured the coordinates of the cell and the datagrid like this:
VB.NET:
Private Sub DataGridView3_CellEnter(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView3.CellEnter
datagridname = DataGridView3.Name
col = e.ColumnIndex
row = e.RowIndex
End Sub
And on Doubleclick event I want to return on the cell where i was i this way
VB.NET:
DataGridView3.CurrentCell = DataGridView3(col, row)
I see that the function only highlights the cell. I can not move in the next cell if I press the Tab key
Use sendkeys to skip the Tabindex (
VB.NET:
SendKeys.Send("{TAB 3}")
Any idea how to solve this problem?