Home > Back-end >  E2316 'BTN' is not a member of 'TMainForm'
E2316 'BTN' is not a member of 'TMainForm'

Time:09-15

MainForm - & gt; BTN - & gt; The Visible=getShowBtn;
MainForm - & gt; BTN - & gt; Enabled=getShowBtn;
MainForm - & gt; BTN - & gt; The Visible=true;
MainForm - & gt; BTN - & gt; Enabled=true;

At the wrong at compile time how to solve

CodePudding user response:

MainForm - & gt; Btn_OutPut - & gt; The Visible=true;

CodePudding user response:

Check the header file class TMainForm with members form controls name,
It is best not to write MainForm - & gt; With this - & gt;

CodePudding user response:

refer to the second floor ooolinux response:
check the header file class TMainForm, there are members of form controls name,
It is best not to write MainForm - & gt; With this - & gt;

Header files are TToolButton * btn_OutPut and void __fastcall btn_OutPutClick (TObject * Sender);

CodePudding user response:

refer to the second floor ooolinux response:
check the header file class TMainForm, there are members of form controls name,
It is best not to write MainForm - & gt; With this - & gt;

Then it is in another form with calls to this function, so use of MainForm - & gt;

CodePudding user response:

The Name of the window are MainForm right?

CodePudding user response:

1/f, has written, isn't it? MainForm - & gt; Btn_OutPut - & gt; The Visible=true;
BTN btn_OutPut instead
  • Related