{"id":430,"date":"2007-11-02T14:06:55","date_gmt":"2007-11-02T06:06:55","guid":{"rendered":"http:\/\/www.jason695.idv.tw:81\/wordpress\/?p=430"},"modified":"2008-05-15T16:50:28","modified_gmt":"2008-05-15T08:50:28","slug":"%e5%a4%9a%e5%9f%b7%e8%a1%8c%e7%b7%92%e7%9a%84%e5%af%ab%e6%b3%95%e4%bb%a5ftp%e5%8a%a0%e9%80%b2%e5%ba%a6bar%e7%82%ba%e4%be%8b","status":"publish","type":"post","link":"https:\/\/jason695.why3s.tw\/wordpress\/2007\/11\/02\/%e5%a4%9a%e5%9f%b7%e8%a1%8c%e7%b7%92%e7%9a%84%e5%af%ab%e6%b3%95%e4%bb%a5ftp%e5%8a%a0%e9%80%b2%e5%ba%a6bar%e7%82%ba%e4%be%8b\/","title":{"rendered":"\u591a\u57f7\u884c\u7dd2\u7684\u5beb\u6cd5(\u4ee5FTP\u52a0\u9032\u5ea6BAR\u70ba\u4f8b)"},"content":{"rendered":"<pre lang=\"VBNET\" line=\"1\">\r\n'\/\/\u5b9a\u7fa9\u4e00\u500bThread\r\nDim FTPThread As Thread = Nothing\r\n\r\n'\/\/\u591a\u57f7\u884c\u7dd2\u6240\u8981\u57f7\u884c\u7684\u7a0b\u5f0f\r\nPrivate Sub conFTP()\r\n.......\r\nEnd Sub\r\n\r\nPrivate Sub Form_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load\r\n'\/\/\u57f7\u884c\u7dd2\u4e00(\u57f7\u884cFTP)\r\nMe.FTPThread = New Thread( _\r\nNew Threading.ThreadStart(AddressOf Me.conFTP))\r\nMe.FTPThread.Start()\r\n\r\n'\/\/\u57f7\u884c\u7dd2\u4e8c(\u63a7\u5236lab\u8b80\u53d6\u4e2d\u7684\u9032\u5ea6\u986f\u793a)\r\nDim p As New Show_prog(Label2, Timer2)\r\np.showProg()\r\nEnd Sub\r\n\r\n'\/\/\u63a7\u5236lab\u8b80\u53d6\u4e2d\u7684\u9032\u5ea6\u986f\u793a\r\nPublic Class Show_prog\r\nDim v_ShowMsg As String = \"\"\r\nDim c_lab As Label\r\nDim c_tim As Timer\r\n\r\nPublic Sub New(ByVal lab As Label, ByVal tim As Timer)\r\nc_lab = lab\r\nc_tim = tim\r\nEnd Sub\r\n\r\n'''\r\n''' \u986f\u793a\r\n'''\r\nPublic Sub showProg()\r\n\r\nc_lab.Text = v_ShowMsg\r\nc_lab.Visible = True\r\nc_tim.Interval = 300\r\nc_tim.Enabled = True\r\n\r\n'lab\r\nc_lab.Location = New Point(70, 147)\r\n\r\nAddHandler c_tim.Tick, AddressOf Timer_Tick\r\nEnd Sub\r\n\r\nDim i As Integer = 0\r\n\r\nPublic Sub Timer_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs)\r\nIf OBS1.v_bol_FTP = False Then '\/\/\u662f\u5426\u8b80\u53d6\u7d50\u675f\r\nc_lab.Visible = False\r\nRemoveHandler c_tim.Tick, AddressOf Timer_Tick\r\nElse\r\nSelect Case i\r\nCase 0\r\nv_ShowMsg = \"\u8b80\u53d6\u4e2d.\"\r\nCase 1\r\nv_ShowMsg = \"\u8b80\u53d6\u4e2d..\"\r\nCase 2\r\nv_ShowMsg = \"\u8b80\u53d6\u4e2d...\"\r\nCase 3\r\nv_ShowMsg = \"\u8b80\u53d6\u4e2d....\"\r\nCase 4\r\nv_ShowMsg = \"\u8b80\u53d6\u4e2d.....\"\r\nCase 5\r\nv_ShowMsg = \"\u8b80\u53d6\u4e2d......\"\r\nCase 6\r\nv_ShowMsg = \"\u8b80\u53d6\u4e2d.......\"\r\nCase 7\r\nv_ShowMsg = \"\u8b80\u53d6\u4e2d........\"\r\nCase 8\r\nv_ShowMsg = \"\u8b80\u53d6\u4e2d.........\"\r\nCase 9\r\nv_ShowMsg = \"\u8b80\u53d6\u4e2d..........\"\r\ni = 0\r\nEnd Select\r\ni += 1\r\n\r\nc_lab.Text = v_ShowMsg\r\nc_lab.Update()\r\nEnd If\r\nEnd Sub\r\n\r\nEnd Class\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>&#8216;\/\/\u5b9a\u7fa9\u4e00\u500bThread Dim FTPThread As Thread = Nothing &#8216;\/\/\u591a\u57f7\u884c\u7dd2 &hellip; <a href=\"https:\/\/jason695.why3s.tw\/wordpress\/2007\/11\/02\/%e5%a4%9a%e5%9f%b7%e8%a1%8c%e7%b7%92%e7%9a%84%e5%af%ab%e6%b3%95%e4%bb%a5ftp%e5%8a%a0%e9%80%b2%e5%ba%a6bar%e7%82%ba%e4%be%8b\/\" class=\"more-link\">\u95b1\u8b80\u5168\u6587 <span class=\"screen-reader-text\">\u591a\u57f7\u884c\u7dd2\u7684\u5beb\u6cd5(\u4ee5FTP\u52a0\u9032\u5ea6BAR\u70ba\u4f8b)<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2],"tags":[],"class_list":["post-430","post","type-post","status-publish","format-standard","hentry","category-net","no-featured-image"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/jason695.why3s.tw\/wordpress\/wp-json\/wp\/v2\/posts\/430","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jason695.why3s.tw\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jason695.why3s.tw\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jason695.why3s.tw\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jason695.why3s.tw\/wordpress\/wp-json\/wp\/v2\/comments?post=430"}],"version-history":[{"count":0,"href":"https:\/\/jason695.why3s.tw\/wordpress\/wp-json\/wp\/v2\/posts\/430\/revisions"}],"wp:attachment":[{"href":"https:\/\/jason695.why3s.tw\/wordpress\/wp-json\/wp\/v2\/media?parent=430"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jason695.why3s.tw\/wordpress\/wp-json\/wp\/v2\/categories?post=430"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jason695.why3s.tw\/wordpress\/wp-json\/wp\/v2\/tags?post=430"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}