18.04.2015 Views

ArcGIS Engine Developer Guide

ArcGIS Engine Developer Guide

ArcGIS Engine Developer Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

BUILDING APPLICATIONS WITH WINDOWS CONTROLS<br />

Handling form resize<br />

When the form is resized at run time the PageLayoutControl and MapControl do<br />

not automatically resize themselves. To resize the controls so that they always fill<br />

the extent of the form, you must anchor the controls to the form. If the<br />

PageLayoutControl or MapControl contain a lot of data, redrawing this data<br />

during the Form_Resize can be costly. To increase performance you can suppress<br />

the data redraw until the resizing is complete. During the resize a stretched<br />

bitmap will be drawn instead.<br />

1. Display the form in design mode and select axPageLayoutControl1 from the<br />

Properties window. Click the anchor property and anchor the<br />

axPageLayoutControl to the top, left, bottom, and right of the form.<br />

2. Anchor the axMapControl to the top, left, and bottom of the form.<br />

338 • <strong>ArcGIS</strong> <strong>Engine</strong> <strong>Developer</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!