Create a button at runtime

ombackeombacke Member Posts: 44
edited 2005-08-03 in Dynamics AX
Hi,
I was able to create a button on a form at runtime. But now I want an action to occur when the button i created at runtime is clicked..
DOes anyone have any idea how to attach a button click to a runtime created button??

Comments

  • jinxjinx Member Posts: 10
    have a look at the form "tutorial_Form_AddControl".
    you can overload every method on a formcontrol, you have to use the syntax controlname_functionname.
    in your case, yourbutton_clicked

    regards
    jinx
Sign In or Register to comment.