I have an iGrid listing all open forms in my project.
When the user closes a form, the form name is removed from my iGrid.
I would then like my iGrid to load the previously selected form (user would normally click the cell in iGrid to load the form).
I have code like this so far:
If frmMainMDI.mGrid.SelectedCells.Count > 0 Then
y = frmMainMDI.mGrid.SelectedCells(0).RowIndex
frmMainMDI.mGrid.Rows.RemoveAt(y)
End If
'Need to emulate mGrid_CellClick event to load previous selected form
frmMainMDI.mGrid.Cells(y - 1, 0).Selected = True
frmMainMDI.mGrid.Cells(y - 1, 0).ImageIndex = 2 'selected icon
In listview I would use:
frmMainMDI.lvWin.Items(0).Selected = True
frmMainMDI.lvWin.Select()
Your help would be appreciated.
Thank you
Edited by user
2020-07-23T12:39:54Z
|
Reason: Not specified