回复 1楼kinglee6446的帖子
请使用以下代码测试:
- private void Form1_Load(object sender, EventArgs e)
- {
- this.fpSpread1.SetViewportLeftColumn(0, 0, 2);
- this.fpSpread1.LeftChange += fpSpread1_LeftChange;
- }
- void fpSpread1_LeftChange(object sender, FarPoint.Win.Spread.LeftChangeEventArgs e)
- {
- if (e.NewLeft<=1)
- {
- this.fpSpread1.SetViewportLeftColumn(0,0,2);
- }
- }
复制代码 |