K
K
Katyusha_melnich2021-05-14 21:08:53
Images
Katyusha_melnich, 2021-05-14 21:08:53

How to display the desired pictures in accordance with the pressed button on the same form?

using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Antonov
{
    public partial class Form40 : Form
    {
        public Form40()
        {
            InitializeComponent();
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Size = new Size(1530, 850);
            this.MaximumSize = new System.Drawing.Size(1530, 850);
            this.MinimumSize = new System.Drawing.Size(1530, 850);
        }

        private void Form40_Load(object sender, EventArgs e)
        {

        }

        private void label1_Click(object sender, EventArgs e)
        {

        }

        private void button5_Click(object sender, EventArgs e)
        {
            Form17 temp = new Form17();
            temp.Region = this.Region;
            temp.Show();
            this.Hide();
        }

        private void button6_Click(object sender, EventArgs e)
        {
            System.Diagnostics.Process.Start("https://www.antonov.com/");
        }
    }
}


There is content, by clicking on the text, display the corresponding form, I want to reduce the number of forms, so I decided that there will be one form on which the pictures will change and the signature at the top, which is made through the Label.
609ebb45f1c39331092004.png
Here on this form I will implement the idea, in fact, you only need to change the PictureBox and Label, if anyone has done this, throw a code example, thanks

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question