Preventing undo stack entries

Preventing undo stack entries

Post by Joey Calli » Fri, 15 Oct 2004 15:52:24


I have a radiobutton subclass component in my usercontrol. I have this
custom painting for the controls whether they are checked or unchecked. I
configured the GetHitTest method of my designer such that the necessary
radiobutton receives MouseUp event (which calls the OnClick and sets the
Checked property of the clicked radiobutton) at designtime. As a result,
the clicked radiobutton's Checked property is set to true at designtime and
I get the proper results to their appearances.

Problem is I get entries at the Undo stack (Change radiobutton.Checked) and
I don't want these entries to be undone. Any suggestions?