Пример #1
0
 private void HideTipsSub()
 {
     try
     {
         while (TipsBox.Left < TipsBox.Parent.Width)
         {
             TipsBox.Left += 15;
             TipsBox.Refresh();
             Thread.Sleep(10);
         }
         TipsBox.Left = TipsBox.Parent.Width;
     }
     catch { }
 }
Пример #2
0
 private void ShowTipsSub()
 {
     try
     {
         while (TipsBox.Left > TipsBox.Parent.Width - TipsBox.Width)
         {
             TipsBox.Left -= 15;
             TipsBox.Refresh();
             Thread.Sleep(10);
         }
         TipsBox.Left = TipsBox.Parent.Width - TipsBox.Width + 1;
     }
     catch { }
 }