If i > 10 Then
Nextform.Show()
Timer1.Stop()
Me.Close '// Close current Form.
End If
codeorder
Postaholic
2,124 posts since Aug 2010
Reputation Points: 256
Solved Threads: 387
Skill Endorsements: 8
codeorder
Postaholic
2,124 posts since Aug 2010
Reputation Points: 256
Solved Threads: 387
Skill Endorsements: 8
Post your "imitating" Form's code.
codeorder
Postaholic
2,124 posts since Aug 2010
Reputation Points: 256
Solved Threads: 387
Skill Endorsements: 8
Maybe the magic can be to create a new module with a Sub Main and use this sub for starting the project in the project properties page.
This sub can do the following:
* Instantiate a new titleForm.
* Show the titleform.
* Do the progress bar movement for the titleForm
* instantiate the logonForm
* Close the titleForm
* Show in dialog mode the logonForm.
Hope this helps
lolafuertes
Practically a Posting Shark
890 posts since Oct 2008
Reputation Points: 164
Solved Threads: 189
Skill Endorsements: 5
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
With ProgressBar1
.Maximum = 100
End With
With Timer1
.Interval = 500 '// 1/2 sec. delay.
Me.Show() '// display Form before starting Timer.
.Start() '// start Timer.
End With
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Static iCount As Integer = 0
If Not iCount = 10 Then
iCount += 1
ProgressBar1.Value += 10
Else
frmLogin.Show()
Me.Close() '// stops the Timer as well.
End If
End Sub
End Class
codeorder
Postaholic
2,124 posts since Aug 2010
Reputation Points: 256
Solved Threads: 387
Skill Endorsements: 8
Try my previous code in a new project.
Leave Form1's .Name as is and add a new form named "frmLogin".
Don't forget about the app.s properties of "When last form closes".
Let me know how that goes, and if still Nothing, I am still done with this thread. Good luck.
codeorder
Postaholic
2,124 posts since Aug 2010
Reputation Points: 256
Solved Threads: 387
Skill Endorsements: 8