private void c1SizerLight1_SizingFont(object sender, C1.Win.C1Sizer.C1SizerLightEventArgs e) { if (e.Control is Button) { e.Cancel = true; } }
// only resize fonts for button controls private void _sizerLight_ResizingFont(object sender, C1.Win.C1Sizer.C1SizerLightEventArgs e) { if (!(e.Control is System.Windows.Forms.Button)) { e.Cancel = true; } }
// disable font resizing for specific controls on the form private void _sizerLight_ResizingFont(object sender, C1.Win.C1Sizer.C1SizerLightEventArgs e) { // do not resize the font for the rich text box if (e.Control == richTextBox1) { e.Cancel = true; } }