Esempio n. 1
0
 private void pictureBox1_MouseClick(object sender, MouseEventArgs e)
 {
     foreach (Rectangle r in rects)
     {
         if (r.Contains(e.Location) && rects.IndexOf(r) == 0) // mailbox
         {
             mailbox mb = new mailbox();
             mb.Owner     = this;
             mb.MdiParent = MdiParent;
             mb.Show();
         }
         if (r.Contains(e.Location) && rects.IndexOf(r) == 1) // channels
         {
             channels chan = new channels();
             chan.Owner     = this;
             chan.MdiParent = MdiParent;
             chan.Show();
         }
         if (r.Contains(e.Location) && rects.IndexOf(r) == 2) // chat_list
         {
             chat_list cl = new chat_list();
             cl.Owner     = this;
             cl.MdiParent = MdiParent;
             cl.Show();
         }
         if (r.Contains(e.Location) && rects.IndexOf(r) == 3) // pictures
         {
             pictures p = new pictures();
             p.Owner     = this;
             p.MdiParent = MdiParent;
             p.Show();
         }
     }
 }
Esempio n. 2
0
        private void ChatNowStripMenuItem_Click(object sender, EventArgs e)
        {
            chat_list cl = new chat_list();

            cl.Owner     = this;
            cl.MdiParent = this;
            cl.Show();
        }