Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - Tab Control Breaking Causing Validation
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Tab Control Breaking Causing Validation

 Post Reply Post Reply
Author
Message
DMoreland View Drop Down
Newbie
Newbie


Joined: 05 November 2012
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote DMoreland Quote  Post ReplyReply Direct Link To This Post Topic: Tab Control Breaking Causing Validation
    Posted: 05 November 2012 at 11:27am
Hi,

This is related to the issue 


If i place a user control in a tab control when i click the tab headers the validation events do not fire correctly allowing me to change tab. This happens if i host a user control inside the tab page or inside a group box in the tab page. This doesn't happen if i place the user control inside a frame on the tab page. 

When a user control is inside a group box the event order is 

TestControlGroupTab:txtData_Validate
TestControlGroupTab:UserControl_ExitFocus
TestControlGroupTab:txtData_LostFocus

When the User Control is in a frame the event order is 

TestControlFrameTab:txtData_Validate

When the user control is not in a frame or group box the event order is. 

TestControlNoParentTab:txtData_LostFocus
TestControlNoParentTab:txtData_Validate
TestControlNoParentTab:UserControl_ExitFocus
TestControlNoParentTab:UserControl_ExitFocus

I have attached an example appliction of this behaviour in action. uploads/7709/ControlValidationIssue.zip

Note. Do not click between the user controls as this will get stuck in a validation loop.
Note. The user control and app must be compiled (and run using this) to correctly highlight the issue.




Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.