{"id":146,"date":"2010-02-16T10:26:40","date_gmt":"2010-02-16T09:26:40","guid":{"rendered":"http:\/\/blog.rabihtawil.com\/?p=146"},"modified":"2010-07-26T13:59:25","modified_gmt":"2010-07-26T13:59:25","slug":"progress-bar-sample-code-vb-net-2008","status":"publish","type":"post","link":"http:\/\/www.raytawil.com\/?p=146","title":{"rendered":"Progress Bar Sample Code (VB NET 2008)"},"content":{"rendered":"<p><span class=\"sanitized\"> <\/span><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/i932.photobucket.com\/albums\/ad167\/akangcupez\/PBar01.jpg\" alt=\"\" width=\"361\" height=\"291\" \/><\/p>\n<p><span style=\"font-size: medium;\"><strong>Picture  Info:<\/strong><\/span><\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p><strong>(A)  Progress Bar<\/strong>,  Properties :<\/p>\n<p>Name                           =  ProgressBar1<\/p>\n<p>Minimum (value)     = 0<\/p>\n<p>Maximum (value)     =  100<\/p>\n<p><strong>(B) Button<\/strong>,  Properties :<\/p>\n<p>Name       = Button1<\/p>\n<p>Text      = Button1<\/p>\n<p><strong>(C)  Timer<\/strong>,  Properties:<\/p>\n<p>Name             = Timer1<\/p>\n<p>Enabled      = False<\/p>\n<p>Interval  = 100<\/p>\n<p><span style=\"font-size: medium;\"><strong>Kode  (F7) : <\/strong><\/span><\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<div id=\"wpshdo_1\" class=\"wp-synhighlighter-outer\"><div id=\"wpshdt_1\" class=\"wp-synhighlighter-expanded\"><table border=\"0\" width=\"100%\"><tr><td align=\"left\" width=\"80%\"><a name=\"#codesyntax_1\"><\/a><a id=\"wpshat_1\" class=\"wp-synhighlighter-title\" href=\"#codesyntax_1\"  onClick=\"javascript:wpsh_toggleBlock(1)\" title=\"Click to show\/hide code block\">Source code<\/a><\/td><td align=\"right\"><a href=\"#codesyntax_1\" onClick=\"javascript:wpsh_code(1)\" title=\"Show code only\"><img border=\"0\" style=\"border: 0 none\" src=\"http:\/\/www.raytawil.com\/wp-content\/plugins\/wp-synhighlight\/themes\/default\/images\/code.png\" \/><\/a>&nbsp;<a href=\"#codesyntax_1\" onClick=\"javascript:wpsh_print(1)\" title=\"Print code\"><img border=\"0\" style=\"border: 0 none\" src=\"http:\/\/www.raytawil.com\/wp-content\/plugins\/wp-synhighlight\/themes\/default\/images\/printer.png\" \/><\/a>&nbsp;<a href=\"http:\/\/www.raytawil.com\/wp-content\/plugins\/wp-synhighlight\/About.html\" target=\"_blank\" title=\"Show plugin information\"><img border=\"0\" style=\"border: 0 none\" src=\"http:\/\/www.raytawil.com\/wp-content\/plugins\/wp-synhighlight\/themes\/default\/images\/info.gif\" \/><\/a>&nbsp;<\/td><\/tr><\/table><\/div><div id=\"wpshdi_1\" class=\"wp-synhighlighter-inner\" style=\"display: block;\"><pre class=\"vbnet\" style=\"font-family:monospace;\"><span class=\"kw2\">Public<\/span> <span class=\"kw6\">Class<\/span> Form1\n<span class=\"kw2\">Private<\/span> <span class=\"kw6\">Sub<\/span> Timer1_Tick<span class=\"br0\">&#40;<\/span><span class=\"kw2\">ByVal<\/span> sender <span class=\"kw2\">As<\/span>  System.<span class=\"kw4\">Object<\/span>, <span class=\"kw2\">ByVal<\/span> e <span class=\"kw2\">As<\/span>  System.<span class=\"me1\">EventArgs<\/span><span class=\"br0\">&#41;<\/span><span class=\"kw2\">Handles<\/span> Timer1.<span class=\"me1\">Tick<\/span>\n&nbsp;\n<span class=\"kw2\">Static<\/span> TikTok <span class=\"kw2\">As<\/span> <span class=\"kw4\">Integer<\/span>\n&nbsp;\nTikTok <span class=\"sy0\">=<\/span> TikTok <span class=\"sy0\">+<\/span> 1\n&nbsp;\nProgressBar1.<span class=\"me1\">Value<\/span> <span class=\"sy0\">=<\/span> TikTok\n&nbsp;\n<span class=\"kw6\">If<\/span> ProgressBar1.<span class=\"me1\">Value<\/span> <span class=\"sy0\">=<\/span> ProgressBar1.<span class=\"me1\">Maximum<\/span>  <span class=\"kw2\">Then<\/span>\nTimer1.<span class=\"me1\">Enabled<\/span>  <span class=\"sy0\">=<\/span> <span class=\"kw1\">False<\/span> <span class=\"co1\">'deactivate Timer1<\/span>\n&nbsp;\nTikTok  <span class=\"sy0\">=<\/span> <span class=\"nu0\">0<\/span> <span class=\"co1\">'set static value back to 0<\/span>\n<span class=\"kw6\">End<\/span> <span class=\"kw6\">If<\/span>\n&nbsp;\n<span class=\"kw6\">End<\/span> <span class=\"kw6\">Sub<\/span>\n&nbsp;\n<span class=\"kw2\">Private<\/span>  <span class=\"kw6\">Sub<\/span> Button1_Click<span class=\"br0\">&#40;<\/span><span class=\"kw2\">ByVal<\/span> sender <span class=\"kw2\">As<\/span> System.<span class=\"kw4\">Object<\/span>, <span class=\"kw2\">ByVal<\/span> e <span class=\"kw2\">As<\/span>  System.<span class=\"me1\">EventArgs<\/span><span class=\"br0\">&#41;<\/span><span class=\"kw2\">Handles<\/span> Button1.<span class=\"me1\">Click<\/span>\nTimer1.<span class=\"me1\">Enabled<\/span> <span class=\"sy0\">=<\/span> <span class=\"kw1\">True<\/span> <span class=\"co1\">'activate Timer1<\/span>\n&nbsp;\nTimer1.<span class=\"me1\">Interval<\/span> <span class=\"sy0\">=<\/span> <span class=\"nu0\">100<\/span> <span class=\"co1\">'set interval to 100<\/span>\n&nbsp;\nProgressBar1.<span class=\"me1\">Value<\/span> <span class=\"sy0\">=<\/span> <span class=\"nu0\">0<\/span> <span class=\"co1\">'set ProgressBar value  to 0<\/span>\n<span class=\"kw6\">End<\/span> <span class=\"kw6\">Sub<\/span>\n&nbsp;\n<span class=\"kw6\">End<\/span> <span class=\"kw6\">Class<\/span><\/pre><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Picture Info: &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; (A) Progress Bar, Properties : Name = ProgressBar1 Minimum (value) = 0 Maximum (value) = 100 (B) Button, Properties : Name = Button1 Text = Button1 (C) Timer, Properties: Name = Timer1 Enabled = False Interval = 100 Kode (F7) : &#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[110],"tags":[8,9,26,64,72,87,89],"_links":{"self":[{"href":"http:\/\/www.raytawil.com\/index.php?rest_route=\/wp\/v2\/posts\/146"}],"collection":[{"href":"http:\/\/www.raytawil.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.raytawil.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.raytawil.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.raytawil.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=146"}],"version-history":[{"count":2,"href":"http:\/\/www.raytawil.com\/index.php?rest_route=\/wp\/v2\/posts\/146\/revisions"}],"predecessor-version":[{"id":281,"href":"http:\/\/www.raytawil.com\/index.php?rest_route=\/wp\/v2\/posts\/146\/revisions\/281"}],"wp:attachment":[{"href":"http:\/\/www.raytawil.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=146"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.raytawil.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=146"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.raytawil.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}