private void Form1_Load(object sender, EventArgs e)
{
FarPoint.Win.Spread.CellType.NumberCellType nmbrcell = new FarPoint.Win.Spread.CellType.NumberCellType();
nmbrcell.SpinButton = true;
fpSpread1.ActiveSheet.Cells[1, 1].CellType = nmbrcell;
// ボタン型セルとコンボボックス型セルのボタンのみ表示
fpSpread1.ButtonDrawMode = FarPoint.Win.Spread.ButtonDrawModes.AlwaysPrimaryButton | FarPoint.Win.Spread.ButtonDrawModes.AlwaysSecondaryButton;
}
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim nmbrcell As New FarPoint.Win.Spread.CellType.NumberCellType()
nmbrcell.SpinButton = True
FpSpread1.ActiveSheet.Cells(1, 1).CellType = nmbrcell
' ボタン型セルとコンボボックス型セルのボタンのみ表示
FpSpread1.ButtonDrawMode = FarPoint.Win.Spread.ButtonDrawModes.AlwaysPrimaryButton + FarPoint.Win.Spread.ButtonDrawModes.AlwaysSecondaryButton
End Sub