Results 1 to 12 of 12

Thread: [RESOLVED] I want to automatically after the progreesbar form appears then the main form appears

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2021
    Posts
    91

    Resolved [RESOLVED] I want to automatically after the progreesbar form appears then the main form appears

    Dear All Master
    Please Help me have 2 forms namely formwelcome (ProgressBar form) and form1 (main form). So I want after the formwelcome appears then automatically appear form1.


    Code:
    Imports WinFormAnimation
    Public Class FormWelcome
        Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
            CircularProgressBar1.Value += 1
            CircularProgressBar1.Text = CircularProgressBar1.Value.ToString
            If Me.Opacity < 1 Then
                Me.Opacity += 0.05
            End If
            If CircularProgressBar1.Value = 100 Then
                Timer1.Stop()
                Timer2.Start()
            End If
        End Sub
        Private Sub FormWelcome_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            CircularProgressBar1.Value = 0
            Me.Opacity = 0
            Timer1.Start()
    
        End Sub
        Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
            Me.Opacity -= 0.1
            If Me.Opacity = 0 Then
                Timer2.Stop()
                Me.Close()
            End If
        End Sub
    End Class
    Thanks
    roy88
    Last edited by roy88; Dec 9th, 2021 at 02:48 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width