投稿日 | : 2004/03/25(Thu) 13:46 |
投稿者 | : GOD |
URL | : |
タイトル | : Re: Validateについて |
私の環境(Win2K+SP4, VB6+SP5)では両方とも発生していませんでしたよ。
VBにサービスパックとか当ててますか?
コードが違うのかな?
以下、確認したコード
Option Explicit
Private Sub Form_Load()
Command1.CausesValidation = False
Form1.KeyPreview = True
End Sub
Private Sub Form_KeyPress(KeyAscii As Integer)
'Command1.Value = True
Call Command1_Click
End Sub
Private Sub Text1_Validate(Cancel As Boolean)
Debug.Print "Text1_Validate"
End Sub
Private Sub Text2_Validate(Cancel As Boolean)
Debug.Print "Text2_Validate"
End Sub
Private Sub Command1_Click()
Debug.Print "Command1_Click"
End Sub