As for the code syntax below:
MESForm(nt sure about the name).Controls.Remove(btnHelp)
I don't know how to use it. The compiler does not even recognize MESForm and etc.
Thanks for your time.
As for the code syntax below:
MESForm(nt sure about the name).Controls.Remove(btnHelp)
I don't know how to use it. The compiler does not even recognize MESForm and etc.
Thanks for your time.
Does anyone know how to hide the Epicor buttons via MES. I went into the properties and set the Enabled to false and also the Visibility to false. Also, I did add the reference via code and set the enabled and visibility to false. Everytime I logout and log back in and clicking on the saved customization the buttons keeps showing.
On Tue, Jan 28, 2014 at 2:02 PM, <cyrilz199@...> wrote:<div> <p></p><p>Does anyone know how to hide the Epicor buttons via MES. I went into the properties and set the Enabled to false and also the Visibility to false. Also, I did add the reference via code and set the enabled and visibility to false. Everytime I logout and log back in and clicking on the saved customization the buttons keeps showing.<var></var></p>
</div> <div style="color:#fff;min-height:0;"></div>
Hello Jose. I just did that and closed the MES application.
Logging back in and selecting thesame Customization, the MES Menu comes right back reseting everythin back to normal.
Please note this is from memory and may contain syntax error.s
T: 904.469.1524 mobile
On Tue, Jan 28, 2014 at 4:00 PM, <cyrilz199@...> wrote:<div> <p></p><p>Hello Jose. I just did that and closed the MES application.</p><p> </p><p>Logging back in and selecting thesame Customization, the MES Menu comes right back reseting everythin back to normal.<var></var></p>
</div> <div style="color:#fff;min-height:0;"></div>
Yes this is done on a built in menu (MES)
I added the code below:
this.btnHelp = (Epicor.Mfg.UI.FrameWork.EpiButton)csm.GetNativeControlReference("b0fa77a4-6c41-47af-81b0-839436338b37");
The code below was added in the InitializeCustomCode() and MESMenu_Load
this.btnHelp.Location = new Point(-100,-100);
I even traced it in VS 2010, Epicor was still over writing the X and Y location.
On Wed, Jan 29, 2014 at 10:40 AM, <cyrilz199@...> wrote:<div> <p></p><p>Yes this is done on a built in menu (MES)</p><p> </p><p>I added the code below:</p><p>this.btnHelp = (Epicor.Mfg.UI.FrameWork.EpiButton)csm.GetNativeControlReference("b0fa77a4-6c41-47af-81b0-839436338b37");</p>
The code below was added in the InitializeCustomCode() and MESMenu_Load
this.btnHelp.Location = new Point(-100,-100);
I even traced it in VS 2010, Epicor was still over writing the X and Y location.
</div> <div style="color:#fff;min-height:0;"></div>
Have you tried just putting -100, -100 in the Properties Location Tab for the button. No coding needed. This is what I do.
Then I clear my cache and open it up again.
Miguel A. Santillan
Compass Manufacturing Systems
510-661-6666 Office
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
On Behalf Of Jose Gomez
Sent: Wednesday, January 29, 2014 7:42 AM
To: Vantage
Subject: Re: [Vantage] RE: Epicor 905 MES Customization
That's very strange... try MESForm(nt sure about the name).Controls.Remove(btnHelp)
Jose C Gomez
Software Engineer
T:
904.469.1524 mobile
Quis custodiet ipsos custodes?
On Wed, Jan 29, 2014 at 10:40 AM, <cyrilz199@...> wrote:
Yes this is done on a built in menu (MES)
I added the code below:
this.btnHelp = (Epicor.Mfg.UI.FrameWork.EpiButton)csm.GetNativeControlReference("b0fa77a4-6c41-47af-81b0-839436338b37");
The code below was added in the InitializeCustomCode() and MESMenu_Load
this.btnHelp.Location = new Point(-100,-100);
I even traced it in VS 2010, Epicor was still over writing the X and Y location.
On Wed, Jan 29, 2014 at 10:40 AM, <cyrilz199@...<mailto:cyrilz199@...>> wrote:
Yes this is done on a built in menu (MES)
I added the code below:
this.btnHelp = (Epicor.Mfg.UI.FrameWork.EpiButton)csm.GetNativeControlReference("b0fa77a4-6c41-47af-81b0-839436338b37");
The code below was added in the InitializeCustomCode() and MESMenu_Load
this.btnHelp.Location = new Point(-100,-100);
I even traced it in VS 2010, Epicor was still over writing the X and Y location.
[Non-text portions of this message have been removed]
Jose this is what I did. The code below worked for the Help button.
private void MESMenu_Load(object sender, EventArgs args)
{
// Add Event Handler Code
//this.btnHelp.PerformClick();
this.btnHelp.Location = new Point(-100,-100);
this.btnHelp.Size = new Size(0,0);
this.btnHelp.Visible = false;
}
For the rest of the other buttons I could not hide, I placed them at the back of the buttons I am using by simply positoning the buttons thesame and sending the ones I don't use to the back ( right click and send to back).
---In vantage@yahoogroups.com, <jose@...> wrote:That's very strange... try MESForm(nt sure about the name).Controls.Remove(btnHelp)
Jose C GomezSoftware Engineer
T: 904.469.1524 mobile
Quis custodiet ipsos custodes?On Wed, Jan 29, 2014 at 10:40 AM, <cyrilz199@...> wrote:Yes this is done on a built in menu (MES)
I added the code below:
this.btnHelp = (Epicor.Mfg.UI.FrameWork.EpiButton)csm.GetNativeControlReference("b0fa77a4-6c41-47af-81b0-839436338b37");
The code below was added in the InitializeCustomCode() and MESMenu_Load
this.btnHelp.Location = new Point(-100,-100);
I even traced it in VS 2010, Epicor was still over writing the X and Y location.