Skip to content

Wisej4 Menubar Item Design #4761

Closed
Closed

Description

@itg-assistant

Ottilie Steinhauer asked 2025-04-22 14:07:06 UTC

Hello,

using a MenuBar I need a MenuItem called Spacer to have some MenuItems on the left and one at the right side of the bar. That works fine, Spacer is disabled, works too. But on mouse hover Spacer changes its back color, but should not. How to solve this?

At WindowsForms I didn't need any spacer, I set alignment of ToolStrip - MenuItem to left or right.

Kind regards

Ottilie

Activity

  1. itg-assistant commented on Jun 16, 2026

    @itg-assistant
    Author

    Julie (ITG) answered 2025-04-22 16:40:34 UTC

    I'm not sure how yours is set up, but when I try to reproduce, the spacer does not change back color on hover. See my sample.

    -Julie

  2. itg-assistant commented on Jun 16, 2026

    @itg-assistant
    Author

    Ottilie Steinhauer answered 2025-04-23 06:17:14 UTC

    Hello Julie,

    thank you very much for the quick reply. I have looked at your code, my scenario is slightly different, but I have found the error.

    • I'm using vb.net

    • and Wisej WebPage not WebDesktop

    But that shouldn't be relevant. I opened the Page1.vb[Design] designer view -> Properties -> MenuBar ->MenuItems(Collection) ->spacer and set Enabled to False. Thought that was it.

    With the help of your code I regocnized that at the file Page1.Designer.vb the line

    Me.spacer.Enabled = False
    

    is missing. Add this and the problem is solved.

    But now it becomes strange. Opening the Page1.vb[Design] designer view  again, navigating to spacer -> Enabled = True. Leaving the dialog on OK or on Cancel

    Me.spacer.Enabled = False
    

    is missing again at  Page1.Designer.vb.

    For now, I will pay careful attention on Page1.Designer.vb and the problem is solved for me.

    Ottilie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GeneralQuestions, how-tos and everything else.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions