12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Drawing.Drawing2D;
- using System.Runtime.InteropServices;
- using System.Text;
- using System.Text.RegularExpressions;
- using System.Windows.Forms;
- using System.Windows.Forms.DataVisualization.Charting;
- using System.Web.ClientServices;
- using UAS_MES.CustomControl.DataGrid_View;
- using UAS_MES.DataOperate;
- using UAS_MES.PublicForm;
- using UAS_MES.PublicMethod;
- using System.Net;
- using System.IO;
- using System.Reflection;
- using System.Threading;
- using UAS_MES.CustomControl;
- using System.IO.Ports;
- using System.Net.Sockets;
- namespace UAS_MES
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- timer1.Interval = 1000;
- timer1.Tick += Timer1_Tick;
- }
- private void Form1_Load(object sender, EventArgs e)
- {
- document.Load(@"H:\PDFView4NET 5.0.1 WinForms Edition\SupportFiles\multicolumntextandimages.pdf");
- pageView.PageDisplayLayout = 0;
- timer1.Start();
- }
- private void Timer1_Tick(object sender, EventArgs e)
- {
- pageView.GoToNextPage();
- if (document.PageCount - 1 == pageView.PageNumber)
- {
- pageView.GoToFirstPage();
- //设置滚动的范围
- //pageView.ScrollPosition;
- Thread.Sleep(1000);
- }
- }
- }
- }
|