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); }
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); } }