Простите, не тот код отправила В коде представленном ниже при запуске не отображается ни одна кнопка. Сделайте что-нибудь, пожалуйста:
using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Windows.Forms;
using NAudio.Wave;

namespace SlideshowApp
{
    public partial class Form1 : Form
    {
        private List imageFiles = new List();
        private int currentIndex = 0;
        private WaveOutEvent waveOut;
        private AudioFileReader audioFileReader;
        private Timer slideshowTimer;
        private bool isPlaying = false;

        // Для анимации
        private Timer animationTimer;
        private int animationStep;
        private int animationTotalSteps = 20;
        private Point startLocation;
        private Point endLocation;
        private PictureBox tempPictureBox;
        private TransitionEffect currentTransition = TransitionEffect.None;

        // Перечисление для типов переходов
        private enum TransitionEffect
        {
            None,
            SlideTopBottom,
            SlideRightLeft,
            SlideBottomTop
        }

        public Form1()
        {
            InitializeComponent();
            // Инициализация кнопки 
            btnSelectFolder = new Button();
            // Устанавливаем текст кнопки
            btnSelectFolder.Text = "Select Folder";
            // Зададим размер кнопки
            btnSelectFolder.Size = new Size(100, 50);
            // Указываем положение кнопки на форме
            btnSelectFolder.Location = new Point(10, 10);
            // Добавляем обработчик события
            btnSelectFolder.Click += new EventHandler(btnSelectFolder_Click);
            this.Controls.Add(pictureBox);
            this.Controls.Add(btnSelectFolder);
            this.Controls.Add(btnNext);
            this.Controls.Add(btnPrevious);
            this.Controls.Add(btnPlayPause);
            this.Controls.Add(btnSelectMusic);
            this.Controls.Add(trackBarVolume);
            this.Controls.Add(lblCounter);
            this.Controls.Add(checkBoxSlideFromTop);
            this.Controls.Add(checkBoxSlideFromRight);
            this.Controls.Add(checkBoxSlideFromBottom);
            pictureBox.Location = new Point(10, 10);
            InitializeSlideshow();
            InitializeAnimation();
            InitializeCheckBoxes();
        }

        private void InitializeSlideshow()
        {
            slideshowTimer = new Timer();
            slideshowTimer.Interval = 3000; // 3 секунды
            slideshowTimer.Tick += SlideshowTimer_Tick;
        }

        private void InitializeAnimation()
        {
            animationTimer = new Timer();
            animationTimer.Interval = 20; // Шаг анимации
            animationTimer.Tick += AnimationTimer_Tick;
        }

        private void InitializeCheckBoxes()
        {
            // Проверка, что CheckBox'ы уже добавлены на форму с именами:
            checkBoxSlideFromTop.CheckedChanged += CheckBoxSlideFromTop_CheckedChanged;
            checkBoxSlideFromRight.CheckedChanged += CheckBoxSlideFromRight_CheckedChanged;
            checkBoxSlideFromBottom.CheckedChanged += CheckBoxSlideFromBottom_CheckedChanged;
        }

        private void btnSelectFolder_Click(object sender, EventArgs e)
        {
            using (var folderBrowser = new FolderBrowserDialog())
            {
                if (folderBrowser.ShowDialog() == DialogResult.OK)
                {
                    imageFiles = Directory.GetFiles(folderBrowser.SelectedPath, "*.jpg").ToList();
                    currentIndex = 0;
                    ShowImage();
                }
            }
        }

        private void ShowImage()
        {
            if (imageFiles.Count > 0)
            {
                pictureBox.Image = Image.FromFile(imageFiles[currentIndex]);
                lblCounter.Text = $"{currentIndex + 1} / {imageFiles.Count}";
            }
        }

        private void btnNext_Click(object sender, EventArgs e)
        {
            if (imageFiles.Count == 0) return;

            int nextIndex = (currentIndex + 1) % imageFiles.Count;
            ShowNextImage(nextIndex, Direction.Next);
        }

        private void btnPrevious_Click(object sender, EventArgs e)
        {
            if (imageFiles.Count == 0) return;

            int prevIndex = (currentIndex - 1 + imageFiles.Count) % imageFiles.Count;
            ShowNextImage(prevIndex, Direction.Previous);
        }

        private void btnPlayPause_Click(object sender, EventArgs e)
        {
            if (isPlaying)
            {
                slideshowTimer.Stop();
                isPlaying = false;
                btnPlayPause.Text = "Play";
            }
            else
            {
                slideshowTimer.Start();
                isPlaying = true;
                btnPlayPause.Text = "Pause";
            }
        }

        private void SlideshowTimer_