Try this:
void
ExRichTextb_MouseWheel(object sender, System.Windows.Forms.MouseEventArgs e)
{
if (ZoomFact != currentZoomFactor)
base.ZoomFactor = currentZoomFactor;
}
where ZoomFact is ,
public float ZoomFact
{
get
{
return base.ZoomFactor;
}
set
{
base.ZoomFactor = value;
}
}
and
currentZoomFactor =
base.ZoomFactor; //initialize this in the constructor of your RichTextBox.
where currentZoomFactor is 1.0f;