Пример #1
0
        private void button5_Click(object sender, EventArgs e)
        {
            Albums_guest newForm = new Albums_guest(this.numeArtist);

            newForm.FormClosed += new FormClosedEventHandler(closeForm);
            this.Hide();
            newForm.Show();
            newForm.Left = this.Left;
            newForm.Top  = this.Top;
        }
Пример #2
0
        private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            string numeArtist = Convert.ToString(listBox1.SelectedItem);

            if (numeArtist != "")
            {
                Albums_guest newForm = new Albums_guest(numeArtist);
                newForm.FormClosed += new FormClosedEventHandler(closeForm);
                this.Hide();
                newForm.Show();
                newForm.Left = this.Left;
                newForm.Top  = this.Top;
            }
        }