Windows Events; Appear & Shown

0
0

We have a mixture of MDI and Modal windows that have buttons in a RibbonBar enabled / disabled according to properties of the fields displayed (Textboxes, NumericUpDowns etc.).

The problem we have is that the Form Shown event doesn’t seem to be getting called last, so buttons are being enabled when they shouldn’t be. We think that MDI forms show Appear last, Modal forms use Shown.

Is there any article that can clarify this please?

  • You must to post comments
0
0

This is the sample

Best,

Kevin(ITG)

  • You must to post comments
0
0

Hi Neil,

Can you send us an sample so that we can have a better view of the problem?

And which version of Wisej are you using?

Best,

Kevin (ITG)

  • Neil Hoskins
    Hi Kevin – that’s going to be really difficult – we’re using 2.5.36 of WiseJ. I’ll see if I can create a sample project to demonstrate it.
  • Neil Hoskins
    I’ve created a sample app and it’s not happening. I’m adding a lot of logging to see what’s being called and when. Will let you know soon.
  • Kevin
    • Kevin
    • Jun 6, 2022 - 2:34 pm
    Hi Niel, Appear is the even that fires last. Appear is fires by the browser after the element for the form is actually displayed to the user. Shown is fired on the server in the same cycle as the Load event. Load is fired when the form is shown but before Visible is true, Shown is fired after Visible is true. this is how Shown and Appear work. I send you a smal sample with that events
  • Neil Hoskins
    That’s great Kevin, thank you. I think the Appear event is working best for us, I have to code around it firing if the form is deactivated and activated but small price to pay for consistency.
  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.