Spread Windows Forms 6.0 Product Documentation
ActiveSheetChanged Event
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FpSpread Class : ActiveSheetChanged Event


Glossary Item Box

Occurs when the user has changed the active sheet.

Syntax

Visual Basic (Declaration) 
Public Event ActiveSheetChanged As EventHandler
Visual Basic (Usage)Copy Code
Dim instance As FpSpread
Dim handler As EventHandler
 
AddHandler instance.ActiveSheetChanged, handler
C# 
public event EventHandler ActiveSheetChanged

Remarks

This event is raised by the OnActiveSheetChanged method when the user has changed the active sheet.

Example

This example raises the event when the user clicks on another sheet.
C#Copy Code
fpSpread1.Sheets.Count = 3;
fpSpread1.TabStripPolicy = FarPoint.Win.Spread.TabStripPolicy.Always;

private void fpSpread1_ActiveSheetChanged(object sender, System.EventArgs e)
{
     ListBox1.Items.Add("Active Sheet Changed.");
}
Visual BasicCopy Code
FpSpread1.Sheets.Count = 3
FpSpread1.TabStripPolicy = FarPoint.Win.Spread.TabStripPolicy.Always

Private Sub FpSpread1_ActiveSheetChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles FpSpread1.ActiveSheetChanged
     ListBox1.Items.Add("Active Sheet Changed.")
End Sub

Requirements

Target Platforms: 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

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.