Example #1
0
 private void c1SizerLight1_SizingFont(object sender, C1.Win.C1Sizer.C1SizerLightEventArgs e)
 {
     if (e.Control is Button)
     {
         e.Cancel = true;
     }
 }
Example #2
0
 // 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;
     }
 }
Example #3
0
 // 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;
     }
 }