Remove base toolbar

Thanks a million.. I see my problems already.
I had an example I saved at some point from the group. I was not adding the assebly, was using just the form name after getType & also was try to take the "Or" literally...
--- In vantage@yahoogroups.com, "bw2868bond" <bwalker@...> wrote:
>
> Here is an example for Sales Order Entry:
> Add an Assembly Reference to Infragistics2.Win.UltraWinToolbars.v6.3.dll
>
> If you disable 'Tools' Menu, you will never get back into customization maintenance - beware!!
>
> You will need to change the name of the form to apply to different screens.
>
> '//**************************************************
> '// Custom VB.NET code for SalesOrderForm
> '// Created: 4/17/2009 1:32:16 PM
> '//**************************************************
> Imports System
> Imports System.Data
> Imports System.Diagnostics
> Imports System.Windows.Forms
> Imports System.ComponentModel
> Imports Microsoft.VisualBasic
> Imports Epicor.Mfg.UI
> Imports Epicor.Mfg.UI.FrameWork
> Imports Epicor.Mfg.UI.ExtendedProps
> Imports Epicor.Mfg.UI.FormFunctions
> Imports Epicor.Mfg.UI.Customization
> Imports Epicor.Mfg.UI.Adapters
> Imports Epicor.Mfg.UI.Searches
> Imports Epicor.Mfg.BO
> Imports System.Reflection
> Imports System.Collections
>
> Module Script
>
>
> '// ** Wizard Insert Location - Do Not Remove 'Begin/End Wizard Added Module Level Variables' Comments! **
> '// Begin Wizard Added Module Level Variables **
>
> '// End Wizard Added Module Level Variables **
>
>
> '// Add Custom Module Level Variables Here **
> dim tools as Infragistics.Win.UltraWinToolbars.UltraToolbarsManager
>
>
> Sub InitializeCustomCode()
>
>
> '// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Variable Intialization' lines **
> '// Begin Wizard Added Variable Intialization
>
> '// End Wizard Added Variable Intialization
> '// Begin Custom Method Calls
> dim obj as Object = GetType(Epicor.Mfg.UI.App.SalesOrderEntry.SalesOrderForm).InvokeMember("baseToolbarsManager", BindingFlags.Instance Or BindingFlags.GetField Or BindingFlags.NonPublic, Nothing, SalesOrderForm, Nothing)
> tools = ctype(obj,Infragistics.Win.UltraWinToolbars.UltraToolbarsManager)
> disableTools()
> '// End Custom Method Calls
> End Sub
>
> Sub disableTools()
>
> if tools.Tools.Exists("FileMenu")
> tools.Tools("FileMenu").SharedProps.Enabled = false
> end if
>
> if tools.Tools.Exists("EditMenu")
> tools.Tools("EditMenu").SharedProps.Enabled = false
> end if
>
> End Sub
>
> Sub DestroyCustomCode()
>
>
> '// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Object Disposal' lines **
> '// Begin Wizard Added Object Disposal
>
> '// End Wizard Added Object Disposal
> '// Begin Custom Code Disposal
>
> '// End Custom Code Disposal
> End Sub
>
>
> End Module
>
> --- In vantage@yahoogroups.com, "Michael McWilliams" <mmcwilliams22@> wrote:
> >
> > I want to remove the File, Edit, Tools etc from the Main menu. I would like to keep the standard tools, but would be nice to know how to edit them. This infragistics stuff kills me sometimes.
> >
> >
> >
> > --- In vantage@yahoogroups.com, Bernie Walker <bwalker@> wrote:
> > >
> > > Are you trying to remove all buttons and menus ?
> > >
> > > -----Original Message-----
> > > From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Michael McWilliams
> > > Sent: Wednesday, August 19, 2009 10:49 AM
> > > To: vantage@yahoogroups.com
> > > Subject: [Vantage] Remove base toolbar.
> > >
> > > Anyone know how I can remove the basetoolbarsmanager from a form using the script editor
> > >
> > >
> > >
> > >
> > > ------------------------------------
> > >
> > > Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have already linked your email address to a yahoo id to enable access. )
> > > (1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.
> > > (2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
> > > (3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
> > >
> >
>
Anyone know how I can remove the basetoolbarsmanager from a form using the script editor
Are you trying to remove all buttons and menus ?

-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Michael McWilliams
Sent: Wednesday, August 19, 2009 10:49 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Remove base toolbar.

Anyone know how I can remove the basetoolbarsmanager from a form using the script editor




------------------------------------

Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
I want to remove the File, Edit, Tools etc from the Main menu. I would like to keep the standard tools, but would be nice to know how to edit them. This infragistics stuff kills me sometimes.



--- In vantage@yahoogroups.com, Bernie Walker <bwalker@...> wrote:
>
> Are you trying to remove all buttons and menus ?
>
> -----Original Message-----
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Michael McWilliams
> Sent: Wednesday, August 19, 2009 10:49 AM
> To: vantage@yahoogroups.com
> Subject: [Vantage] Remove base toolbar.
>
> Anyone know how I can remove the basetoolbarsmanager from a form using the script editor
>
>
>
>
> ------------------------------------
>
> Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have already linked your email address to a yahoo id to enable access. )
> (1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.
> (2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
> (3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
>
Maybe using Styling



Dale E. Schuerman

Senior Consultant

Epicor Certified Consulting Partner



RAM Software Systems, Inc.

972-669-0763 x233 (voice)

972-669-9603 (fax)

mailto:dale.schuerman@...
<BLOCKED::blocked::mailto:dale.schuerman@...> (email)

http://www.ramsys.com <BLOCKED::blocked::http://www.ramsys.com/>
(website)





From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Michael McWilliams
Sent: Wednesday, August 19, 2009 9:49 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Remove base toolbar.





Anyone know how I can remove the basetoolbarsmanager from a form using
the script editor




########################################################################
Attention:
This email message is privileged and confidential. If you are not the
intended recipient please delete the message and notify the sender.
Any views or opinions presented are solely those of the author.

This email message has been scanned for Viruses and Content and cleared
by MailMarshal SMTP

For more information go to http://www.ramsys.com
########################################################################


[Non-text portions of this message have been removed]
Here is an example for Sales Order Entry:
Add an Assembly Reference to Infragistics2.Win.UltraWinToolbars.v6.3.dll

If you disable 'Tools' Menu, you will never get back into customization maintenance - beware!!

You will need to change the name of the form to apply to different screens.

'//**************************************************
'// Custom VB.NET code for SalesOrderForm
'// Created: 4/17/2009 1:32:16 PM
'//**************************************************
Imports System
Imports System.Data
Imports System.Diagnostics
Imports System.Windows.Forms
Imports System.ComponentModel
Imports Microsoft.VisualBasic
Imports Epicor.Mfg.UI
Imports Epicor.Mfg.UI.FrameWork
Imports Epicor.Mfg.UI.ExtendedProps
Imports Epicor.Mfg.UI.FormFunctions
Imports Epicor.Mfg.UI.Customization
Imports Epicor.Mfg.UI.Adapters
Imports Epicor.Mfg.UI.Searches
Imports Epicor.Mfg.BO
Imports System.Reflection
Imports System.Collections

Module Script


'// ** Wizard Insert Location - Do Not Remove 'Begin/End Wizard Added Module Level Variables' Comments! **
'// Begin Wizard Added Module Level Variables **

'// End Wizard Added Module Level Variables **


'// Add Custom Module Level Variables Here **
dim tools as Infragistics.Win.UltraWinToolbars.UltraToolbarsManager


Sub InitializeCustomCode()


'// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Variable Intialization' lines **
'// Begin Wizard Added Variable Intialization

'// End Wizard Added Variable Intialization
'// Begin Custom Method Calls
dim obj as Object = GetType(Epicor.Mfg.UI.App.SalesOrderEntry.SalesOrderForm).InvokeMember("baseToolbarsManager", BindingFlags.Instance Or BindingFlags.GetField Or BindingFlags.NonPublic, Nothing, SalesOrderForm, Nothing)
tools = ctype(obj,Infragistics.Win.UltraWinToolbars.UltraToolbarsManager)
disableTools()
'// End Custom Method Calls
End Sub

Sub disableTools()

if tools.Tools.Exists("FileMenu")
tools.Tools("FileMenu").SharedProps.Enabled = false
end if

if tools.Tools.Exists("EditMenu")
tools.Tools("EditMenu").SharedProps.Enabled = false
end if

End Sub

Sub DestroyCustomCode()


'// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Object Disposal' lines **
'// Begin Wizard Added Object Disposal

'// End Wizard Added Object Disposal
'// Begin Custom Code Disposal

'// End Custom Code Disposal
End Sub


End Module

--- In vantage@yahoogroups.com, "Michael McWilliams" <mmcwilliams22@...> wrote:
>
> I want to remove the File, Edit, Tools etc from the Main menu. I would like to keep the standard tools, but would be nice to know how to edit them. This infragistics stuff kills me sometimes.
>
>
>
> --- In vantage@yahoogroups.com, Bernie Walker <bwalker@> wrote:
> >
> > Are you trying to remove all buttons and menus ?
> >
> > -----Original Message-----
> > From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Michael McWilliams
> > Sent: Wednesday, August 19, 2009 10:49 AM
> > To: vantage@yahoogroups.com
> > Subject: [Vantage] Remove base toolbar.
> >
> > Anyone know how I can remove the basetoolbarsmanager from a form using the script editor
> >
> >
> >
> >
> > ------------------------------------
> >
> > Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have already linked your email address to a yahoo id to enable access. )
> > (1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.
> > (2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
> > (3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
> >
>