C1OutBar C1CommandHolder1.Commands hide visible on run time

Posted by: saidnai on 25 March 2019, 7:35 am EST

    • Post Options:
    • Link

    Posted 25 March 2019, 7:35 am EST

    Dear all,

    I am trying to hide and Show the C1CommandHolder1.commands when the form is loaded according to the rights giving to each user. But if the right has changed. I Need to repaint or refrech or reload the C1OutBar.

    Is there a possibility to do it on runtime over a butto “Refrech rights” for example.

    Best regards

    Said Nai

  • Posted 26 March 2019, 6:09 am EST

    Hello Said,

    You can toggle the visibility of the commands on button click, as follows:

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
           cmdFileNew.Visible = Not (cmdFileNew.Visible)
           cmdFileOpen.Visible = Not (cmdFileOpen.Visible)
       End Sub
    
    

    Similarly, you can set user rights within the button and toggle the visibility of C1CommandHolder1.commands. This will display OutBar with the changed visibility settings, by default.

    Refer the attached application for your help. Let me know if you need further assistance.

    Regards,

    Esha

    ProgramOutBar_ToggleVisibility.zip

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels