[SOLVED] GroupBox breaking CausesValidation |
Post Reply |
Author | |
daveb600Codejock
Newbie Joined: 30 November 2011 Status: Offline Points: 1 |
Post Options
Thanks(0)
Posted: 30 November 2011 at 11:07am |
Hi,
I have an issue where my custom user control, when placed on a group box, does not apply its validate event correctly (i.e. cancel = True to stop focus move). When the control is placed on a frame or on the form it validates correctly. I'm using version 13.4.2 but have tried it on 15.0.2. The issue only manifests itself when the control is on a GroupBox AND the button is a PushButton. If either or both are standard VB6 controls then there is no issue. The event order when the frame is a VB6 frame and button is standard or codejock is
But the event order when the frame is codejock and the button is standard or codejock is
The difference with this one however is that the codejock push button will execute the VB6 one will not. I think that it is something to do with the CausesValidation property. Its like the group box is killing it. I cannot use the standard VB6 frame however as the codejock group box fixes an intermittent paint issue when clicking on a frame and custom controls disappearing. I also cannot replace the buttons as they all have icons now. I've attached a very simple example of this in action. uploads/7217/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. I've tried placing the button in a frame, groupBox and pictureBox but this had no effect. I also tried placing the usercontrol text box which does the validation in a frame, groupBox and pictureBox as well. Has anyone got any ideas? This is for an app where a custom user control is used to force correct selection of data. We're starting to get lots of issues on our support desk where users have managed to enter invalid data because of this. Its taken me three days to figure this out so I'd take any solution at the moment :o) (Other than replace all the pushButtons / GroupBoxs) |
|
Hemesh
Senior Member Joined: 10 August 2010 Status: Offline Points: 135 |
Post Options
Thanks(0)
|
Comes back to a similar issue I had with the CommandBars and custom codejock controls being placed on there.. they didn't work, but standard vb6 ones did!
|
|
Product: Xtreme SuitePro (ActiveX) version 18.5.0
Platform: Windows 7 Enterprise (64-bit) Language: Visual Basic 6.0 |
|
ABuenger
Newbie Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
|
Hi,
this has been fixed for the next release. Andre |
|
Codejock support
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |