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:[email protected]] On Behalf Of John
Weller
Sent: Friday, October 13, 2017 9:40 AM
To: [email protected]
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:[email protected]] On Behalf Of
> Dave Crozier
> Sent: 13 October 2017 13:33
> To: [email protected]
> 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]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to