We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Model does not fully expand to size of Diagram control

Thread ID:

Created:

Updated:

Platform:

Replies:

74161 Jun 2,2008 10:28 AM Jun 3,2008 11:15 AM Windows Forms 3
loading
Tags: Diagram
Mark Attridge
Asked On June 2, 2008 10:28 AM

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.Nagarajan [Syncfusion]
Replied On June 3, 2008 08:06 AM

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.Nagarajan [Syncfusion]
Replied On June 3, 2008 08:07 AM

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


Mark Attridge
Replied On June 3, 2008 11:15 AM

This is very helpful. Thank you.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;