Print Page | Close Window

FlatEdit setmask problems

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=20564
Printed Date: 06 October 2024 at 12:27am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: FlatEdit setmask problems
Posted By: Gianni62
Subject: FlatEdit setmask problems
Date Posted: 30 January 2013 at 3:27pm
Hi
I'm testing codejock control and I have a problem with SetMask method and flatedit in VB6.
When I use SetMask Method, the flatedit event KeyPress is never raised.
Also some keys (like BackSpace,Del),work only in the event keyUp and not in KeyDown.

If I remove SetMask everything works fine.

Try in an empty project
 
Private Sub TC_KeyPress(KeyAscii As Integer)
End Sub
Private Sub Form_Load()
TC.SetMask "00:00:00:00", "__:__:__:__"
End Sub
Private Sub TC_KeyDown(KeyCode As Integer, Shift As Integer)
End Sub
Private Sub TC_KeyUp(KeyCode As Integer, Shift As Integer)
End Sub
Run the Project and Press Backspace in flatedit control .
 
The events KeyDown and KeyPress are not raised
Try to comment SetMask and try again.
Now the events KeyDown and KeyPress are raised.

It's a bug or I'm missing something?

Regards
Gianni



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