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

  • Home
  • SEARCH
  • 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 108463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T01:54:57+00:00 2026-05-11T01:54:57+00:00

I need to show a screen or something, saying ‘Loading’ or whatever while long

  • 0

I need to show a screen or something, saying ‘Loading’ or whatever while long process are working.

I am creating a application with the Windows Media Encoder SDK and it takes awhile to initialize the encoder. I would like for a screen to pop up saying ‘Loading’ while it is starting the encoder, and then for it to disappear when the encoder is done and they can continue with the application.

Any help would be appreciated. Thanks!

  • 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. 2026-05-11T01:54:57+00:00Added an answer on May 11, 2026 at 1:54 am

    Create a Form that will serve as the ‘Loading’ dialog. When you’re ready to initialize the encoder, display this form using the ShowDialog() method. This causes it to stop the user from interacting with the form that is showing the loading dialog.

    The loading dialog should be coded in such a way that when it loads, it uses a BackgroundWorker to initialize the encoder on a separate thread. This ensures the loading dialog will remain responsive. Here’s an example of what the dialog form might look like:

    Imports System.ComponentModel  Public Class LoadingForm ' Inherits Form from the designer.vb file      Private _worker As BackgroundWorker      Protected Overrides Sub OnLoad(ByVal e As System.EventArgs)         MyBase.OnLoad(e)          _worker = New BackgroundWorker()         AddHandler _worker.DoWork, AddressOf WorkerDoWork         AddHandler _worker.RunWorkerCompleted, AddressOf WorkerCompleted          _worker.RunWorkerAsync()     End Sub      ' This is executed on a worker thread and will not make the dialog unresponsive.  If you want     ' to interact with the dialog (like changing a progress bar or label), you need to use the     ' worker's ReportProgress() method (see documentation for details)     Private Sub WorkerDoWork(ByVal sender As Object, ByVal e As DoWorkEventArgs)         ' Initialize encoder here     End Sub      ' This is executed on the UI thread after the work is complete.  It's a good place to either     ' close the dialog or indicate that the initialization is complete.  It's safe to work with     ' controls from this event.     Private Sub WorkerCompleted(ByVal sender As Object, ByVal e As RunWorkerCompletedEventArgs)         Me.DialogResult = Windows.Forms.DialogResult.OK         Me.Close()     End Sub  End Class 

    And, when you’re ready to display the dialog, you would do so like this:

    Dim frm As New LoadingForm() frm.ShowDialog() 

    There are more elegant implementations and better practices to follow, but this is the simplest.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 70k
  • Answers 70k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Some research results for OneWayToSource... Option # 1. // Control… May 11, 2026 at 12:53 pm
  • added an answer There is a KB Article and Hotfix for what sounds… May 11, 2026 at 12:53 pm
  • added an answer After discussing the subject with a Microsoft developer evangelist (J… May 11, 2026 at 12:53 pm

Related Questions

I need to show a screen or something, saying 'Loading' or whatever while long
I need to add a gallery to my website, to show screen shots of
I basically need to show a wait window to the user. For this i
I need to lock the browser scrollbars when I show a div that represent
I need to store user entered changes to a particular table, but not show
I'm using Windows Xp and i'm looking for a software where I can see
This has happened to me 3 times now, and I am wondering if anyone
I'm developing a Winforms application which has been running for years with an explorer
I'm looking for a generic method to implement a wait screen during long operations.

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.