Imports Infragistics.Win Imports Infragistics.Win.UltraWinSchedule Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ' If the CurrentTimeIndicatorVisible property resolves to false, ' set it to DefaultableBoolean.True If Not Me.UltraDayView1.CurrentTimeIndicatorVisibleResolved Then Me.UltraDayView1.CurrentTimeIndicatorVisible = DefaultableBoolean.True End If End Sub
using Infragistics.Win; using Infragistics.Win.UltraWinSchedule; private void button1_Click(object sender, System.EventArgs e) { // If the CurrentTimeIndicatorVisible property resolves to false, // set it to DefaultableBoolean.True if ( ! this.ultraDayView1.CurrentTimeIndicatorVisibleResolved ) this.ultraDayView1.ApCurrentTimeIndicatorVisible = DefaultableBoolean.True; }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2