How to show another form when Progressbar reaches certain value

When a progressbar value is 99 then hide one form and show another!

Page 1 of 1

1 Replies - 3310 Views - Last Post: 24 December 2008 - 01:32 PM Rate Topic: -----

#1 Zooms  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 78
  • Joined: 04-December 08

How to show another form when Progressbar reaches certain value

Posted 24 December 2008 - 12:47 PM

Im trying to make a code that does the following:

If the progressbar value is 99 then that form will hide, and another one show.


Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
		If ProgressBar1.Value = 99 Then


			Me.Hide()
			Form2.Show()
		End If




Edit:

Solved, had to put the code in the timer, not the form.

This post has been edited by PsychoCoder: 24 December 2008 - 01:31 PM


Is This A Good Question/Topic? 0
  • +

Replies To: How to show another form when Progressbar reaches certain value

#2 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1659
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: How to show another form when Progressbar reaches certain value

Posted 24 December 2008 - 01:32 PM

Glad you were able to solve your issue. Sometimes it takes putting your code in a different form, i.e; a forum, to see what you're doing wrong. :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1