Spread ASP.NET 6.0 Product Documentation
ActiveSheetChanged Event
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > FpSpread Class : ActiveSheetChanged Event


Glossary Item Box

Occurs when the user changes 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

Example

This example illustrates the use of the event.
C#Copy Code
FpSpread1.Sheets.Count = 3;

private void FpSpread1ActiveSheetChanged(object sender, System.EventArgs e) 
{
    TextBox1.Text = FpSpread1.ActiveSheetViewIndex.ToString();
}
Visual BasicCopy Code
FpSpread1.Sheets.Count = 3

Private Sub FpSpread1ActiveSheetChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles FpSpread1.ActiveSheetChanged
    TextBox1.Text = FpSpread1.ActiveSheetViewIndex.ToString()
End Sub

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.