private void Test1_Load(object sender, EventArgs e) { t1ttL.Location = new Point(300, 50); t2ttL.Location = new Point(310, 50); t3ttL.Location = new Point(310, 50); CurrentScoreLabel.Parent = ScoreRichTextBox; CurrentScoreLabel.Location = new Point(85, 800); ScoreRichTextBox.Parent = Gamepanel; ScoreRichTextBox.Location = new Point(1292, 0); t1t1L.Location = new Point(170, 45); t1t2L.Location = new Point(150, 45); t1t3L.Location = new Point(180, 45); t1t4L.Location = new Point(180, 45); t1t5L.Location = new Point(160, 45); t2t1L.Location = new Point(130, 45); t2t2L.Location = new Point(130, 45); t2t3L.Location = new Point(130, 45); t2t4L.Location = new Point(130, 45); t2t5L.Location = new Point(150, 45); t2t6L.Location = new Point(130, 45); t3t1L.Location = new Point(150, 45); FileSystemWatcher fWatcher = new FileSystemWatcher(); fWatcher.Path = path + "\\"; fWatcher.Filter = "log.txt"; fWatcher.NotifyFilter = NotifyFilters.Size; fWatcher.Changed += new FileSystemEventHandler(Changed); fWatcher.EnableRaisingEvents = true; MyUDPSocket.Receive(); }
public Test() { InitializeComponent(); this.DoubleBuffered = true; SetStyle(System.Windows.Forms.ControlStyles.UserPaint, true); SetStyle(System.Windows.Forms.ControlStyles.AllPaintingInWmPaint, true); SetStyle(System.Windows.Forms.ControlStyles.DoubleBuffer, true); SetStyle(System.Windows.Forms.ControlStyles.SupportsTransparentBackColor, true); SetStyle(System.Windows.Forms.ControlStyles.ResizeRedraw, true); MyUDPSocket.Init(); }