<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7212661668877548521</id><updated>2026-03-16T01:04:42.484+07:00</updated><category term="C++"/><category term="Code"/><category term="Hướng dẫn"/><category term="Lập trình"/><category term="Thuật toán"/><category term="Application"/><category term="BigInteger"/><category term="Bí kíp"/><category term="Bắt link"/><category term="C#"/><category term="Cà Phê"/><category term="Cà Phê Leng Keng"/><category term="Căn bậc hai"/><category term="Form"/><category term="JavaScript"/><category term="JavaScript Trick"/><category term="LATGACH"/><category term="Linh Tinh"/><category term="Lát Gạch"/><category term="Nhảm"/><category term="SQRT"/><category term="Thủ thuật"/><category term="Tricks"/><category term="Tùy biến"/><category term="Tải nhạc"/><category term="Tải phim"/><category term="Windows"/><category term="Windows Form Application"/><category term="Ứng dụng"/><title type='text'>Nông dân fix bug</title><subtitle type='html'>Từ nông dân tới coder đến coolie</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.kingdark.org/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7212661668877548521/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://www.kingdark.org/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7212661668877548521.post-283052344002612916</id><published>2019-03-31T18:52:00.000+07:00</published><updated>2019-03-31T18:52:26.281+07:00</updated><title type='text'>Cá tháng tư 2019 và stackoverflow</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Thường thì vào cái ngày cá tháng tư hàng năm, đa số thanh niên sẽ quen thuộc với những mẩu truyện &quot;giả vờ&quot; tỏ tình để coi xem có bị thất bại thì cũng chẳng ê mặt, vì nó như trò đùa thôi mà!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1ynK905WiEXX93VjOC8wIvQ6cDf-Ou1OpV8J2Tf7IGqDP3f9WlnotF7t3ePvQoEtaxlGSFMzoHoQnYA6wnvvRgId79Uu6ro77VeuzkHyrj2GIzNfKEKaJv_uKmE0zMyunl_rhTLO8bCU/s1600/8c2d6303877008a6932869199058a91eff628288.jpg&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1ynK905WiEXX93VjOC8wIvQ6cDf-Ou1OpV8J2Tf7IGqDP3f9WlnotF7t3ePvQoEtaxlGSFMzoHoQnYA6wnvvRgId79Uu6ro77VeuzkHyrj2GIzNfKEKaJv_uKmE0zMyunl_rhTLO8bCU/s320/8c2d6303877008a6932869199058a91eff628288.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Vậy với một cộng đồng người nhỏ hơn - lập trình viên, điều thú vị gì sẽ diễn ra?&lt;br /&gt;Và như tiêu đề, đối tượng mình đề cập đến trong bài viết này diễn đàn hỏi đáp dành riêng cho lập trình viên - Stackoverflow. Và tất nhiên bao gồm cả trang stackexchange cũng đã cập nhật cá tháng tư như người người anh của mình.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
TADA!!!&lt;/h3&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKde__JL2DXvNEtHhw1Ba7QKQXQD94UPYGWR3ocYZtrfOvJMc-BARL_d8QqItbIIEckBrD5TROxvoEaUut680Zul6acDo1qbK7DJkjmAhJ7T63OgeTlBHBT_c0J7bWXJxcWN9npa695w4/s1600/full+screen.PNG&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKde__JL2DXvNEtHhw1Ba7QKQXQD94UPYGWR3ocYZtrfOvJMc-BARL_d8QqItbIIEckBrD5TROxvoEaUut680Zul6acDo1qbK7DJkjmAhJ7T63OgeTlBHBT_c0J7bWXJxcWN9npa695w4/s640/full+screen.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Điều bất ngờ xuất hiện khi truy cập vào 1 bài viết bất kỳ chứ không phải trang chủ, một giao diện vừa quen thuộc vừa lạ lẫm, một phong cách thiết kế từ thập niên 90 với sự màu mè mà đến mình còn tưởng vào lộn chỗ!! =)))&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;
Cùng điểm qua vài điều hay ho của stackoverflow&#39;s april fool nào:&lt;/h3&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZMuntUyqEN-d-DAp8hORqyZoAtaeBPCtKLmm1DmFBmR05poMumpQaSRvnqnQlpLa6gFu6Het6twH3hfXBCK1Cn0vjVwgyTEERMMl26WBrSbSCDBZrQZhhQr4iIFZvddSHYjZE5h89Z7c/s1600/go+to+future.PNG&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;313&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZMuntUyqEN-d-DAp8hORqyZoAtaeBPCtKLmm1DmFBmR05poMumpQaSRvnqnQlpLa6gFu6Het6twH3hfXBCK1Cn0vjVwgyTEERMMl26WBrSbSCDBZrQZhhQr4iIFZvddSHYjZE5h89Z7c/s320/go+to+future.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Hãy cùng chú ý phần bên trái, thường được gọi là left sidebar đó, ngoài phần đầu con ngựa được dùng để &quot;đối&quot; với đuôi nó ở bên phải, ta sẽ cùng chú ý tới khu vực &quot;caution&quot; nhé:&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
- Nút du hành thời gian &quot;Go to the future&quot;: hiệu ứng khi click vào là bạn sẽ được &quot;trở về hiện tại&quot; thôi, nghĩa là stackoverflow trở về nguyên trạng như chưa có gì sảy ra&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
- Và một điểm có lẽ ít người để ý, đó là dòng chữ &quot;Big changes for Y2K!&quot;. Y2K là một cụm từ nói về vấn đề xử lý thời gian của máy tính, trước năm 2000, người ta đã lường trước việc rất nhiều hệ thống máy tính bị sụp đổ do thời gian thay đổi từ mốc 1999 tới 2000. Để biết thêm chi tiết, mời bạn đọc google từ khoá Y2K nhé!!&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgP8QrkH2RsVdMDhFWnjiUUkrwuQYU-wsk8C3u4jbGpmsEy0nbeIk6guDUeTAg4O-HyVsy46Gh_Rt4F3g5U0Qrh-E-tjRnRIA00C4N9_li_ARLK_VZ183mpx8nve_QH92ZXqZAPOzQ_gbY/s1600/time+travel.PNG&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;173&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgP8QrkH2RsVdMDhFWnjiUUkrwuQYU-wsk8C3u4jbGpmsEy0nbeIk6guDUeTAg4O-HyVsy46Gh_Rt4F3g5U0Qrh-E-tjRnRIA00C4N9_li_ARLK_VZ183mpx8nve_QH92ZXqZAPOzQ_gbY/s400/time+travel.PNG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Và nút &quot;time travel&quot; cũng xuất hiện ở top nav - thứ duy nhất &quot;bỗng nhiên&quot; xuất hiện ở thập niên 90.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi83E-J3EYx918fXyUtIu9yTfdgPfHh3BIV77r7cg_aYwu81SE7-vKpZWyke8rdYcinGnyVkUlY0dvLU2gmtxe4r3sDsr3JjxoL01nJdzaMXDWk9wzUf6xhBLgnCP9erBKmG4CXZ_2xyBU/s1600/running+bann%25E1%25BA%25BB.PNG&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;82&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi83E-J3EYx918fXyUtIu9yTfdgPfHh3BIV77r7cg_aYwu81SE7-vKpZWyke8rdYcinGnyVkUlY0dvLU2gmtxe4r3sDsr3JjxoL01nJdzaMXDWk9wzUf6xhBLgnCP9erBKmG4CXZ_2xyBU/s640/running+bann%25E1%25BA%25BB.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Và thứ &quot;mà lâu rồi rồi chúng ta chưa gặp mặt&quot; cũng được xuất hiện, vẫn này chạy cuộn lung tung và dùng font chữ của những bậc thầy thiết kế thời bấy giờ!!&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjri07dVkKZ70uzSwNza3GF2gE7bg3Y0c-JH53sOqL54sAVbUCQVCU4gLYpS0V5GyI5vTRRwP-jBf8Pt3RI_aUq4s9BVj-FOcqxW-b_hZrCUfy4pHCsMJW4XMwhguHoL2LRc5bCX2WYkk0/s1600/guestbook.PNG&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;230&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjri07dVkKZ70uzSwNza3GF2gE7bg3Y0c-JH53sOqL54sAVbUCQVCU4gLYpS0V5GyI5vTRRwP-jBf8Pt3RI_aUq4s9BVj-FOcqxW-b_hZrCUfy4pHCsMJW4XMwhguHoL2LRc5bCX2WYkk0/s640/guestbook.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Và phần cuối cùng, 1 guestbook to tướng ngay phía trước footer.&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
Tuy nhiên&lt;/h2&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Liệu rằng với một lập trình viên thì từng đó đã đủ thoả mãn chưa? Với mình thì chưa, vậy lên chúng ta ngó nghiêng tiếp nhé!!&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyb5NULq-YrFv_Og3AhRM2X1k2KUr_iksD4Gj8pnx4rpMjEURgQ8WkNIP77ObdFJhmfqCBDC8afvdWwQcr6uI-o-ExKiVSsDmBZ5UZvBeRG0t3-IqF-a_XMLSIGrHRo321-SHU4GSjoT4/s1600/html+comment.PNG&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;322&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyb5NULq-YrFv_Og3AhRM2X1k2KUr_iksD4Gj8pnx4rpMjEURgQ8WkNIP77ObdFJhmfqCBDC8afvdWwQcr6uI-o-ExKiVSsDmBZ5UZvBeRG0t3-IqF-a_XMLSIGrHRo321-SHU4GSjoT4/s640/html+comment.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Khi coi code của trang, nhìn ngó một chút thì anh bạn kỳ lân của chúng ta lại xuất hiện ở đây dưới dạng 1 ascii art.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyyVjLiz0TfkZoMUsfWtR2PFQUTc1FeXs1XSrWinDyfuZNXOq0mzGEupTpoYJlIk4S92RiXJMFhxb1Y479jJ_Mfjl6zMAieLFN1zp-Ji5HpseuNhkjGx9bZb7bSSd48sNGQVhzHy6GrMQ/s1600/fake+comment.PNG&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;464&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyyVjLiz0TfkZoMUsfWtR2PFQUTc1FeXs1XSrWinDyfuZNXOq0mzGEupTpoYJlIk4S92RiXJMFhxb1Y479jJ_Mfjl6zMAieLFN1zp-Ji5HpseuNhkjGx9bZb7bSSd48sNGQVhzHy6GrMQ/s640/fake+comment.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Và một đoạn mã chứa những comment xuất hiện trong phần guestbook, hãy cố gắng đọc hết chúng nhé!! Rất thú vị đấy!!&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;
Kết.&lt;/h3&gt;
Vậy là dù tại thời điểm mình viết bài này, tại Việt Nam vẫn chưa chuyển sang ngày 1-4-2019, nhưng stackoverflow đã đi trước một bước so với các công cụ công nghệ khác, đem lại nhiều thứ hay ho nhất là &quot;ký ức&quot; về những gì website trước đây từng là.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;*Link bài mình lấy mẫu chụp ảnh:&amp;nbsp;&lt;a href=&quot;https://stackoverflow.com/questions/55440055/cant-remove-data-because-of-child-reference-error&quot;&gt;https://stackoverflow.com/questions/55440055/cant-remove-data-because-of-child-reference-error&lt;/a&gt;&lt;/i&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.kingdark.org/feeds/283052344002612916/comments/default' title='Đăng Nhận xét'/><link rel='replies' type='text/html' href='http://www.kingdark.org/2019/03/ca-thang-tu-2019-va-stackoverflow.html#comment-form' title='1 Nhận xét'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7212661668877548521/posts/default/283052344002612916'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7212661668877548521/posts/default/283052344002612916'/><link rel='alternate' type='text/html' href='http://www.kingdark.org/2019/03/ca-thang-tu-2019-va-stackoverflow.html' title='Cá tháng tư 2019 và stackoverflow'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1ynK905WiEXX93VjOC8wIvQ6cDf-Ou1OpV8J2Tf7IGqDP3f9WlnotF7t3ePvQoEtaxlGSFMzoHoQnYA6wnvvRgId79Uu6ro77VeuzkHyrj2GIzNfKEKaJv_uKmE0zMyunl_rhTLO8bCU/s72-c/8c2d6303877008a6932869199058a91eff628288.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7212661668877548521.post-2130407886186809315</id><published>2016-11-09T23:51:00.000+07:00</published><updated>2016-11-09T23:52:49.205+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C++"/><category scheme="http://www.blogger.com/atom/ns#" term="Code"/><category scheme="http://www.blogger.com/atom/ns#" term="Căn bậc hai"/><category scheme="http://www.blogger.com/atom/ns#" term="Lập trình"/><category scheme="http://www.blogger.com/atom/ns#" term="SQRT"/><category scheme="http://www.blogger.com/atom/ns#" term="Thuật toán"/><title type='text'>Lại vấn đề giải thuật... Căn bậc 2 của một số??? How to SQRT(x)??</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Không biết có được coi là vấn đề nhức nhối không nhỉ??.. :v&lt;br /&gt;
&lt;br /&gt;
Cái vấn đề căn bậc 2 của một số nguyên dương hẳn là ai ai cũng biết rồi... từ việc lần mò tính toán rồi nhớ nhớ quên quên mấy cái công thức hay dãy ăn sẵn gì gì ấy trong toán đại số ( đậu,.. mình ghét Đại.. :&#39;( ) cho tới làm sao để máy tính hiểu rồi tính hộ mình được thì ai cũng thấy quen thuộc rồi...&lt;br /&gt;
Và cái √ còn xuất hiện ở rất nhiều nơi, có mặt ở hết công thức toán học này, lại đến công thức vật lý nọ,... Cơ bản thì nghĩ cũng đau đầu phết,... nhất là khi vấn đề rơi vào đầu cái thằng ghét đặc toán như mình,.. ( làm mình lại nhớ đến cảnh Đờ Sa Cu Ra,.. à nhầm Dracula ăn phải bát bún tưới giấm tỏi ớt.. :v )&lt;br /&gt;
&lt;br /&gt;
Thôi,.. xàm xàm suốt lại bị các thánh chửi,.. em vào đề vậy,... Chả là hôm bữa,.. &quot;đi chơi ở Hà Nội&quot; bị &quot;cả hội&quot; đố tính cạnh của hình vuông, cho trước diện tích... ô uê...&lt;br /&gt;
&lt;br /&gt;
&lt;script src=&quot;https://gist.github.com/DK189/0fcbeafd8cfdc4943552de8b49f0b779.js?file=easy_way.cpp&quot;&gt;&lt;/script&gt;

cơ mà điều kiện là méo được động đến thư viện nào cả,.. chơi với rẽ nhánh, với lặp, với&amp;nbsp;+-*/ thôi...&lt;br /&gt;
ờ,.. cũng ô tô kê,.. lại hì hục code code kiếc kiếc cái hàm,...&lt;br /&gt;
&lt;br /&gt;
&lt;script src=&quot;https://gist.github.com/DK189/0fcbeafd8cfdc4943552de8b49f0b779.js?file=without_cmath_library.cpp&quot;&gt;&lt;/script&gt;

Có mỗi thế thôi mà,... cần chi phải viết blog nhỉ.. ??..!!&lt;br /&gt;
&lt;br /&gt;
Đùa thế chứ chưa hết đâu,.. hôm nay ngồi trên giảng đường ấy,.. tiết thảo luận thì cô cho &quot;chơi&quot; mà... hehe,.. vậy là bỏ nháp ra chơi game,.. ngồi một lúc tự dưng ngâm ra được cái ý nghĩ giảm độ phức tạp của chương trình tính căn bậc 2 xuống,.. test tiếc các kiểu, check vài trường hợp nhỏ,.. bắt đầu viết giả mã và chạy tay,... âu dia... quay sang hỏi thằng bạn,.. giờ tính căn của một số thì mày làm thế nào?? ừa,... để tao đoán nhé,.. for à,... nó ngẫm nghĩ một lúc,... nghe cách nó cũng thấy khá hay,.. giảm được cơ số độ phức tạp luôn!! :v&lt;br /&gt;
&lt;br /&gt;
Cách nó thì thế này ( mình chỉ nói lại ý hiểu của mình theo cách nó mô ta chứ chưa code thử ) :&lt;br /&gt;
- B1: Tạo số a bằng số bị căn&lt;br /&gt;
- B2: Lấy a chia cho 2 rồi gắn kết quả vào a&lt;br /&gt;
- B3: Kiểm tra a * a có lớn hơn số bị căn, nếu có thì quay lại bước 2, không thì qua bước 4&lt;br /&gt;
- B4: Tới đây thì lại chạy cái vòng lặp for hay while gì đó để tính căn,.. khác là mình cho chạy soChia từ a thôi.. :3&lt;br /&gt;
&lt;br /&gt;
Cơ mà với mình thì chưa thoả mãn.. :3&lt;br /&gt;
Vậy là từ cái đống trong 2 tờ nháp,.. mình bắt đầu code trên máy,.. và sau một hổi test, debug các các kiểu cuối cùng cũng ra lò.. :3
&lt;br /&gt;
&lt;script src=&quot;https://gist.github.com/DK189/0fcbeafd8cfdc4943552de8b49f0b779.js?file=my_sqrt.cpp&quot;&gt;&lt;/script&gt;

&lt;br /&gt;
Trên là code của mình đã commend các kiểu cho dễ hiểu,.. mình đã test với một vài trường hợp và với ví dụ input của chương trình là:&lt;br /&gt;
900000000000000 thì kết quả nhận được là 30000000 với số lần lặp của trường hợp này là 17!!&lt;br /&gt;
&lt;br /&gt;
à, code của mình mới chỉ tính căn của các số nguyên dương thôi,.. các bạn có cao kiến gì thì chỉ mình với nhé!!&lt;br /&gt;
&lt;br /&gt;
Trên là phần xàm xàm của mình, các bạn có gì góp ý thì commend cho mình biết với nhé!!&lt;br /&gt;
&lt;br /&gt;
Thanks for watch!&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.kingdark.org/feeds/2130407886186809315/comments/default' title='Đăng Nhận xét'/><link rel='replies' type='text/html' href='http://www.kingdark.org/2016/11/can-bac-hai-cua-mot-so.html#comment-form' title='0 Nhận xét'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7212661668877548521/posts/default/2130407886186809315'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7212661668877548521/posts/default/2130407886186809315'/><link rel='alternate' type='text/html' href='http://www.kingdark.org/2016/11/can-bac-hai-cua-mot-so.html' title='Lại vấn đề giải thuật... Căn bậc 2 của một số??? How to SQRT(x)??'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7212661668877548521.post-8389600906957797082</id><published>2016-11-03T00:15:00.000+07:00</published><updated>2016-11-03T00:15:32.739+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="BigInteger"/><category scheme="http://www.blogger.com/atom/ns#" term="C++"/><category scheme="http://www.blogger.com/atom/ns#" term="LATGACH"/><category scheme="http://www.blogger.com/atom/ns#" term="Lát Gạch"/><category scheme="http://www.blogger.com/atom/ns#" term="Thuật toán"/><title type='text'>Bài toán Lát Gạch và Fibonanci và BigInteger</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Bài toán gốc nằm ở đây:&amp;nbsp;http://vn.spoj.com/problems/LATGACH/&lt;br /&gt;
&lt;br /&gt;
Nguyên văn đầu bài như sau:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; text-align: justify;&quot;&gt;Cho một hình chữ nhật kích thước 2xN (1&amp;lt;=N&amp;lt;=100). Hãy đếm số cách lát các viên gạch nhỏ kích thước 1x2 và 2x1 vào hình trên sao cho không có phần nào của các viên gạch nhỏ thừa ra ngoài, cũng không có vùng diện tích nào của hình chữ nhật không được lát.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 14px;&quot;&gt;Sau khi ngồi ngâm cứu cùng anh em,... mình phát hiện ra bài toán này có bộ input và output là vị trí và kết quả tương ứng của dãy fibonanci...&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 14px;&quot;&gt;kết quả test ban đầu như sau:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;N: &amp;nbsp; 1 &amp;nbsp; &amp;nbsp;2 &amp;nbsp; 3 &amp;nbsp; 4 &amp;nbsp; 6 &amp;nbsp; 7&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;KQ: 1 &amp;nbsp; 2 &amp;nbsp; 3 &amp;nbsp; 5 &amp;nbsp; 8 &amp;nbsp; 13&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;mấy anh em mình chỉ test đến 7 thôi chứ vẽ ra giấy nó hoa hết cả mắt,.. ( mà mình học xác suất ngu lắm,.. chứ không thì đã đi chơi xổ số kiểu mĩ rồi.. :v )&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;nhìn theo cái dãy kết quả thì nó khá tương đông với dãy fibonanci&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;1 1 2 3 5 8 13 21 ...&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 14px;&quot;&gt;Ok,.. vậy ra nó là chơi với Fibo à.. :3 ( đoán thế,.. chưa accept thì chưa biết thế nào )&lt;br /&gt;Thế là anh em ngồi code vài dòng đệ quy của fibo:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;script src=&quot;https://gist.github.com/DK189/d9b3682c5300c4a6093191c1c87c9b9f.js?file=fibo_emrua.cpp&quot;&gt;&lt;/script&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 14px;&quot;&gt;Ơ,.. nhưng để ý tiếp yêu cầu của bài,.... giới hạn về thời gian vậy nên chỉ fibo thôi chưa đủ,.. chứ tính trường hợp xấu nhất xem,.. số test case là 100 và test case là 100... vậy là một anh đề xuất,.. hay là ta khởi tạo một mảng fibo 100 phần tử ban đầu xem!! Ừm nhất chí,.. có xấu xa thế nào thì cũng chỉ phải đệ quy 100 lân đầu.. :v&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 14px;&quot;&gt;Riêng mình thì sẽ gắn cờ và chơi lưu vết... là đi đến đâu mới cắm cờ đến đấy ý... như vậy sẽ không nhất thiết phải chạy hết 100 lần fibo..&lt;br /&gt;
&lt;script src=&quot;https://gist.github.com/DK189/d9b3682c5300c4a6093191c1c87c9b9f.js?file=fibo_long.cpp&quot;&gt;&lt;/script&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 14px;&quot;&gt;Yeah..!! Sau khi cơ bản đã ổn thoả,.. Submit thôi,... oh no... báo Wrong các bạn ạ,... vậy là mình thử test trường hợp xấu nhất,... FIBO[100],.. theo trương trình c++ của mình là một số có 20 chứ số,.. tra google thì ra cái list fibo và ôi trời ơi,.. FIBO[101] có độ dài là 22 chữ số,.. vậy nên mình nghĩ ngay tới BigInt,..&lt;br /&gt;Vì đề hiếu hơn về BigInt, mình có google và ra một số bài trên stackoverflow hay cộng đồng C Việt,.. cơ mà mình đọc méo hiểu gì,... nội dung của mấy cái đó đều xoay quanh việc làm sau để phân mảnh dữ liệu thành nhiều phần nhỏ để lưu trữ một biến lớn,... ( chắc tại mình ngu ý mà :3 ),.. cuối cùng mình nghĩ đến xử lí chuỗi,... theo quan điểm của mình thì làm kiểu phân mảnh như mấy bài kia chắc là đẹp nhất, tối ưu nhất và hiệu quả hơn các dùng chuỗi mà mình làm... nhưng đọc mấy cái đấy khó hiểu nên tự làm cái dễ dễ thôi....&lt;br /&gt;&lt;br /&gt;
&lt;script src=&quot;https://gist.github.com/DK189/d9b3682c5300c4a6093191c1c87c9b9f.js?file=BigInt.cpp&quot;&gt;&lt;/script&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 14px;&quot;&gt;Và như trên chính là cách mình áp dụng để làm phép được tính&amp;nbsp;+ của kiểu BigInt, sau đó thay long long FIBO thành BigInt FIBO thôi... hehe!!&lt;br /&gt;&lt;br /&gt;Và Cuối dùng, sau khi mọi thứ đã hoàn thiện, đây là code mình đã Submit lên và Accept!!&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 14px;&quot;&gt;

&lt;script src=&quot;https://gist.github.com/DK189/d9b3682c5300c4a6093191c1c87c9b9f.js?file=LATGACH.cpp&quot;&gt;&lt;/script&gt;

&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 14px;&quot;&gt;Toàn bộ code:&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;https://gist.github.com/DK189/d9b3682c5300c4a6093191c1c87c9b9f&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.kingdark.org/feeds/8389600906957797082/comments/default' title='Đăng Nhận xét'/><link rel='replies' type='text/html' href='http://www.kingdark.org/2016/11/bai-toan-lat-gach-va-fibonanci.html#comment-form' title='3 Nhận xét'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7212661668877548521/posts/default/8389600906957797082'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7212661668877548521/posts/default/8389600906957797082'/><link rel='alternate' type='text/html' href='http://www.kingdark.org/2016/11/bai-toan-lat-gach-va-fibonanci.html' title='Bài toán Lát Gạch và Fibonanci và BigInteger'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7212661668877548521.post-934579173878140450</id><published>2016-03-11T09:03:00.000+07:00</published><updated>2016-05-12T14:03:02.985+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript Trick"/><category scheme="http://www.blogger.com/atom/ns#" term="Tricks"/><title type='text'>[JavaScript Tricks] Thêm phương thức &quot;ngày trong tuần&quot; cho lớp Date</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhu5uyUcECvr_hy_RbGNKxedS8ULPX0tR-9Pn_HgbCzItsh8hBl2l3mxgLbJ4JfABBN4qSEoN76Iref75UFxDbPv7Q-icxYfNv1HprLFn6b0rsKoCYchcAaxHZlaAFGu6PMOsMVohQ2Bg/s1600/Logo.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;152&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhu5uyUcECvr_hy_RbGNKxedS8ULPX0tR-9Pn_HgbCzItsh8hBl2l3mxgLbJ4JfABBN4qSEoN76Iref75UFxDbPv7Q-icxYfNv1HprLFn6b0rsKoCYchcAaxHZlaAFGu6PMOsMVohQ2Bg/s320/Logo.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Khi làm việc với javascript, hẳn không ai là không biết đến lớp Date cũng như việc sử dụng các đối tượng từ lớp Date. Trong bài viết này, mình sẽ hướng dẫn mọi người thêm phương thức getWDay vào lớp Date nhằm thêm chức năng lấy ngày trong tuần dưới dạng chữ với cú pháp đơn giản.&lt;br /&gt;
&lt;br /&gt;
Để bắt đầu, phiên mọi người mở cửa sổ console của trình duyệt lên ( Phím tắt F12 trên đa số trình duyệt ).&lt;br /&gt;
&lt;br /&gt;
Khởi tạo một đối tượng từ Date: &lt;span style=&quot;color: red;&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;a = &lt;span style=&quot;color: red;&quot;&gt;new &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;Date&lt;/span&gt;();&lt;br /&gt;
Lúc này ta có thể dùng đối tượng a và các phương thức của nó!!&lt;br /&gt;
&lt;br /&gt;
Lúc này bạn hãy thử dòng lệnh sau:&amp;nbsp;&lt;span style=&quot;background-color: white; color: #222222; font-family: &amp;quot;consolas&amp;quot; , &amp;quot;lucida console&amp;quot; , monospace; font-size: 12px; white-space: pre-wrap;&quot;&gt;console.log(a.getDay());&lt;/span&gt;&lt;br /&gt;
Dữ liệu trả về là một số và nếu dùng&amp;nbsp;&lt;span style=&quot;background-color: white; color: #222222; font-family: &amp;quot;consolas&amp;quot; , &amp;quot;lucida console&amp;quot; , monospace; font-size: 12px; white-space: pre-wrap;&quot;&gt;console.log(typeof a.getDay()); &lt;/span&gt;thì ta thu được kiểu dữ liệu mà getDay trả về là kiểu số.&lt;br /&gt;
&lt;br /&gt;
Lúc này, ta sẽ lợi dụng phương thức getDay của class Date để tạo phương thức getWDay nhằm trả về ngày trong tuần ở dạng chữ như Monday, Tuesday,... Thứ hai, Chủ nhật,.... blabla...&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: &amp;quot;consolas&amp;quot; , &amp;quot;lucida console&amp;quot; , monospace; font-size: 12px; white-space: pre-wrap;&quot;&gt;Date.prototype.getWDay = function () {
 var arr = [
  &quot;Chủ nhật&quot;,
  &quot;Thứ hai&quot;,
  &quot;Thứ ba&quot;,
  &quot;Thứ tư&quot;,
  &quot;Thứ năm&quot;,
  &quot;Thứ sáu&quot;,
  &quot;Thứ bảy&quot;
 ];
 return arr[this.getDay()];
};
&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: &amp;quot;consolas&amp;quot; , &amp;quot;lucida console&amp;quot; , monospace; font-size: 12px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Sau khi chạy đoạn mã trên, lúc này khi tạo đối tượng thuộc lớp Date, các đối tượng sẽ được kế thừa thêm phương thức getWDay. Để tuỳ biến dạng thứ trả về, bạn có thể thay đổi trực tiếp trong đoạn mã trên.&lt;br /&gt;
&lt;br /&gt;
Giờ chỉ cần chạy a.getWDay() để xem nó có trả về đúng thứ như trên hệ thống không!!&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: magenta;&quot;&gt;+Bonus+ &lt;/span&gt;Đoạn mã rút gọn chèn trực tiếp vào website:&lt;/div&gt;
Date.prototype.getWDay = function () {&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;return [&quot;Chủ nhật&quot;, &quot;Thứ hai&quot;, &quot;Thứ ba&quot;, &quot;Thứ tư&quot;, &quot;Thứ năm&quot;, &quot;Thứ sáu&quot;, &quot;Thứ bảy&quot;][this.getDay()];&lt;br /&gt;
};&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.kingdark.org/feeds/934579173878140450/comments/default' title='Đăng Nhận xét'/><link rel='replies' type='text/html' href='http://www.kingdark.org/2016/03/javascript-tricks-them-phuong-thuc-ngay.html#comment-form' title='0 Nhận xét'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7212661668877548521/posts/default/934579173878140450'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7212661668877548521/posts/default/934579173878140450'/><link rel='alternate' type='text/html' href='http://www.kingdark.org/2016/03/javascript-tricks-them-phuong-thuc-ngay.html' title='[JavaScript Tricks] Thêm phương thức &quot;ngày trong tuần&quot; cho lớp Date'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhu5uyUcECvr_hy_RbGNKxedS8ULPX0tR-9Pn_HgbCzItsh8hBl2l3mxgLbJ4JfABBN4qSEoN76Iref75UFxDbPv7Q-icxYfNv1HprLFn6b0rsKoCYchcAaxHZlaAFGu6PMOsMVohQ2Bg/s72-c/Logo.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7212661668877548521.post-2555185943392318287</id><published>2015-11-28T00:56:00.002+07:00</published><updated>2015-11-28T00:56:57.048+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cà Phê"/><category scheme="http://www.blogger.com/atom/ns#" term="Cà Phê Leng Keng"/><category scheme="http://www.blogger.com/atom/ns#" term="Linh Tinh"/><category scheme="http://www.blogger.com/atom/ns#" term="Nhảm"/><title type='text'>Cà Phê - tôi uống và lảm nhảm.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hôm nay được dịp nhâm nhi Cà Phê với vài người bạn, tôi bỗng nhiên lại nổi ứng viết lách một chút. Chủ đề thì như tiêu đề thôi, xoay quanh ly Cà Phê ( Đen ).&lt;br /&gt;&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjp-PLS3MXPvNnjOmoYKQBuIqYiSYgTEaGdB1enqoqtRX6-TwxFZxuEdN19XXAOPaACZuG26Y9ChWiplGIJliANsc_mgUZ2Hs-z2FmrhcuQ1bDDgKTMZLByzl7nqDYE4aKxGO5wky_MO9I/s1600/12190905_164251130590766_2368455391599023733_n.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;356&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjp-PLS3MXPvNnjOmoYKQBuIqYiSYgTEaGdB1enqoqtRX6-TwxFZxuEdN19XXAOPaACZuG26Y9ChWiplGIJliANsc_mgUZ2Hs-z2FmrhcuQ1bDDgKTMZLByzl7nqDYE4aKxGO5wky_MO9I/s640/12190905_164251130590766_2368455391599023733_n.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;font-size: 12.8px;&quot;&gt;&lt;a href=&quot;https://www.facebook.com/caphe.lengkeng&quot; target=&quot;_blank&quot;&gt;Cà Phê Leng Keng&lt;/a&gt;&amp;nbsp;- Một góc nhỏ mà đủ to để tôi cảm và nhận tư vị của Cà Phê.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;Thế nào nhỉ? Ừm thì có chút Cà Phê vào nên não hay hoạt động lung tung, thôi thì để tôi bắt đầu cách tôi và Cà Phê đến với nhau vậy, sau dẫn đến đâu thì hay đến đấy.&lt;br /&gt;
&lt;br /&gt;Trước đây, chắc cũng lâu lắm rồi, 5 hay 6 năm gì đấy, theo đánh giá về tuổi thì tôi cũng tầm tuổi thanh thiếu niên, mà để tôi tự đánh giá thì cứ nhận mình là trẻ con vậy. Hồi bé tôi nghịch ngợm lắm, vậy nên cũng dễ hiểu khi tôi dám thử nhiều ( cũng may là chưa liều cái món chất cấm - ha ha, đùa thôi :) ). Thủa đấy thì Cà Phê cũng tương đối xa lạ ở vùng quê tôi, nông thôn mà, ăn mì tôm còn lười đun nước chứ đừng nói là mấy anh em ngồi với nhau đợi già nước ngắm giọt Cà Phê rơi, có chăng chỉ là một vài người rời quê hương đi xa xứ, vì cuộc sống làm ăn mà bầu bạn với thuốc lá, Cà Phê. Cũng hay là bố tôi thuộc số ít người đó!&lt;br /&gt;
&lt;br /&gt;
Bố tôi làm ăn xa nhà từ rất sớm, phải bươn trải nhiều nơi đất khách. Cũng vì việc không đợi người nên hồi ấy, 1 năm cũng chỉ cố về được 2 lần là dịp tết với dịp giữa năm mà thôi. Bố tôi thì hay uống Cà Phê, nên Tết nhất đến là kiểu gì trong nhà cũng thơm hương Cà Phê lắm.&lt;br /&gt;
Thơm thì thơm nhưng với thằng nhóc mới lớn như tôi thì nó quyến rũ không phải do thơm mà do &quot;đắng&quot;. Đừng nhầm với việc tôi thích đắng nhé, cái tuổi mới lớn như tôi thì chỉ có đường và chế phẩm từ đường mới ngon thôi, &quot;đắng&quot; quyến rũ là bởi nó là sự thách thức với tôi, sự thách thức để đến lớp thì kênh với mấy thằng bạn rằng &quot;Bạn chúng mày &#39;thích&#39; uống Cà Phê đấy, mày dám thử không?&quot;. Thế mà tôi cũng nốc hết cốc Cà Phê thật, cơ bản là mẹ tôi pha thêm nửa cốc ông thọ chứ không chắc tôi cũng chả uống nổi nó rồi!! =))&lt;br /&gt;&lt;br /&gt;Thế mà cả cái tết tôi lại thích uống Cà Phê - Cà Phê Sữa, vì mẹ tôi pha cho tôi thơm như kẹo, cũng là vì trời lạnh cầm cốc Cà Phê nóng thì ấm,.. &amp;nbsp;mà cái lý do to hơn nữa thì, nhìn &quot;người lớn&quot; hơn bao nhiêu!!! :)&lt;br /&gt;Thế là thích Cà Phê rồi!! =))&lt;br /&gt;&lt;br /&gt;Dần dà thì cái sở thích này nó ngấm vào máu luôn, bị quyến rũ bởi chính Cà Phê chứ không còn là sự thách thức tuổi mới lớn nữa. Tôi bắt đầu thử nhiều loại, Cà Phê tan, Cà Phê phin, Cà Phê sữa, Cà Phê đen, Cà Phê mix,..blabla... nhiều loại quá mà mỗi loại cho tôi những cảm nhận và hứng thú riêng, có lẽ do vậy mà - theo quan điểm cá nhân tôi - &quot;TÔI THƯỞNG THỨC CÀ PHÊ HƠI LẬP DỊ&quot;...&lt;br /&gt;Với tôi mà nói, chẳng có thứ Cà Phê gì ngon hay không ngon, chẳng có loại gì là nhất phẩm, nhị phẩm cả.. mỗi tách Cà Phê lại đem theo chất riêng chứ không chẳng hề bắt chước người anh em nào khác. Từ vị đắng của hạt Cà Phê, chất đặc chưng của môi trường nuôi dưỡng, độ rang, độ ủ, cho tới hạt Cà Phê sau khi nghiền hay phin pha Cà Phê lại có chút gì đó riêng làm tách Cà Phê đem lại cho tôi những tư vị riêng.&lt;br /&gt;&lt;br /&gt;Nhưng theo bạn thì trong tách cà phê có thứ gì riêng không? Tôi nói là có đấy. Từ ngụm đầu tiên cho tới khi ly Cà Phê đã cạn, tôi thấy có thứ gì đó riêng - RẤT riêng của mỗi lần nhấp Cà Phê, có lẽ Cà Phê dễ đổi vị, chỉ cần một tác nhân nhỏ cũng khiến &quot;miếng&quot; Cà Phê có thêm vị mới. Do nguội, do lưỡi bị đánh lừa, Và thứ mà theo tôi thì nó quan trọng hơn cả - Cảm xúc và dòng suy nghĩ. Cá nhân tôi khi đã có chút Cà Phê trong người thì não hay hoạt động bất thường, về vấn đề code, về chuyện chính trị, về tin quốc tế, có khi lại chuyện cuộc sống nhân sinh, à còn cả thơ nữa:&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&quot;Thơ thẩn, thẩn thơ, đời thơ thẩn&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
Đắng miệng, ngọt lòng, ly Cà Phê&quot;&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Nhưng Cà Phê đâu chỉ là thức uống, nó còn là món gia vị để tôi cảm nhận rõ hơn về cuộc sống xung quanh, từ những việc tôi đã làm, từ những thứ tôi tiếp xúc và cả những mối quan hệ giữa tôi với mọi người. Và tôi nhận ra, cái &quot;triết lý&quot; mà tôi đặt cho cách tôi uống Cà Phê, nó đã chỉ ra khá chính xác về chính bản thân tôi, về cách mà tôi sống.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;i&gt;&quot;Mỗi thứ trong cuộc sống đều ứng với một tách Cà Phê, chúng không có khái niệm hay hoặc dở,&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;i&gt;có chăng là do cách con người ta cảm nhận những vị khác nhau của chúng mà đưa ra những&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;i&gt;quan điểm mang tính cá nhân về vấn đề mà chính bản thân còn chưa hoản toàn rõ ràng thôi.&quot;&lt;/i&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.kingdark.org/feeds/2555185943392318287/comments/default' title='Đăng Nhận xét'/><link rel='replies' type='text/html' href='http://www.kingdark.org/2015/11/Ca-Phe--toi-uong-va-lam-nham.html#comment-form' title='0 Nhận xét'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7212661668877548521/posts/default/2555185943392318287'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7212661668877548521/posts/default/2555185943392318287'/><link rel='alternate' type='text/html' href='http://www.kingdark.org/2015/11/Ca-Phe--toi-uong-va-lam-nham.html' title='Cà Phê - tôi uống và lảm nhảm.'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjp-PLS3MXPvNnjOmoYKQBuIqYiSYgTEaGdB1enqoqtRX6-TwxFZxuEdN19XXAOPaACZuG26Y9ChWiplGIJliANsc_mgUZ2Hs-z2FmrhcuQ1bDDgKTMZLByzl7nqDYE4aKxGO5wky_MO9I/s72-c/12190905_164251130590766_2368455391599023733_n.jpg" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Quyết Thắng, tp. Thái Nguyên, Thai Nguyen, Vietnam</georss:featurename><georss:point>21.585176907261111 105.80653667449951</georss:point><georss:box>21.58333140726111 105.80401517449951 21.587022407261113 105.80905817449951</georss:box></entry><entry><id>tag:blogger.com,1999:blog-7212661668877548521.post-648113730390447269</id><published>2015-10-14T22:27:00.001+07:00</published><updated>2015-10-15T23:31:33.352+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Bí kíp"/><category scheme="http://www.blogger.com/atom/ns#" term="Bắt link"/><category scheme="http://www.blogger.com/atom/ns#" term="Hướng dẫn"/><category scheme="http://www.blogger.com/atom/ns#" term="Thủ thuật"/><category scheme="http://www.blogger.com/atom/ns#" term="Tải nhạc"/><category scheme="http://www.blogger.com/atom/ns#" term="Tải phim"/><title type='text'>Hướng dẫn lấy link tải video, nhạc trên các website không cho tải trực tiếp.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;i&gt;Bài viết này mình sẽ hướng dẫn các bạn cách tải video hoặc nhạc trên website bất kì nào đó mà không cần phải cài đặt ứng dụng, plugin hay extension nào.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
&lt;/h3&gt;
&lt;h4&gt;
&lt;/h4&gt;
&lt;h3&gt;
&lt;/h3&gt;
&lt;h3&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Cách 1: Lợi dụng khả năng &quot;bắt các gói tin&quot; trong bộ công cụ dành cho&amp;nbsp;nhà phát triển của trình duyệt. &lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;

&lt;/h3&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;( dùng được trên hầu hết các trang web, gồm cả trình phát HTML5 hoặc Flash )&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;B1. Bạn truy cập vào trang web chứa video hay nhạc bạn cần tải&lt;/li&gt;
&lt;li&gt;B2. Tiếp đó mở công cụ dành cho lập trình viên lên:&lt;br /&gt;&lt;br /&gt;Phím tắt:&lt;br /&gt;&amp;nbsp; &amp;nbsp; Chrome: &lt;span style=&quot;color: lime;&quot;&gt;CTRL&amp;nbsp;+ SHIFT&amp;nbsp;+ J&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; FireFox: &lt;span style=&quot;color: lime;&quot;&gt;CTRL&amp;nbsp;+ SHIFT&amp;nbsp;+ U&lt;/span&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCGJ3wbiCG0Mk_cvIVipzmGGGdgnT5IwLXFKKw1nCt4VP8zgkdInYO-hk8GCo7j86D12hphdglXRFOZupRzItD_8xSo4r9IOs5Vma29Ptjp9yZ1ouPiIeMfL6ZTjTF07TvqBSVMLcbv7g/s1600/0.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;210&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCGJ3wbiCG0Mk_cvIVipzmGGGdgnT5IwLXFKKw1nCt4VP8zgkdInYO-hk8GCo7j86D12hphdglXRFOZupRzItD_8xSo4r9IOs5Vma29Ptjp9yZ1ouPiIeMfL6ZTjTF07TvqBSVMLcbv7g/s400/0.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: small; text-align: left;&quot;&gt;Hoặc chọn setting -&amp;gt; công cụ khác -&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: lime; font-size: small; text-align: left;&quot;&gt;Công cụ dành cho nhà phát triển&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: lime;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;B3. Cửa sổ Developer Tolls hiện lên, bạn chọn tab Network, mở tính năng Fillter và chọn lọc Media ( tệp đa phương tiện: video, audio )&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4zLWvuGIRpcU_nxrMK10KYg9MelJtBkPqoyvt72MZpVE-1G4MDrKioZkR_by0Mm3_KLvkv4yNCvtA9c38LNaytxPB3QaZiQLJ4LPnVBCARybCz6P1fLpJ6XPzjPRrf939s7kpM4D7XaI/s1600/console+network.PNG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;129&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4zLWvuGIRpcU_nxrMK10KYg9MelJtBkPqoyvt72MZpVE-1G4MDrKioZkR_by0Mm3_KLvkv4yNCvtA9c38LNaytxPB3QaZiQLJ4LPnVBCARybCz6P1fLpJ6XPzjPRrf939s7kpM4D7XaI/s400/console+network.PNG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/li&gt;
&lt;li&gt;B4. Lúc này, bạn sẽ thấy 1 (hay nhiều) request xuất hiện trong list, 1 trong số dó chính là tệp tin mà bạn cần tải. Bạn có thể sao chép đường dẫn của các mục này và dùng trình downloader của bạn để tải nó.&lt;/li&gt;
&lt;li&gt;(-) NOTE:&lt;br /&gt;Trong trường hợp không có dòng nào xuất hiện trong network, bạn vui lòng tải lại trang và bật trình phát của website đó, lúc này bạn sẽ thấy Developer Tools đã bắt được gói tin bạn cần.&lt;br /&gt;Nếu trong danh sách có quá nhiều gói tin, bạn có thể dựa vào 1 số đặc điểm của nó, như video thì Size của nó sẽ rất lớn chẳng hạn!! :)&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;/ol&gt;
&lt;h3&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Cách 2: Lợi dụng các thuộc tính của thẻ video &amp;nbsp;khi dùng trình phát HTML 5 ( chỉ dùng trên các wbsite sử dụng trình phát HTML5 )&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;

&lt;/h3&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;B1. Mở&amp;nbsp;công cụ dành cho lập trình viên. ( Cách 1. Bước 2 )&lt;/li&gt;
&lt;li&gt;B2. Chọn tab Elements rồi làm như hình!!&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAQQqAxkMc0Rwd6aq_tMDdg3qUFWLH7sllvoO4Ow1AGkwRmfNfow2Z0VlAhf04kq4QXxNTVgl33vJ6Qf2raGqfcuOxeplTtsRheHmMCBpQ7mpvYj7xXwFRmLnFyuZbWPSWmgwP_LIjvvM/s1600/vimeo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;img alt=&quot;Lấy video từ Vimeo.com&quot; border=&quot;0&quot; height=&quot;222&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAQQqAxkMc0Rwd6aq_tMDdg3qUFWLH7sllvoO4Ow1AGkwRmfNfow2Z0VlAhf04kq4QXxNTVgl33vJ6Qf2raGqfcuOxeplTtsRheHmMCBpQ7mpvYj7xXwFRmLnFyuZbWPSWmgwP_LIjvvM/s400/vimeo.png&quot; title=&quot;Vimeo.com&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Vimeo.com&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIRD-lvFB71M2Lbash-YL5tMCLsSiJXifBrqkFK_lnfmVkVbI5y3Y6HYDWdU5d7pcMz0mXX6gutT5iKkrfVRFUZh4vdqaQHkzXqPmnTKJQax0e0SJ8Bh6iWkqXyLJLtMjequkxAGqv9rs/s1600/facebook.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;img alt=&quot;Lấy video trên Facebook.com&quot; border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIRD-lvFB71M2Lbash-YL5tMCLsSiJXifBrqkFK_lnfmVkVbI5y3Y6HYDWdU5d7pcMz0mXX6gutT5iKkrfVRFUZh4vdqaQHkzXqPmnTKJQax0e0SJ8Bh6iWkqXyLJLtMjequkxAGqv9rs/s400/facebook.png&quot; title=&quot;Facebook.com&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Facebook.com&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;Trên đây là 2 cách mình hay dùng tải phim hay nhạc về máy mà không phải mất công cài các ứng dụng, tiện ích không rõ nguồn gốc, các bạn có thể tham khảo để sử dụng, nếu ai có cách nào hay hơn thì comment cho mình tham khảo với nhé!! :&#39;)&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.kingdark.org/feeds/648113730390447269/comments/default' title='Đăng Nhận xét'/><link rel='replies' type='text/html' href='http://www.kingdark.org/2015/10/huong-dan-lay-link-tai-video-nhac-tren-website.html#comment-form' title='8 Nhận xét'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7212661668877548521/posts/default/648113730390447269'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7212661668877548521/posts/default/648113730390447269'/><link rel='alternate' type='text/html' href='http://www.kingdark.org/2015/10/huong-dan-lay-link-tai-video-nhac-tren-website.html' title='Hướng dẫn lấy link tải video, nhạc trên các website không cho tải trực tiếp.'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCGJ3wbiCG0Mk_cvIVipzmGGGdgnT5IwLXFKKw1nCt4VP8zgkdInYO-hk8GCo7j86D12hphdglXRFOZupRzItD_8xSo4r9IOs5Vma29Ptjp9yZ1ouPiIeMfL6ZTjTF07TvqBSVMLcbv7g/s72-c/0.png" height="72" width="72"/><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7212661668877548521.post-165968030884962632</id><published>2015-07-14T18:38:00.000+07:00</published><updated>2015-10-27T06:35:46.386+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Application"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Code"/><category scheme="http://www.blogger.com/atom/ns#" term="Form"/><category scheme="http://www.blogger.com/atom/ns#" term="Hướng dẫn"/><category scheme="http://www.blogger.com/atom/ns#" term="Lập trình"/><category scheme="http://www.blogger.com/atom/ns#" term="Tùy biến"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows Form Application"/><category scheme="http://www.blogger.com/atom/ns#" term="Ứng dụng"/><title type='text'>Tuỳ biến giao diện cho ứng dụng viết bằng C#: Windows Form Application</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;background: rgb(238, 238, 238); border: 1px solid rgb(204, 204, 204); box-sizing: inherit; color: #333333; font-family: Arial; font-size: 19px; line-height: 31.9998px; margin: 0px; outline: 0px; padding: 5px 10px; vertical-align: baseline;&quot;&gt;
Như tiêu đề của&amp;nbsp;bài viết, trong lần gõ phím này mình sẽ hướng dẫn các bạn tuỳ biến lại giao diện của ứng dụng khi viết bằng Visual C#: Windows Forms Application&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: inherit; color: #333333; font-family: Arial; font-size: 19px; line-height: 31.9998px; margin-bottom: 1.6842em; outline: 0px; padding: 0px; text-align: left; vertical-align: baseline;&quot;&gt;
Vì mình cũng chỉ mới bắt đầu học thôi nên có thể cách tuỳ biến của mình chưa được tốt cho lắm, vậy nên nếu bạn nào thấy có cách khác hay hơn, đơn giản hơn thì chia sẻ với mình và mọi người nhé!!&lt;/div&gt;
&lt;div style=&quot;background: rgb(238, 238, 238); border: 1px solid rgb(204, 204, 204); box-sizing: inherit; color: #333333; font-family: Arial; font-size: 19px; line-height: 31.9998px; margin: 0px; outline: 0px; padding: 5px 10px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: 700; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;NOTE:&amp;nbsp;&lt;/span&gt;Bài viết này mình chỉ hướng dẫn tuỳ chỉnh giao diện với ứng dụng non-resize, nghĩa là ứng dụng của bạn sẽ chỉ có 1 kích cỡ duy nhất, dù vậy nhưng sau bài này, bạn hoàn toàn có thể tự&amp;nbsp;thêm được chức năng resize vào ứng dụng của mình!!&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Arial; font-size: 3.2rem; font-style: italic; line-height: 1.25;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Giờ thì vào chủ đề chính – tuỳ biến giao diện của ứng dụng:&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;ul style=&quot;background-color: white; border: 0px; box-sizing: inherit; font-family: Arial; font-size: 19px; line-height: 31.9998px; margin: 0px 0px 1.6842em; outline: 0px; padding: 0px; text-align: left; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; box-sizing: inherit; color: #333333; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; text-align: center; vertical-align: baseline;&quot;&gt;Để bắt đầu thì mình sẽ tạo 1 project mới của&amp;nbsp;&lt;span style=&quot;background-color: #eeeeee; border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Windows Forms Application&lt;/span&gt;&amp;nbsp;nếu bạn muốn thì có thể&amp;nbsp;làm trực tiếp vào trong 1 project đã tạo sẵn của bạn!!&lt;iframe frameborder=&quot;0&quot; height=&quot;320&quot; scrolling=&quot;no&quot; src=&quot;https://drive.google.com/file/d/0BzD4IRIPMYwsNnk2a1VNM1NDeDg/preview&quot; style=&quot;border-style: initial; border-width: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px 0px 1.6842em; max-width: 100%; outline: 0px; padding: 0px; vertical-align: middle;&quot; width=&quot;640&quot;&gt;&lt;/iframe&gt;&lt;/li&gt;
&lt;li style=&quot;border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; box-sizing: inherit; color: #333333; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Sau khi đã tạo xong, tại cửa sổ Properties, ta sửa thuộc tính&amp;nbsp;FromBorderStyle thành None&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;iframe frameborder=&quot;0&quot; height=&quot;160&quot; scrolling=&quot;no&quot; src=&quot;https://drive.google.com/file/d/0BzD4IRIPMYwsWlAwQU1QbDB3akE/preview&quot; style=&quot;border-style: initial; border-width: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; max-width: 100%; outline: 0px; padding: 0px; vertical-align: middle;&quot; width=&quot;300&quot;&gt;&lt;/iframe&gt;&lt;span style=&quot;font-family: inherit; font-style: inherit; font-weight: inherit; line-height: 31.9998px; text-align: center;&quot;&gt;​​​​​​►&lt;/span&gt;&lt;iframe frameborder=&quot;0&quot; height=&quot;160&quot; scrolling=&quot;no&quot; src=&quot;https://drive.google.com/file/d/0BzD4IRIPMYwsQTE2S2tLci1iMzA/preview&quot; style=&quot;border-style: initial; border-width: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; max-width: 100%; outline: 0px; padding: 0px; vertical-align: middle;&quot; width=&quot;300&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; box-sizing: inherit; color: #333333; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;line-height: 31.9998px;&quot;&gt;Sau bước trên, bạn sẽ thu được cái 1 ô vuông đơn điệu, nhìn max tù luôn,… vậy bây giờ&amp;nbsp;bắt tay vào tuỳ biến thui..!!&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; box-sizing: inherit; color: #333333; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Giờ chúng ta sẽ kéo và thả những đối tượng cần thiết cho cái form của mình&lt;ul style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; list-style: disc; margin: 0px 0px 0px 1.3333em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Danh sách gồm:&lt;ul style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; list-style: disc; margin: 0px 0px 0px 1.3333em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;4 cái panel&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;1 cái label&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;2 cái button&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li style=&quot;border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; box-sizing: inherit; color: #333333; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Giờ thì đặt tên và đặt các thuộc tính cho chúng. À còn 1 điều nữa, ta sẽ phải đặt cho cái form 1 kích cỡ nhất định,… mình sẽ đặt 640px * 480px, bạn hoàn toàn có thể đặt các kích cỡ khác cho ứng dụng tuỳ vào mục đích của bạn!!&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;iframe frameborder=&quot;0&quot; height=&quot;270&quot; scrolling=&quot;no&quot; src=&quot;https://drive.google.com/file/d/0BzD4IRIPMYwsbGc1Ujg4WmlYZUU/preview&quot; style=&quot;border-style: initial; border-width: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px 0px 1.6842em; max-width: 100%; outline: 0px; padding: 0px; vertical-align: middle;&quot; width=&quot;480&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; box-sizing: inherit; color: #333333; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Giờ thì đến phần tuỳ chỉnh cho cái form, hãy vận dụng khả năng sáng tạo nên cao nhất nhé,… mình thì thuộc loại người &quot;mù thẩm mỹ&quot; nên toàn để BackColor = Black và ForeColor = White&lt;ul style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; list-style: disc; margin: 0px 0px 0px 1.3333em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Chọn panel1&lt;ul style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; list-style: disc; margin: 0px 0px 0px 1.3333em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Mình đặt lại tên cho nó thành border_top&amp;nbsp;: (Name) =&amp;nbsp;border_top&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Đặt size cho nó là&amp;nbsp;640, 30 và Location là 0,0&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Đặt Dock thành Top và gán Locked = True&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Chọn panel2&lt;ul style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; list-style: disc; margin: 0px 0px 0px 1.3333em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Đặt tên là border_left&amp;nbsp;: (Name) =&amp;nbsp;border_left&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Đạt size là&amp;nbsp;5, 450 và Location là 0, 30&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Đặt Dock là Left và gắn Locked = True&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Chọn panel3&lt;ul style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; list-style: disc; margin: 0px 0px 0px 1.3333em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Đặt tên là border_right&amp;nbsp;: (Name) =&amp;nbsp;border_right&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Đạt size là&amp;nbsp;5, 450 và Location là 635, 30&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Đặt Dock là Right và gắn Locked = True&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Chọn panel4&lt;ul style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; list-style: disc; margin: 0px 0px 0px 1.3333em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Đặt tên là border_bottom&amp;nbsp;: (Name) = border_bottom&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Đạt size là&amp;nbsp;630, 5 và Location là 5, 475&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Đặt Dock là Bottom và gắn Locked = True&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li style=&quot;border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; box-sizing: inherit; color: #333333; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Như vậy là đã tạo xong cái viền bao, Ctrl + F5 để nghía qua cái Form nào.. !!!&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;iframe frameborder=&quot;0&quot; height=&quot;225&quot; scrolling=&quot;no&quot; src=&quot;https://drive.google.com/file/d/0BzD4IRIPMYwsV19aX211S3lIdnM/preview&quot; style=&quot;border-style: initial; border-width: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px 0px 1.6842em; max-width: 100%; outline: 0px; padding: 0px; vertical-align: middle;&quot; width=&quot;400&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;ul style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; list-style: disc; margin: 0px 0px 0px 1.3333em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/ul&gt;
&lt;li style=&quot;border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; box-sizing: inherit; color: #333333; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Giờ là đến cái tiêu đề và các phím điều khiển:&lt;ul style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; list-style: disc; margin: 0px 0px 0px 1.3333em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Chọn label1&lt;ul style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; list-style: disc; margin: 0px 0px 0px 1.3333em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Mình đổi tên nó thành title đề dễ nhớ: (Name) = title&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Đặt Location 0,0&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Đặt Font.Size = 26 với Font.Unit = Pixel&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Sau đó khoá nó lại:&amp;nbsp;Locked = True&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Chọn button1&lt;ul style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; list-style: disc; margin: 0px 0px 0px 1.3333em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Đổi tên thành b_close : (Name) = b_close&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Đặt size là 30,30 và Location: 610,0&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Đặt FlatStyle = Flat&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Đặt&amp;nbsp;FlatAppearance.BorderSize = 0&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Thêm chữ X vào Text cho dễ nhìn :3&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Đặt Font.Unit = Pixel và Font.Size = 18&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Locked = True&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Chọn button2&lt;ul style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; list-style: disc; margin: 0px 0px 0px 1.3333em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Đổi tên thành b_minisize: (Name) = b_minisize&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Đặt size là 30,30 và Location:580,0&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Đặt FlatStyle = Flat&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Đặt&amp;nbsp;FlatAppearance.BorderSize = 0&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Thêm dấu _&amp;nbsp;vào Text&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Đặt Font.Unit = Pixel và Font.Size = 18&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Locked = True&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Ctrl + F5 và đây là thành quả ban đầu…&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJBRDSaS2ctw-s4IgTKdEF-D8repJt1hn_T1ZfZSmGvyjSaSnBsFAS2rTmA9nTjR0Kwow1vzKsIFjj6BUq7Sx7ilcMf5YpwbO8AgtC2GAA1PgdM9Hertgj-jgyxVKTrLM_mvN1qO_qJAY/s1600/finish.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;246&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJBRDSaS2ctw-s4IgTKdEF-D8repJt1hn_T1ZfZSmGvyjSaSnBsFAS2rTmA9nTjR0Kwow1vzKsIFjj6BUq7Sx7ilcMf5YpwbO8AgtC2GAA1PgdM9Hertgj-jgyxVKTrLM_mvN1qO_qJAY/s320/finish.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Form custom&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Tiếc là không move cửa sổ được, không tắt hay thu nhỏ khi nhấn nút được,…&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li style=&quot;border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; box-sizing: inherit; color: #333333; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Vậy nên giờ ta cần bắt các sự kiện và&amp;nbsp;xử lí để cái form mới này có được các chức năng đúng chuẩn của 1 cửa sổ!!&lt;ul style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; list-style: disc; margin: 0px 0px 0px 1.3333em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Mở tab Event tại cửa số Properties&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Chọn b_close&lt;ul style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; list-style: disc; margin: 0px 0px 0px 1.3333em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Tại Action.Click, ta tạo phương thức và bắt sự kiện cho việc click chuột&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Bên trong phương thức mới được khởi tạo, thêm hàm&lt;ul style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; list-style: disc; margin: 0px 0px 0px 1.3333em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin-bottom: 1.6842em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;pre&gt;&lt;code class=&quot;csharp&quot;&gt;
private void b_close_Click(object sender, EventArgs e)
{
 this.Close();
}
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin-bottom: 1.6842em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Chọn b_minisize&lt;ul style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; list-style: disc; margin: 0px 0px 0px 1.3333em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Tại Action.Click, ta tạo phương thức và bắt sự kiện cho việc click chuột&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Bên trong phương thức mới được khởi tạo, thêm hàm&lt;ul style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; list-style: disc; margin: 0px 0px 0px 1.3333em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin-bottom: 1.6842em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;pre&gt;&lt;code class=&quot;csharp&quot;&gt;
private void b_minisize_Click(object sender, EventArgs e)
{
 this.WindowState = FormWindowState.Minimized;
}
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin-bottom: 1.6842em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li style=&quot;border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; box-sizing: inherit; color: #333333; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Tiếp. Theo mình thì phần này là phần quan trọng nhất trong bài, thiết lập khả năng kéo thả cho của sổ.&lt;ul style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; list-style: disc; margin: 0px 0px 0px 1.3333em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Chọn border_top ta lần lượt thêm các sự kiện MouseDown, MouseMove và MouseUp&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Tiếp theo ta nhấn F7 hoặc mở tab Form1.cs lên:&lt;ul style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; list-style: disc; margin: 0px 0px 0px 1.3333em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Ta thêm vào class Form1 các&amp;nbsp;thuộc tính&lt;ul style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; list-style: disc; margin: 0px 0px 0px 1.3333em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin-bottom: 1.6842em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;pre&gt;&lt;code class=&quot;csharp&quot;&gt;
private bool keoTha = false;
private Point mouseStart = new Point(0, 0);
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin-bottom: 1.6842em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Giờ đến xử lí các phương thức:&lt;ul style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; list-style: disc; margin: 0px 0px 0px 1.3333em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;border_top_MouseDown&lt;div style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin-bottom: 1.6842em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;pre&gt;&lt;code class=&quot;csharp&quot;&gt;
private void border_top_MouseDown(object sender, MouseEventArgs e)
{
 if (e.Button == MouseButtons.Left) // Kiểm tra xem người dùng nhấn nút nào. 
 {
  this.keoTha = true;
  this.mouseStart = e.Location;
 }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin-bottom: 1.6842em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;border_top_MouseMove&lt;div style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin-bottom: 1.6842em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;pre&gt;&lt;code class=&quot;csharp&quot;&gt;
private void border_top_MouseMove(object sender, MouseEventArgs e)
{
 if (this.keoTha)
 {
  Point p = new Point(e.X + this.Location.X, e.Y + this.Location.Y);
  Point location = new Point(p.X - this.mouseStart.X, p.Y - this.mouseStart.Y);
  this.Location = location;
 }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin-bottom: 1.6842em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;border_top_MouseUp&lt;div style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin-bottom: 1.6842em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;pre&gt;&lt;code class=&quot;csharp&quot;&gt;
private void border_top_MouseUp(object sender, MouseEventArgs e)
{
 if (e.Button == MouseButtons.Left) // Kiểm tra xem người dùng nhấn nút nào. 
 {
  this.keoTha = false;
 }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin-bottom: 1.6842em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li style=&quot;border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;h2 style=&quot;border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; box-sizing: inherit; clear: both; font-family: inherit; font-size: 3.2rem; font-style: italic; line-height: 1.25; margin: 2em 0px 1em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: lime;&quot;&gt;
Bingo!!! Vậy là xong rồi đó, giờ thì nhấn Ctrl + F5 để thưởng thức thành quả thôi.&lt;/span&gt;&lt;/h2&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 style=&quot;background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #333333; font-family: Arial; line-height: 1.1852; margin: 2.3704em 0px 1.1852em; outline: 0px; padding: 0px; text-align: left; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Đọc xong bài viết này, giờ các bạn đã hoàn toàn có thể tự custom lại giao diện thay vì sử dụng 6 loại giao diện sẵn có và không được thẩm mỹ của bác Visual Studio. Nếu các bạn có gì thắc mắc vui lòng comment ở dưới hoặc pm trực tiếp với mình qua facebook của mình!!&lt;/span&gt;&lt;/h3&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.kingdark.org/feeds/165968030884962632/comments/default' title='Đăng Nhận xét'/><link rel='replies' type='text/html' href='http://www.kingdark.org/2015/07/tuy-bien-giao-dien-cho-ung-dung-viet-bang-c-windows-form-application.html#comment-form' title='0 Nhận xét'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7212661668877548521/posts/default/165968030884962632'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7212661668877548521/posts/default/165968030884962632'/><link rel='alternate' type='text/html' href='http://www.kingdark.org/2015/07/tuy-bien-giao-dien-cho-ung-dung-viet-bang-c-windows-form-application.html' title='Tuỳ biến giao diện cho ứng dụng viết bằng C#: Windows Form Application'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJBRDSaS2ctw-s4IgTKdEF-D8repJt1hn_T1ZfZSmGvyjSaSnBsFAS2rTmA9nTjR0Kwow1vzKsIFjj6BUq7Sx7ilcMf5YpwbO8AgtC2GAA1PgdM9Hertgj-jgyxVKTrLM_mvN1qO_qJAY/s72-c/finish.png" height="72" width="72"/><thr:total>0</thr:total></entry></feed>