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
I just realized there is no email portal for the ticketing system, so you never got my email Monday.
That’s exactly what I needed. Mine didn’t compile either, I forgot you need to set size as an object and not the individual elements.
Hi M,
I am checking about the progress of this issue. Please let me know If you need any further assistance on this.
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.