(System.Windows.Forms.Form を継承したクラスで) Protected Overrides Function ProcessDialogKey(keyData As System.Windows.Forms.Keys) As Boolean Dim ret As Boolean If (((Keys.Enter = keyData) OrElse ((Keys.Enter Or Keys.Shift) = keyData)) AndAlso (Me.AcceptButton Is Nothing)) Then ret = Me.ProcessTabKey(Keys.None = (keyData And Keys.Shift)) Else ret = MyBase.ProcessDialogKey(keyData) End If Return (ret) End Function
匿名 2020/06/2 (Tue) 21:52:10
知りたいことが理解できました。ありがとうございます。