Say I have a flexgrid that is extremely large and requires scrollbars... if I want to select col=500 and row=500, is there anyway I can make the flexgrid "focus" this spot?
Printable View
Say I have a flexgrid that is extremely large and requires scrollbars... if I want to select col=500 and row=500, is there anyway I can make the flexgrid "focus" this spot?
VB Code:
Private Sub Command1_Click() With MSFlexGrid1 .Rows = 550 .Cols = 550 .Row = 500 .Col = 500 .SetFocus SendKeys "{RIGHT}" End With End Sub
Or without using SendKeys...
VB Code:
Private Sub Command1_Click() With MSFlexGrid1 .Row = 500 .Col = 500 .TopRow = 500 .LeftCol = 500 .SetFocus End With End Sub
Hey guys, thanks, it works... but it only seems to work if I set scrollbars to on... I really would prefer NOT to have scrollbars, so do any of you have any suggestions?