We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
Imports System.ComponentModel Public Class Loading 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 Private Sub WorkerDoWork(ByVal sender As Object, ByVal e As DoWorkEventArgs) Form1.Show() End Sub Private Sub WorkerCompleted(ByVal sender As Object, ByVal e As RunWorkerCompletedEventArgs) Me.DialogResult = Windows.Forms.DialogResult.OK Me.Close() End Sub End Class
Dim frm As New Loading() frm.ShowDialog()
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.