我知道讓TEXTBOX內的文字反白是
Private Sub Text1_GotFocus()
Text1.SelStart = 0
Text1.SelLength = Len(Text1.Text)
End Sub
但是我不知道如何讓MSFlexGrid儲存格的字反白
請各位大賜教!
2006-06-30 09:39:56 · 1 個解答 · 發問者 鳴 5 in 電腦與網際網路 ➔ 程式設計
我目前是用
Form1.MSFlexGrid1.Row = a
Form1.MSFlexGrid1.Col = b
Form1.MSFlexGrid1.CellBackColor = RGB(100, 200, 45)
2006-06-30 09:45:12 · update #1
可以改用別的嗎?
2006-06-30 09:46:13 · update #2
'試試這種方法Private Sub Command1_Click() With MSFlexGrid1 .FocusRect = 0: .HighLight = 2 .Row = 1: .Col = 1: .SetFocus End WithEnd Sub
2006-07-01 10:53:29 · answer #1 · answered by W.J.S. 7 · 0⤊ 0⤋