Hide

SftDirectory 3.5 - ActiveX File/Folder Control

Display
Print

Colors Sample (VB.NET)

This sample illustrates working with colors.

This is not an executable sample, so a complete project is not provided. These statements are intended to show the syntax used.

AxSftDirectory1.ActiveColumnBackColor = SystemColors.Highlight
AxSftDirectory1.ActiveColumnBackColor = Color.Red
AxSftDirectory1.ActiveColumnBackColor = ColorTranslator.FromWin32(&HFF&)
AxSftDirectory1.BackColor = SystemColors.Highlight
AxSftDirectory1.ForeColor = SystemColors.HighlightText
AxSftDirectory1.BackColor = Color.Red
AxSftDirectory1.ForeColor = Color.White
AxSftDirectory1.BackColor = ColorTranslator.FromWin32(&HFF&)
AxSftDirectory1.ForeColor = ColorTranslator.FromWin32(&HFFFFFF&)
AxSftDirectory1.ForeColorArchiveReady = SystemColors.Highlight
AxSftDirectory1.ForeColorArchiveReady = Color.Red
AxSftDirectory1.ForeColorArchiveReady = ColorTranslator.FromWin32(&HFF&)
AxSftDirectory1.ForeColorCompressed = SystemColors.Highlight
AxSftDirectory1.ForeColorCompressed = Color.Red
AxSftDirectory1.ForeColorCompressed = ColorTranslator.FromWin32(&HFF&)
AxSftDirectory1.ForeColorEncrypted = SystemColors.Highlight
AxSftDirectory1.ForeColorEncrypted = Color.Red
AxSftDirectory1.ForeColorEncrypted = ColorTranslator.FromWin32(&HFF&)
AxSftDirectory1.ForeColorHidden = SystemColors.Highlight
AxSftDirectory1.ForeColorHidden = Color.Red
AxSftDirectory1.ForeColorHidden = ColorTranslator.FromWin32(&HFF&)
AxSftDirectory1.ForeColorReadOnly = SystemColors.Highlight
AxSftDirectory1.ForeColorReadOnly = Color.Red
AxSftDirectory1.ForeColorReadOnly = ColorTranslator.FromWin32(&HFF&)
AxSftDirectory1.SelectBackColor = SystemColors.Highlight
AxSftDirectory1.SelectBackColor = Color.Red
AxSftDirectory1.SelectBackColor = ColorTranslator.FromWin32(&HFF&)
AxSftDirectory1.SelectForeColor = SystemColors.HighlightText
AxSftDirectory1.SelectForeColor = Color.White
AxSftDirectory1.SelectForeColor = ColorTranslator.FromWin32(&HFFFFFF&)
AxSftDirectory1.SelectBackColorNoFocus = SystemColors.Highlight
AxSftDirectory1.SelectBackColorNoFocus = Color.Red
AxSftDirectory1.SelectBackColorNoFocus = ColorTranslator.FromWin32(&HFF&)
AxSftDirectory1.SelectForeColorNoFocus = SystemColors.HighlightText
AxSftDirectory1.SelectForeColorNoFocus = Color.White
AxSftDirectory1.SelectForeColorNoFocus = ColorTranslator.FromWin32(&HFFFFFF&)
AxSftDirectory1.get_ColumnEntry(0).BackColor = Convert.ToUInt32(ColorTranslator.ToOle(SystemColors.Highlight) And &HFFFFFFFF&)
AxSftDirectory1.get_ColumnEntry(0).ForeColor = Convert.ToUInt32(ColorTranslator.ToOle(SystemColors.HighlightText) And &HFFFFFFFF&)
AxSftDirectory1.get_ColumnEntry(0).SelectBackColor = Convert.ToUInt32(ColorTranslator.ToOle(Color.White))
AxSftDirectory1.get_ColumnEntry(0).SelectForeColor = Convert.ToUInt32(&H0&)
AxSftDirectory1.CurrentFolder.BackColor = Convert.ToUInt32(ColorTranslator.ToOle(SystemColors.Control) And &HFFFFFFFF&)
AxSftDirectory1.CurrentFolder.ForeColor = Convert.ToUInt32(ColorTranslator.ToOle(Color.Black))
AxSftDirectory1.CurrentFolder.ForeColor = Convert.ToUInt32(&H0&)
AxSftDirectory1.Headers.BackColor = Convert.ToUInt32(ColorTranslator.ToOle(SystemColors.Highlight) And &HFFFFFFFF&)
AxSftDirectory1.Headers.ForeColor = Convert.ToUInt32(ColorTranslator.ToOle(SystemColors.HighlightText) And &HFFFFFFFF&)
AxSftDirectory1.Headers.GrayedColor = Convert.ToUInt32(ColorTranslator.ToOle(Color.Gray))
AxSftDirectory1.Headers.DarkEdgeColor = Convert.ToUInt32(ColorTranslator.ToOle(Color.Gray))
AxSftDirectory1.Headers.LightEdgeColor = Convert.ToUInt32(&HFF&)

Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.