Creating a Splash Screen

Question:
I also want to know how to create a title screen, then give it a delay to wait load the program…sort of how windows loads (first you see the Windows screen..then it goes away and windows loads).

Answer:
Here’s what you need to do:

  1. Create a form with a Timer control and an Image control that fills the form.
  2. To make the form look correct as a “splash screen”, do the following to the form:
    • Set the Align property of the image control to Top or Bottom, and drag the control so it fills up the form.
    • Set the border style to Fixed Single
    • Delete the caption.
    • Set the ControlBox, Minimize, and Maximize properties to False
  3. Set the Delay property of the Timer to the number of milliseconds (1000 milliseconds per second) you want the delay to be for. Do that in the Properties window for the Timer.
  4. As far as code, in the Timer_Timer event, put in the following lines of code
            Timer.Delay = 0         ‘ This disables the timer that was running        Unload Me        NewForm.Show            ‘ NewForm is the next window that should be                                ‘ loaded for the application.  
  5. If you want to allow the user to click on the splash screen to make it go away, put the same code into the Image_Click event. That’s always a nice feature to add so that experienced users don’t have to wait for the screen to go away.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

The Latest

homes in the real estate industry

Exploring the Latest Tech Trends Impacting the Real Estate Industry

The real estate industry is changing thanks to the newest technological advancements. These new developments — from blockchain and AI to virtual reality and 3D printing — are poised to change how we buy and sell homes. Real estate brokers, buyers, sellers, wholesale real estate professionals, fix and flippers, and beyond may

man on floor with data

DevX Quick Guide to Data Ingestion

One of the biggest trends of the 21st century is the massive surge in internet usage. With major innovations such as smart technology, social media, and online shopping sites, the internet has become an essential part of everyday life for a large portion of the population. Due to this internet

payment via phone

7 Ways Technology Has Changed Traditional Payments

In today’s digital world, technology has changed how we make payments. From contactless cards to mobile wallets, it’s now easier to pay for goods and services without carrying cash or using a checkbook. This article will look at seven of the most significant ways technology has transformed traditional payment methods.