I am trying to resize a dock pane to the height of my monitor when it changes to the floating dockstate.
However I get an error on e.Pane.DockAreaPane.Size.Height
"Expression is a value and therefore cannot be the target of an assignment. "
Here is the code.
Private Sub udm_Main_AfterDockChange(sender As Object, e As Infragistics.Win.UltraWinDock.PaneEventArgs) Handles udm_Main.AfterDockChange If e.Pane.DockedState = UltraWinDock.DockedState.Floating Then e.Pane.DockAreaPane.Size.Height = Screen.PrimaryScreen.WorkingArea.Height End If End Sub
Any suggestions on why I cant set this height property, maybe its the wrong property on the wrong object. Any help would be appreciated.
Thanks
M
Hi M,
I am surprised that you were able to compile this code at all, since I am not able to do so. I managed to achieve that by setting new size on the pane. Please take a look at my sample and let me know if it suits your needs.
I am checking about the progress of this issue. Please let me know If you need any further assistance on this.