VB Help
2014-02-21, 07:21 AM, (This post was last modified: 2014-02-21, 07:25 AM by React1337.)
#1
I'm having a problem inserting this code with a theme I use.

Code I'm using:

Code:
Timer1.Start()

Code:
ProgressBar1.Increment(1)
        ProgressBar1.Maximum = 100
        If ProgressBar1.Value = ProgressBar1.Maximum Then
            Timer1.Stop()
        End If
        Label1.Text = ProgressBar1.Value & " %"
        If ProgressBar1.Value = 1 Then
            Label2.Text = "Write"
        End If
        If ProgressBar1.Value = 80 Then
            Label2.Text = "Write"
        End If
        If ProgressBar1.Value = 100 Then
            Label2.Text = "Write"
        End If
If ProgressBar1.Value = ProgressBar1.Maximum Then
Timer1.Stop()
MsgBox(" write here the message", MsgBoxStyle.Information, "write here the message's title")
System.Diagnostics.Process.Start("www.FileIce.net")

End If
Label1.Text = ProgressBar1.Value & (" %")

When I'm trying to start debugging I get an error at:

Code:
Sub Increment(ByVal p1 As Integer)
        Throw New NotImplementedException
    End Sub

I'm using the ghost theme and I replaced all "Progressbar1" to "GhostProgressbar1"

Anyone knows what causes this ? I'd appreciate any kind of help on this.
Reply
2014-02-21, 10:33 PM,
#2
Look at the error it's giving you, "NotImplementedException" it's pretty self explainatory.

Use GhostProgressbar1.Value += 1 instead
Latest Thanks - View all

React1337(2014-02-22 01:04 AM) 
Reply
2014-02-21, 10:53 PM,
#3
1.ProgressBar1.Increment(1) replace with GhostProgressbar1.Value += 1
2.There are two if conditions to stop the timer remove any one better u can delete 1st one bcoz in 2nd you are using a msg box
3.You can change the maximum value of progress bar in Progressbar Properties
Latest Thanks - View all

React1337(2014-02-22 01:04 AM) 
Reply
2014-02-22, 01:04 AM,
#4
(2014-02-21, 10:33 PM)Tolini Wrote: Look at the error it's giving you, "NotImplementedException" it's pretty self explainatory.

Use GhostProgressbar1.Value += 1 instead

(2014-02-21, 10:53 PM)suhin Wrote: 1.ProgressBar1.Increment(1) replace with GhostProgressbar1.Value += 1
2.There are two if conditions to stop the timer remove any one better u can delete 1st one bcoz in 2nd you are using a msg box
3.You can change the maximum value of progress bar in Progressbar Properties

Thanks to both of you it worked ;)
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Aeonsofts VB.NET Theme Manager v2.1 lanzye 32 10,310 2017-10-28, 04:51 PM
Last Post: waiphyoe
  VB NET FORM APPLICATION QwertySon 12 1,822 2016-04-27, 08:00 PM
Last Post: Harrington
  Best available vb.net theme? SteelHard 1 1,177 2015-01-30, 01:55 AM
Last Post: Yaznas
  PLEASE TELL ME WHICH VB NET THEME THIS IS ? androtweaks 3 478 2015-01-27, 10:16 PM
Last Post: Riven
  *Double Your Earnings by Using VB* [Begginers] FK_ 87 11,994 2015-01-23, 08:16 AM
Last Post: xchanmolx





About Us | Contact Us | CPA Elites | Advertise | Stats | Staff Team

© 2013-2017 CPA Elites Ltd
Enhanced by MyBB and WallBB
Return to top