Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
170
Resize a floating DockPane
posted

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

Parents
No Data
Reply Children