I am trying to cause TButton Click event from within TListBox doubleclick event by simply calling:
Button1.Click;
I am always able to do that under Delphi XE and version below it, but now it is raising an error in Delphi Prism. The error message is "Cannot access underlying event field." So, how would you cause an event from within an event of another control for instance TListBox?
for instance:
method UnitSelectDialog.UnitListBox_DoubleClick(sender: System.Object; e: System.EventArgs);
begin
Okbtn.Click;
end;
The code above is same as if you clicked on the OK Tbutton on the form.