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 378129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T14:45:48+00:00 2026-05-12T14:45:48+00:00

I got to load some data out of a db4o database which takes 1

  • 0

I got to load some data out of a db4o database which takes 1 or 2 seconds at the startup of my app, the rest has to wait because first of all the data has to be loaded. doing this in an own thread would mean that the rest has to wait for the thread-finishing. I’d like to do a splash screen or something during the data is loaded for what also need an own thread, right? how would you do?

I’m using csharp, .net 3.5 and winforms

  • 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-05-12T14:45:48+00:00Added an answer on May 12, 2026 at 2:45 pm

    Showing a splash screen at startup is easy to do. In your application’s Main() method (in Program.cs), put something like this before the Application.Run(…) line:

    SplashForm splashy = new SplashForm();
    splashy.Show();
    Application.Run(new MainForm(splashy));
    

    Modify the code and constructor for your main form so that it looks something like this:

    private SplashForm _splashy;
    public MainForm(SplashForm splashy)
    {
        _splashy = splashy;
        InitializeComponent();
    }
    

    Then at the end of your MainForm’s Load event (which presumably contains the database code), put this code:

    _splashy.Close();
    _splashy.Dispose();
    

    If you choose to do your database access with a separate Thread or BackgroundWorker, then you don’t really need a splash screen so much as you need some sort of progress indicator form that appears while the BackgroundWorker is doing its thing. That would be done differently from my answer here.

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

Sidebar

Related Questions

I have got some code to load an assembly and get all types, which
I've got a compressed string of bytes coming out of a database which I
I've got two textboxes that load some data. What I would like to do
I exported some data from my database in the form of JSON, which is
I've got some code that uses the Component Categories manager to load all of
I've got some trouble with jQuery script on my Asp.net page. During first load
I've got a load-balanced (not using Session state) ASP.Net 2.0 app on IIS5 running
Basically I've got a code which should load a lot of images so I
I've got a problem with NHibernate trying to load a small hierarchy of data.
I've got some code that requests some data from a servlet, and renders it

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.