- Public Sub ButtunClick(sender As Object,e As SpreadsheetGear.Windows.Forms.ShapeActionEventArgs)
- AW.WorkbookSet.GetLock()
- if e.shape.name="Button 1" then
- CF.Text = "#打印"
- Dim XHTimer As DispatcherTimer = New DispatcherTimer
- XHTimer.Interval = New TimeSpan(0, 0, 0, 1, 0)
- AddHandler XHTimer.Tick, Sub(s1, e1)
- ActiveWorkbook.WorkbookSet.GetLock()
- CF.Text = "#保存并新增"
- ActiveWorkbook.WorkbookSet.ReleaseLock()
- XHTimer.Stop()
- End Sub
- XHTimer.Start()
- End if
- AW.WorkbookSet.ReleaseLock()
- End Sub'按钮/标签点击事件
复制代码
|
|
hessen