I am using version 6.2 of the Diagram control in VB (Windows Forms version).
My Diagram control will only contain 1 model, and therefore I would like for the model to fill the entire space of my Diagram. I have attempted to set Model.Size and Model.MinimumSize equal to Diagram.Size, but this doesn't seem to work. There always seems to be some of the Diagram background showing.
How can I expand the Model size so that none of the background is visible, especially when I allow scrolling to occur within the Diagram?
Thank you
J.
J.Nagarajan
Syncfusion Team
June 3, 2008 12:06 PM UTC
Hi Mark ,
Please use the below code snippet to hide the gray area outside of the diagram view.
Me.diagram1.ScrollVirtualBounds = New System.Drawing.RectangleF(0, 0, 0, 0)
Please let me know if this helps.
Regards,
Nagaraj
J.
J.Nagarajan
Syncfusion Team
June 3, 2008 12:07 PM UTC
Hi Mark ,
Please use the below code snippet to hide the gray area outside of the diagram view.
Me.diagram1.ScrollVirtualBounds = New System.Drawing.RectangleF(0, 0, 0, 0)
Please let me know if this helps.
Regards,
Nagaraj
MA
Mark Attridge
June 3, 2008 03:15 PM UTC
This is very helpful. Thank you.