Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8590599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:19:50+00:00 2026-06-11T23:19:50+00:00

I developed a Winform application which has a Panel as Main Screen and two

  • 0

I developed a Winform application which has a Panel as Main Screen and two other panels on each side for previous and next video. and Two buttons which helps the Application to traverse through different videos and set it to the main panel. I have 21 videos now……
This is My code….

public void loadvideo2(int a)
    {

            int width = viewscreen.Width;
            int height = viewscreen.Height;
            int width1 = nxtpnl.Width;
            int height1 = nxtpnl.Height;
            int width2 = prepnl.Width;
            int height2 = prepnl.Height;

            video = new Video(vpath[a]);
            video.Owner = viewscreen;
            video.Stop();
            viewscreen.Size = new Size(width, height);

            video1 = new Video(vpath[a + 1]);
            video1.Owner = nxtpnl;
            video1.Stop();
            nxtpnl.Size = new Size(width1, height1);

            video2 = new Video(vpath[a - 1]);
            video2.Owner = prepnl;
            video2.Stop();
            prepnl.Size = new Size(width2, height2);

            plystpBtn.BackgroundImage = Video_Project.Properties.Resources.Style_Play_icon__1_;
            plystpBtn.BackgroundImageLayout = ImageLayout.Stretch;

            trckstatus.Minimum = Convert.ToInt32(video.CurrentPosition);
            trckstatus.Maximum = Convert.ToInt32(video.Duration);

            duration = CalculateTime(video.Duration);
            playposition = "0:00:00";
            posdurtrclbl.Text = playposition + "/" + duration;

            b = a;
            vlbl.Text = "Video" + Convert.ToString(b);
        } 

 private void preBtn_Click(object sender, EventArgs e)
    {
        videono += 1;
        if (videono <= vcount-1)
        {
            loadvideo2(videono);
        }
        else
            MessageBox.Show("File Not Found!!!");
    }

 private void nxtBtn_Click(object sender, EventArgs e)
    {
            videono -= 1;
            if (videono >= 0)
            {
                loadvideo2(videono);
            }
            else
                MessageBox.Show("FIle Not Found!!!");
    }

now while i am traversing through the videos by pressing buttons its working fine till the 16th video where i am getting an error message

ffmpeg.dll failed to load

can any one help me to solve this

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T23:19:51+00:00Added an answer on June 11, 2026 at 11:19 pm

    solved it. It was probably a memory consumption issue.

    public void loadvideo2(int a)
        {
    
    
                int width = viewscreen.Width;
                int height = viewscreen.Height;
                int width1 = nxtpnl.Width;
                int height1 = nxtpnl.Height;
                int width2 = prepnl.Width;
                int height2 = prepnl.Height;
    
                video.Dispose();
    
    
                video = new Video(vpath[a]);
                video.Owner = viewscreen;
                video.Stop();
                viewscreen.Size = new Size(width, height);
    
                video1 = new Video(vpath[a + 1]);
                video1.Owner = nxtpnl;
                video1.Stop();
                nxtpnl.Size = new Size(width1, height1);
    
                video2 = new Video(vpath[a - 1]);
                video2.Owner = prepnl;
                video2.Stop();
                prepnl.Size = new Size(width2, height2);
    
    
    
                plystpBtn.BackgroundImage = Video_Project.Properties.Resources.Style_Play_icon__1_;
                plystpBtn.BackgroundImageLayout = ImageLayout.Stretch;
    
                trckstatus.Minimum = Convert.ToInt32(video.CurrentPosition);
                trckstatus.Maximum = Convert.ToInt32(video.Duration);
    
                duration = CalculateTime(video.Duration);
                playposition = "0:00:00";
                posdurtrclbl.Text = playposition + "/" + duration;
    
                b = a;
                vlbl.Text = "Video" + Convert.ToString(b);
                video1.Dispose();
                video2.Dispose();
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We've developed a desktop application using .NetFX3.5 which has some winforms and two WPF
I have developed a Winform MDI application, in which client specifically requires a context
I've developed a WinForm application that run in background. The main form is hidden
I have developed a WinForm Application with VB.Net (VS2010) having Office 2010 Professional Installed,
Ok, I have developed this WinForms client, which interacts with a server (ASPX Application)
I have developed my winform application without caring about the resolution. Now am stuck
I have developed a winform application in 1280 X 1024 pixels.....when using the same
I have a C#/.NET Winforms application which has some settings stored using A '.settings'
I developed a winform application using C# in visual studio 2008. Now i want
I have a drawing application developed in winforms C# which uses many System.Drawing.Bitmap object

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.