{"id":82,"date":"2006-07-05T07:43:27","date_gmt":"2006-07-05T07:43:27","guid":{"rendered":"http:\/\/blog.jason695.idv.tw:81\/wordpress\/?p=82"},"modified":"2006-07-05T07:48:23","modified_gmt":"2006-07-05T07:48:23","slug":"%e8%bd%89%e8%b2%bc%e5%b0%87vs2003%e8%bd%89%e6%88%90vs2005%e7%9a%84%e6%ad%a5%e9%a9%9f","status":"publish","type":"post","link":"https:\/\/jason695.why3s.tw\/wordpress\/2006\/07\/05\/%e8%bd%89%e8%b2%bc%e5%b0%87vs2003%e8%bd%89%e6%88%90vs2005%e7%9a%84%e6%ad%a5%e9%a9%9f\/","title":{"rendered":"[\u8f49\u8cbc]\u5c07VS2003\u8f49\u6210VS2005\u7684\u6b65\u9a5f"},"content":{"rendered":"<p>1.<br \/>\n\u57282003\u7684\u7de8\u8b6f\u5668\u4e0b\uff1a<br \/>\n\u5c072003\u6240\u6709\u7684Form\u3001\u985e\u5225\u3001Modual&#8230;\u7b49\u7a0b\u5f0f\u78bc\uff0c\u4f9d\u5c08\u6848\u7684\u5206\u985e\uff0c\u5c07\u7a0b\u5f0f\u78bc\u6b78\u5728\u4e00\u500bNamespace\u5e95\u4e0b\uff0c<br \/>\n\u4e0d\u540c\u5c08\u6848\u53ef\u4ee5\u4e0d\u540c\u7684Namespace \u540d\u7a31\uff0c\u4e26\u4e14\u78ba\u5b9a\u7a0b\u5f0f\u53ef\u4ee5\u57f7\u884c\u3002<br \/>\n\u5982\u679c\u5df2\u7d93\u6709\u4e86\u5c31\u4e0d\u8981\u518d\u5ba3\u544aNamespace\u4e86\u3002<br \/>\n\u70ba\u4ec0\u9ebc\u8981\u5ba3\u544aNamespace\uff0c\u9019\u662f\u70ba\u4e86\u9632\u6b62\u540c\u6a23\u7684Class\u540d\u7a31\u3002<\/p>\n<p>2.<br \/>\n\u57282005\u7684\u7de8\u8b6f\u5668\u4e0b\uff1a<br \/>\n\u958b\u555f2003\u7684\u5c08\u6848\uff0c\u6b64\u6642\u6703\u554f\u8981\u4e0d\u8981\u8f49\u62102005\u7684\u5c08\u6848\uff0c\u7576\u7136\u8981\u8f49\u5695\u3002<br \/>\n\u5c072003\u7684\u5c08\u6848\u8f49\u62102005\u7684\u5c08\u6848\u3002<br \/>\n<!--more--><\/p>\n<p>3.<br \/>\n\u57282005\u7684\u7de8\u8b6f\u5668\u4e0b\uff1a\u4f8b\u5982\u6709\u4e00\u500b\u820a\u7684 Windows Form \u6a94\u540d\u53eb Employee.vb\uff0c<br \/>\nForm\u88e1\u9762\u6709\u4e00\u500bLabel\u7684\u5143\u4ef6\uff0c\u540d\u7a31\u53ebLabel5\u3002\u70ba\u4e86\u793a\u7bc4\u6240\u4ee5\u53ea\u653e\u4e00\u500bLabel\u5143\u4ef6\u3002<\/p>\n<p>a.\u5c07Employee.vb \u6539\u6a94\u540d\uff0c\u6539\u6210before_Employee.vb<br \/>\nb.\u52a0\u5165\u4e00\u500b Windows Form \u6a94\u540d\u53eb Employee.vb\uff0c\u9019\u6642\u6703\u7522\u751f\u4e00\u500b\u53ebEmployee_Designer.vb\u7684\u6a94\u6848\u3002<br \/>\n\u9019\u88e1\u5c31\u662f\u653e\u8a2d\u8a08\u7269\u4ef6\u7684\u7a0b\u5f0f\u78bc\u3002<\/p>\n<p>\u5f9ec.\u958b\u59cb\u662f\u91cd\u9ede\uff1b<br \/>\nc.\u958b\u555f before_Employee.vb \u627e\u5230\u4ee5\u4e0b\u7684\u6587\u5b57<\/p>\n<p>&#8216;\u6ce8\u610f: \u4ee5\u4e0b\u70ba Windows Form \u8a2d\u8a08\u5de5\u5177\u6240\u9700\u7684\u7a0b\u5e8f<br \/>\n&#8216;\u60a8\u53ef\u4ee5\u4f7f\u7528 Windows Form \u8a2d\u8a08\u5de5\u5177\u9032\u884c\u4fee\u6539\u3002<br \/>\n&#8216;\u8acb\u52ff\u4f7f\u7528\u7a0b\u5f0f\u78bc\u7de8\u8f2f\u5668\u4f86\u4fee\u6539\u9019\u4e9b\u7a0b\u5e8f\u3002<br \/>\nFriend WithEvents Label5 As System.Windows.Forms.Label<\/p>\n<p>d.\u5c07\u6240\u6709\u958b\u982d\u662f Friend \u7684\u7a0b\u5f0f\u78bc\u8907\u88fd\uff0c\u4e5f\u5c31\u662f\u5c07<br \/>\nFriend WithEvents Label5 As System.Windows.Forms.Label<br \/>\n\u9019\u6bb5\u7a0b\u5f0f\u78bc\u8907\u88fd\u8d77\u4f86\u3002<br \/>\n\u7576\u7136Form\u88e1\u9762\u7684\u5143\u4ef6\u4e0d\u53ea\u6709\u4e00\u500b\uff0c\u9019\u88e1\u53ea\u662f\u4e00\u500b\u7bc4\u4f8b\u800c\u5df1\u3002<\/p>\n<p>e.\u5f9e\u958b\u555f\u820a\u6a94\u5c07Employee_Designer.vb\u6253\u958b\u3002<br \/>\n\u76f4\u63a5\u8df3\u5230\u7a0b\u5f0f\u78bc\u7684\u6700\u4e0b\u9762\u7684\u5730\u65b9\uff0c\u5728End Sub\u548cEnd Class\u7684\u4e2d\u9593\u5c07\u8907\u88fd\u7684\u7a0b\u5f0f\u78bc\u8cbc\u4e0a\u3002<\/p>\n<p>f.\u518d\u958b\u555f before_Employee.vb \u627e\u5230\u4ee5\u4e0b\u7684\u6587\u5b57<br \/>\nPrivate Sub InitializeComponent()<br \/>\nMe.Label5 = New System.Windows.Forms.Label<br \/>\n&#8216;Label5<br \/>\n&#8216;<br \/>\nMe.Label7.AutoSize = True<br \/>\nMe.Label7.Location = New System.Drawing.Point(360, 75)<br \/>\nMe.Label7.Name = &#8220;Label7&#8221;<br \/>\nMe.Label7.Size = New System.Drawing.Size(66, 18)<br \/>\nMe.Label7.TabIndex = 21<br \/>\nMe.Label7.Text = &#8220;\u51fa\u8eab\u5e74\u6708\u65e5&#8221;<br \/>\n&#8216;<\/p>\n<p>\u9019\u88e1\u5ba3\u544a\u5143\u4ef6\uff0c\u5c07\u5ba3\u544a\u7684\u5143\u4ef6\u7684\u7a0b\u5f0f\u8907\u88fd\uff0c\u4e5f\u5c31\u662f\u5c07<br \/>\nMe.Label5 = New System.Windows.Forms.Label<br \/>\n&#8216;Label5<br \/>\n&#8216;<br \/>\nMe.Label7.AutoSize = True<br \/>\nMe.Label7.Location = New System.Drawing.Point(360, 75)<br \/>\nMe.Label7.Name = &#8220;Label7&#8221;<br \/>\nMe.Label7.Size = New System.Drawing.Size(66, 18)<br \/>\nMe.Label7.TabIndex = 21<br \/>\nMe.Label7.Text = &#8220;\u51fa\u8eab\u5e74\u6708\u65e5&#8221;<br \/>\n&#8216;<br \/>\n\u9019\u6bb5\u7a0b\u5f0f\u78bc\u8907\u88fd\u8d77\u4f86\u3002<br \/>\n\u7576\u7136Form\u88e1\u9762\u7684\u5143\u4ef6\u4e0d\u53ea\u6709\u4e00\u500b\uff0c\u9019\u88e1\u53ea\u662f\u4e00\u500b\u7bc4\u4f8b\u800c\u5df1\u3002<br \/>\n\u4e5f\u5c31\u662f\u8aaa Private Sub InitializeComponent() \u88e1\u9762\u7684\u6240\u6709\u5143\u4ef6\u7684\u5ba3\u544a\u7a0b\u5f0f\u78bc\u90fd\u8907\u88fd\u3002<\/p>\n<p>g.\u518d\u958b\u555f Employee_Designer.vb<br \/>\n\u627e\u5230 Private Sub InitializeComponent()<br \/>\n\u5c07Private Sub InitializeComponent() \u88e1\u9762\u7684\u7a0b\u5f0f\u78bc&#8221;\u8986\u84cb&#8221;<\/p>\n<p>h.\u5927\u529f\u544a\u6210\u3002<\/p>\n<p>4.\u6253\u958bEmployee.vb\uff0c\u5c31\u6703\u770b\u5230\u4e4b\u524dbefore_Employee.vb\u7684\u5ba3\u544a\u7684\u5143\u4ef6\u4e86\u3002<\/p>\n<p>\u5f8c\u8a9e\uff1a<br \/>\n\u9019\u6a23\u624d\u662f\u771f\u6b63\u8f49\u6210VS 2005 \u7684\u5c08\u6848\u3002\u81ea\u52d5\u8f49\u8f49\u5f97\u4e0d\u597d\uff0c\u9084\u662f\u8981\u624b\u52d5\u8cbc\u7a0b\u5f0f\u78bc\u3002<br \/>\n2005\u5c07\u8a2d\u8a08\u5143\u4ef6\u7684\u7a0b\u5f0f\u78bc\u653e\u5728 _Designer.vb\uff0c\u9019\u500b\u9ede\u5b50\u6709Delphi\u7684\u5473\u9053\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \u57282003\u7684\u7de8\u8b6f\u5668\u4e0b\uff1a \u5c072003\u6240\u6709\u7684Form\u3001\u985e\u5225\u3001Modual&#8230;\u7b49\u7a0b\u5f0f\u78bc\uff0c\u4f9d\u5c08\u6848\u7684\u5206\u985e &hellip; <a href=\"https:\/\/jason695.why3s.tw\/wordpress\/2006\/07\/05\/%e8%bd%89%e8%b2%bc%e5%b0%87vs2003%e8%bd%89%e6%88%90vs2005%e7%9a%84%e6%ad%a5%e9%a9%9f\/\" class=\"more-link\">\u95b1\u8b80\u5168\u6587 <span class=\"screen-reader-text\">[\u8f49\u8cbc]\u5c07VS2003\u8f49\u6210VS2005\u7684\u6b65\u9a5f<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2],"tags":[],"class_list":["post-82","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\/82","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=82"}],"version-history":[{"count":0,"href":"https:\/\/jason695.why3s.tw\/wordpress\/wp-json\/wp\/v2\/posts\/82\/revisions"}],"wp:attachment":[{"href":"https:\/\/jason695.why3s.tw\/wordpress\/wp-json\/wp\/v2\/media?parent=82"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jason695.why3s.tw\/wordpress\/wp-json\/wp\/v2\/categories?post=82"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jason695.why3s.tw\/wordpress\/wp-json\/wp\/v2\/tags?post=82"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}