Discussion:
Putting a control at the opening of any forms
(too old to reply)
Zsolt Peter
2010-11-09 16:43:10 UTC
Permalink
I want to put a control (some kind of user check) when any form opens - I think I should put this code in the parents of all forms, which is the FormRun class. But as it's a system class, I can't modify it.

Is there any way to modify any function in the FormRun class or build this control in, so it works on every form? (I don't want to overwrite all form's classdeclaration or any other function... :P)

Thank in advance!
PZs

Submitted via EggHeadCafe
Excel Tips: Net Present Value (NPV) and Internal Rate of Return (IRR)
http://www.eggheadcafe.com/tutorials/aspnet/e426181a-90f1-4bdb-a58a-ef76c7e7cc85/excel-tips-net-present-value-npv-and-internal-rate-of-return-irr.aspx
Axtadka Dynamics AX
2011-01-11 13:03:29 UTC
Permalink
Instead you can use SysFormRun class and override its init method and add your check/validation.

Hope it works

AxTadka
http://axtadka.blogspot.com
Post by Zsolt Peter
I want to put a control (some kind of user check) when any form opens - I think I should put this code in the parents of all forms, which is the FormRun class. But as it's a system class, I can't modify it.
Is there any way to modify any function in the FormRun class or build this control in, so it works on every form? (I don't want to overwrite all form's classdeclaration or any other function... :P)
Thank in advance!
PZs
Submitted via EggHeadCafe
Stock Quotes via jQuery-enabled WCF Service, JSON, and jQuery Templates
http://www.eggheadcafe.com/tutorials/aspnet/9c157185-9ded-4352-8311-73153d9d1297/stock-quotes-via-jqueryenabled-wcf-service-json-and-jquery-templates.aspx
Loading...