コード例 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            FrmEntries frm1 = new FrmEntries();

            frm1.Show();
            this.Hide();
        }
コード例 #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            FrmEntries form1 = new FrmEntries();

            form1.StartPosition = FormStartPosition.CenterScreen;
            Icon myIcon = new Icon(Application.StartupPath + "\\ico1.ico");

            this.Icon = myIcon;
            this.Text = "Hospital Project By: Mustafa Alparslan Pamuk";
            btndoctor.BackgroundImageLayout    = ImageLayout.Stretch;
            btnpatient.BackgroundImageLayout   = ImageLayout.Stretch;
            btnsecretary.BackgroundImageLayout = ImageLayout.Stretch;
            pictureBox1.BackgroundImageLayout  = ImageLayout.Stretch;
            pictureBox2.BackgroundImageLayout  = ImageLayout.Stretch;
            btndoctor.Image    = Image.FromFile(Application.StartupPath + "\\doc1.gif");
            btnpatient.Image   = Image.FromFile(Application.StartupPath + "\\pat1.gif");
            btnsecretary.Image = Image.FromFile(Application.StartupPath + "\\sec3.gif");
            pictureBox1.Image  = Image.FromFile(Application.StartupPath + "\\hos1.gif");
            pictureBox2.Image  = Image.FromFile(Application.StartupPath + "\\new3.gif");
        }