How can I force re-display the value of the Updown window?
I have an application in which there are several UpDown blocks for setting the values of the configuration file before downloading the file to the embedded device. I can download the configuration from the device and display the values in the corresponding UpDown windows.
However, if I delete the contents of the UpDown window and then update it, the value of the updown field will not be redrawn unless I increase or decrease the value using the built-in buttons.
Playback Actions:
- Launch the application.
- Remove value from UpDown window so that it does not display anything
- Change the value of UpDownBox.Value until the value is displayed.
- Incrementing or decreasing the UpDown window by using the buttons displays the correctly changed value.
I tried the following without changes .:
fenceNumberUpDown.Value = config.getFenceNumber();
fenceNumberUpDown.Refresh();
fenceNumberUpDown.Update();
fenceNumberUpDown.ResetText();
fenceNumberUpDown.Select();
fenceNumberUpDown.Hide();
fenceNumberUpDown.Show();
fenceNumberUpDown.Invalidate();
user209004
source
share