Beispiel #1
0
 private void memBtn_Click(object sender, EventArgs e)
 {
     if (memView.Visible)
     {
         memView.Hide();
     }
     else
     {
         memView.Show();
     }
     memView.Location = new Point(Location.X + Width, Location.Y);
 }
Beispiel #2
0
 private void memeditMI_Click(object sender, EventArgs e)
 {
     if (memView.Visible)
     {
         memView.Hide();
     }
     else
     {
         memView.Show();
     }
     if (IsOnScreen(new Point(Location.X + Width + 20, Location.Y - 20)))
     {
         memView.Location = new Point(Location.X + Width, Location.Y);
     }
 }