ControlToPaginate Property

Sets or returns the control on the form that can be paginated. The default is null.

public Control ControlToPaginate {
   get,
   set
}

Remarks

The ControlToPaginate property is used to allow a single control on a form to paginate, even when the form's Paginate property is set to false. This allows individual controls to be paginated instead of the entire form.

Example

The following example demonstrates how to use the ControlToPaginate property to specify which control to paginate.

Sub Form_Activate(sender As Object, e As EventArgs)

   Form1.Paginate = False
   Form1.ControlToPaginate = TextView1

End Sub 


[C#]
void Form_Activate(object sender, EventArgs e)
{
   Form1.Paginate = false;
   Form1.ControlToPaginate = TextView1;
}   

See Also

Applies to: Form Class