How can I reset the layout on a button click? I need to be able to bring back closed and collapsed Docks, I have everything coming from the database (state and controls). I tried clearing out the state per that user but I think I need to do it in a different lifecycle event because it keeps coming back. The reset layout sub just clears out that users record and therefore returns a default state but somehow it goes back to the original, I assume I need to do it in a different event?
Here is the code
| Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click
| Dim ContactID As Integer = Int32.Parse(Utilities.GetSession("ContactNumber").ToString())
| End Sub