Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
80
Updated to 2009.1 and now it doesn't work?
posted

How comes this doesn't work now? _toolbar is my form's UltraToolBarsManager. _btnXXXXX are assigned to _toolbar.Tools("key")

            _toolbar.BeginUpdate()

            Me._btnEditar.SharedProps.Visible = False

            Me._btnGuardar.SharedProps.Visible = True

            Me._btnCancelar.SharedProps.Visible = True

            Me._btnRecargar.SharedProps.Visible = False

            _toolbar.EndUpdate()

The buttons I set to visible doesn't appear, and the ones I set visible to false doesn't dissappear... this worked fine with 2008.3 ... any change I should know?¿

Parents
No Data
Reply
  • 5389
    Suggested Answer
    posted

    asin,

    When working with a particular instance of a tool, you should be setting the InstanceProps properties rather than the SharedProps properties, since the InstanceProps properties will override the SharedProps properties for that particular instance.  I recommend changing  your code to get a reference to the particular instance of the tools you are working with (either through a specific UltraToolbar's Tools collection or a RibbonGroup's Tools collection), and then setting the tool's InstanceProps.Visible property.

    Hope this helps,

    ~Kim~

Children
No Data