假设MSHFlexGrid控件名为mfg1:
在mfg1_DblClick事件中,用mfg1.row属性获取所选的行,再用mfg1.textmatrix(行,列)获取对应单元格的内容,将其存入各个对应文本框中就行了。
Private Sub MSHFlexGrid1_DblClick()
With MSHFlexGrid1
Text1.Text = .TextMatrix(.Row, 0)
Text2.Text = .TextMatrix(.Row, 1)
Text3.Text = .TextMatrix(.Row, 2)
End With
End Sub