private void Form1_Load(object sender, System.EventArgs e)
{
//ボタン型セルを定義します
fpSpread1.ActiveSheet.Cells[1, 1].CellType = new FarPoint.Win.Spread.CellType.ButtonCellType();
}
private void fpSpread1_ButtonClicked(object sender, FarPoint.Win.Spread.EditorNotifyEventArgs e)
{
Console.WriteLine("セル(" + e.Row.ToString() + "," + e.Column.ToString() + ")のボタンがクリックされました");
}
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
'ボタン型セルを定義します
FpSpread1.ActiveSheet.Cells(1, 1).CellType = New FarPoint.Win.Spread.CellType.ButtonCellType
End Sub
Private Sub FpSpread1_ButtonClicked(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.EditorNotifyEventArgs) Handles FpSpread1.ButtonClicked
Console.WriteLine("セル(" + e.Row.ToString + "," + e.Column.ToString + ")のボタンがクリックされました")
End Sub