Results 1 to 40 of 1650

Thread: VBFlexGrid Control (Replacement of the MSFlexGrid control)

Hybrid View

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,728

    Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Quote Originally Posted by vb6nostalgia View Post
    Thanks!
    what I need is to not receive focus.

    example: On press enter or right arrow key move to next col enabled
    Attachment 189242
    Try the BeforeRowColChange event. That's for the caret.
    There are also BeforeSelChange event.

  2. #2
    New Member
    Join Date
    Oct 2023
    Posts
    9

    Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Quote Originally Posted by Krool View Post
    Try the BeforeRowColChange event. That's for the caret.
    There are also BeforeSelChange event.
    thank you! I had only tried Before RowColChange, with your indication I understood better how to implement that operation.

    that did the job.

    Code:
    Private Sub table1_BeforeRowColChange(ByVal NewRow As Long, ByVal NewCol As Long, Cancel As Boolean)
       If NewCol = 2 Then
          Cancel = True
          table1.Col = 3
       End If
    End Sub
    
    Private Sub table1_BeforeSelChange(ByVal NewRowSel As Long, ByVal NewColSel As Long, Cancel As Boolean)
       If NewColSel = 2 Then
          Cancel = True
       End If
    End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width