John,
Another way to handle this would be code in two places. First no code here. Set the ControlSource to the ActivePage property. Then in any control on the pages, add code to the UIENABLE event, when lEnable is true, THIS.Parent.Refresh()
We actually added to the PageFrame subclass, during the INIT, it adds a hidden control to each page. This control has that code in it.
Just another way to do it.
Tracy
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of John Weller Sent: Friday, October 13, 2017 9:40 AM To: profoxtech@leafe.com Subject: RE: Odd Behaviour
Thanks Dave. I've replaced the line with RaiseEvent(Thisform, "Refresh") and it works fine. I just need to wait for it to fail again :-) I'd not heard of RaiseEvent before, what can I expect to happen when it fails again?
I'm certain I haven't any subclassing although all my controls are subclasses of the originals but there is very little further code needed. The form has 2 methods to enable and disable all the controls on the form but I have been using them for years without any problem.
John
John Weller 01380 723235 07976 393631
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Dave Crozier Sent: 13 October 2017 13:33 To: profoxtech@leafe.com Subject: RE: Odd Behaviour
John, Just try and use RaiseEvent(Thisform, "Refresh")
I know it shouldn't cause any problem but it will allow you to trace into
it.
Sure you haven't got any form subclassing code somewhere?
Dave
[excessive quoting removed by server]