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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T04:15:05+00:00 2026-06-04T04:15:05+00:00

Two Forms 1. SplashForm 2. MainForm I want to load MainForm AS background Process

  • 0

Two Forms
1. “SplashForm”
2. “MainForm”

I want to load “MainForm” AS background Process of “SplashForm” process
when “SplashForm” process end i just want to show the “MainForm” which should be already loaded code

VB Code:

Imports System
Imports System.Threading

Public Class MultiThreading
    ' Global declaration 
    Dim mf As New MainForm
    'Thread Declaration
    Dim tm As New Thread(AddressOf LoadProcess)
    Dim ts As New Thread(AddressOf Splashprocess)

    Private Sub Epaper_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Me.Opacity = 0
        tm.Start()
        ts.Start()
    End Sub

    Sub  LoadProcess()
        mf.Show()
        mf.Hide()
    End Sub

    Sub Splashprocess()
        For i As Integer = 0 To 1000
            Me.Opacity += 0.01
        Next
        If Me.Opacity = 1 Then
            mf.Show()
            Me.Hide()
        End If
    End Sub
    End Class
  • 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-04T04:15:06+00:00Added an answer on June 4, 2026 at 4:15 am

    Why don’t you call the SplashScreen from the main form?
    Your main form should be invisible at first. When the main form is loaded, You could first of all show the splashscreen as an independant form (not child), then proceed on loading your main form. When all the process is done, dismiss the splashscreen and show the main form.

    Therefore, you would avoid using homemade threads.

    Here is a pseudo-code exemple :

    In Main_Form class                // which is invisible
    {
        When Main_Form is loaded
        {
            Show SplashScreen
    
            Proceed on loading everything else
    
            Hide SplashScreen
            Show Main_Form
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got two forms, the mainform which opens up a dialog box that has
I have two forms in a visual C# forms application. I want to load
I have two forms: Form1 and Form2. I want to show Form2 as dialog
i am using two forms in a jsp page.i want to submit form2 but
Which of these two forms of Array Initialization is better in Ruby? Method 1:
I need to display two forms depending on the context. The second form should
I two forms, Form1, and a UserControl which hosts Form2. Within that UserControl on
I must submit two forms at once and I don't want javascript. So I
I have two forms named 'mainForm' and 'addRslt'. The idea is when users click
I have a page which contains two forms, both with an unique ID. I

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.