Print Page | Close Window

validate not fired?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=7314
Printed Date: 29 April 2024 at 2:27am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: validate not fired?
Posted By: Albert1
Subject: validate not fired?
Date Posted: 06 June 2007 at 4:57am
Why the validate event is not fired when I leave propertygrid by pressing the Tab key?.

In this example I have a propertygrid and a textbox


Private Sub Form_Load()
Dim Item As PropertyGridItem
   
    With PropertyGrid1
        .AddCategory "Category"
        .Categories(1).Expanded = True
        Set Item = .Categories(1).AddChildItem(PropertyItemString, "Item")
    End With
End Sub

Private Sub PropertyGrid1_Validate(Cancel As Boolean)
Stop
End Sub


Check it! All is ok with the mouse. With keyboard the program never stops.
Alberto




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net