HeaderPane
Main
Hide
Share Link
Print

Sample3 Sample (C#)

This sample illustrates captions.

All properties are defined at design-time using the Property Dialogs, except the dark mode and high contrast settings.

The source code is located at C:\Program Files (x86)\Softelvdm\SftMask OCX 8.0\Samples\Visual Studio - CSharp\Sample3\Form1.cs.


        private void Command1_Click(object sender, System.EventArgs e)
        {
            Application.Exit();
        }

        private void Form1_Load(object sender, System.EventArgs e)
        {
            foreach (Control c in Controls) {
                AxSftMaskLib80.AxSftMask mask = c as AxSftMaskLib80.AxSftMask;
                if (mask != null) {
                    mask.DarkMode = SftMaskLib80.SftMaskDarkModeConstants.darkSftMaskAuto; // follow the Windows dark mode setting
                    mask.HighContrastMode = SftMaskLib80.SftMaskHighContrastConstants.highContrastSftMaskAuto; // follow the Windows High Contrast setting
                }
            }

        
        }
	}
}

Last Updated 11/15/2026 - (email)
© 2026 Softel vdm, Inc.