6 Replies - 435 Views - Last Post: 21 January 2013 - 11:58 AM Rate Topic: -----

#1 creator333  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 25
  • Joined: 20-January 13

Question about progress text in VB

Posted 20 January 2013 - 05:08 AM

Hello!
I need help
I want to create a program with a progress text in VB, something like that ->https://www.youtube.com/watch?v=07tvYOXJJOw
It's possible?
Thanks for help ;)
Is This A Good Question/Topic? 0
  • +

Replies To: Question about progress text in VB

#2 Ryano121  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1362
  • View blog
  • Posts: 3,002
  • Joined: 30-January 11

Re: Question about progress text in VB

Posted 20 January 2013 - 05:17 AM

Yeah sure it's possible, it's just a textbox being updated to show a new message on the end when something has been done.

progressTextBox.Text = progressTextBox.Text & "\nSome new progress information"


You may also think about some kind of multithreading if you are doing a lot of intensive work so it doesn't cause the window to block and freeze.
Was This Post Helpful? 1
  • +
  • -

#3 creator333  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 25
  • Joined: 20-January 13

Re: Question about progress text in VB

Posted 20 January 2013 - 05:45 AM

I just want to put in program button 'Start'
When I click it, progresstext should be updating
So how must look the code?
Was This Post Helpful? 0
  • +
  • -

#4 Ryano121  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1362
  • View blog
  • Posts: 3,002
  • Joined: 30-January 11

Re: Question about progress text in VB

Posted 20 January 2013 - 05:48 AM

Shove the start button on your form, get the clicked event handler up, do some work and update the textbox as I showed before.

If you are struggling with that then I suggest stopping and learning the basics before trying to make something you do not have the knowledge for.

Good luck
Was This Post Helpful? 0
  • +
  • -

#5 creator333  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 25
  • Joined: 20-January 13

Re: Question about progress text in VB

Posted 20 January 2013 - 05:56 AM

Sory, I don't see that you replied ;)
Was This Post Helpful? 0
  • +
  • -

#6 creator333  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 25
  • Joined: 20-January 13

Re: Question about progress text in VB

Posted 21 January 2013 - 11:31 AM

What's wrong here?
    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick

        ProgressBar1.Increment(1)

        If ProgressBar1.Value = ProgressBar1.Maximum Then

            Timer1.Stop()

            Dim key As Integer

            key = (Rnd() * 2 + 1)

            Select Case key

                Case 1
                    MsgBox("KEY: 89473906543680")
                Case 2
                    MsgBox("Your Keygen's Expired, CLICK OK TO UPDATE")

            End Select


        End If

When the progressbar is maximum the msgbox doesn't open please help, ot's important
Was This Post Helpful? 0
  • +
  • -

#7 CharlieMay  Icon User is offline

  • This space intentionally left blank
  • member icon

Reputation: 1605
  • View blog
  • Posts: 5,162
  • Joined: 25-September 09

Re: Question about progress text in VB

Posted 21 January 2013 - 11:58 AM

Suggestion, use the random class instead of rnd.

Also, put a watch or set a breakpoint and look at the value of Key before the Select Case. I'm sure it will become quite obvious once you look at what key holds.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1