Cannot get DockPanel Text Property to properly update.
If I create a DockPanel and set the "Text" property it works, but if I then want to change the "Text" property I have to click on the panel before the change is visible. Looking at the panel in debug the Text property has updated but does not show until pane is clicked (or button clicked a second time - will see 1st update).
To reproduce:
Add docking manager to form
Add dockPanel
Add button to dockPanel
Add this code to button click event:
dockPanel1.Text = DateTime.Now.ToString("hhmmss");
What am I doing wrong? Thanks
If I create a DockPanel and set the "Text" property it works, but if I then want to change the "Text" property I have to click on the panel before the change is visible. Looking at the panel in debug the Text property has updated but does not show until pane is clicked (or button clicked a second time - will see 1st update).
To reproduce:
Add docking manager to form
Add dockPanel
Add button to dockPanel
Add this code to button click event:
dockPanel1.Text = DateTime.Now.ToString("hhmmss");
What am I doing wrong? Thanks