Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21238

How can I set focus on a MSHflexGrid ?

$
0
0
Hi

I have a form with a 2-tab control and a separate MSHFlexGrid control on each tab.

On Load_Form event, I fill the FlexGrids with specific data.
After that, I want to set focus on the first row on first tab.

But when I try it a message raises up such as "Invalid procedure code or argument" with an error code 5.

This is the piece of my code :

Code:

With Ef_Class_Names

  .Enabled = False
  .Rows = .Rows - 1
  .Row = 1
  .Col = 0
  .SetFocus
  .Enabled = True

End With

Thans in advance

George

Viewing all articles
Browse latest Browse all 21238

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>