Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp .net event equivalent (aka vfp nostalgia)
Message
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Versions des environnements
Environment:
VB 8.0
OS:
Vista
Network:
Windows XP
Database:
Jet/Access Engine
Application:
Desktop
Divers
Thread ID:
01494224
Message ID:
01494233
Vues:
69
>>
>>It used to flush the keyboard. Still does. :)
>
>Yeah, I remembered after I posted. But, IAC, I'm afraid I don't know the answer. Have you come across a case where this is an issue?


Nothing that is not self-inflicted I guess. Here's my (famous? :) ) onCellEnter method in DGV base.
    Protected Overrides Sub OnCellEnter(ByVal e As System.Windows.Forms.DataGridViewCellEventArgs)
 '       If Me.Focused = True Then
            If CurrentCell.ReadOnly = True Then
                SendKeys.Send("{TAB}")
                Exit Sub
            End If
            If columnDisabled(e.ColumnIndex) = True Then
                SendKeys.Send("{TAB}")
                Exit Sub
            End If
'        End If
        MyBase.OnCellEnter(e)
    End Sub
Now before I tested me.focused this pushed tabs in the keyboard when one of the columns is "columnDisabled". As a consequence the cell selected is not the one I thought after I Me.STandaardDBindingSource.movefirst, but 20 cells further on the tab path, which looks kind of errrh... sloppy.
(someTextbox)validating (....)
(snip)
        For i As Integer = 1 To 20
            Me.(gridSubmitted)BindingSource.AddNew()
        Next
(snip)
end sub
Checking me.focused solved this, but keyboard clear would have a few hours earlier hehehehehe.

If things have the tendency to go your way, do not worry. It won't last. Jules Renard.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform