Node color.
Details
Date:7/21/2013 7:21:53 AM
Product:ActiveGanttVBN Gantt Chart / Scheduler Component
Framework:.Net Framework 4.0 / Visual Studio 2010
Version:3.0.3
User's Development Environment:Visual Basic .Net 2010
Subject:Node Color.
Question

What could I do to change the color of a highlighted row? At the moment, its color is set firmly with the red. I would like to have another color instead but I couldn't change this color. In the past, I used to use the property BackColor of clsNode to control this event, but this property has been no longer available for the latest versions.

Answer

Answer:

You can use the RowHighlightedBackColor property:

http://www.sourcecodestore.com/Documentation/Topic.aspx?PN=AG&PL=VBN&LID=325

And the Highlighted property of the Row object:

http://www.sourcecodestore.com/Documentation/Topic.aspx?PN=AG&PL=VBN&LID=1046

In the WBS Example in the demo you will find an example:


    Protected Overrides Sub OnLoad(ByVal e As System.EventArgs)

       ...

        ActiveGanttVBNCtl1.Configuration.RowHighlightedBackColor = Color.FromArgb(255, 176, 196, 222)

       ...

    End Sub

    Private Sub ActiveGanttVBNCtl1_NodeChecked(ByVal sender As Object, ByVal e As NodeEventArgs) Handles ActiveGanttVBNCtl1.NodeChecked
        Dim oRow As clsRow
        oRow = ActiveGanttVBNCtl1.Rows.Item(e.Index.ToString())
        oRow.Highlighted = oRow.Node.Checked
    End Sub

The above examples are for ActiveGanttVBN, but these properties are available in every version (VBA, VC, CSE, VBW, etc.). These properties were introduced in version 3.0.3.

 

All trademarks are property of their respective holders, and are only used to directly describe the products and services being provided. Their use in no way indicates any relationship or endorsement between The Source Code Store LLC and the holders of said trademarks.