<?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-863548203051237540</id><updated>2025-02-04T22:50:11.341-08:00</updated><category term="tutorial"/><category term="programming"/><category term="php"/><category term="windows"/><category term="vb"/><category term="net"/><category term="mirosoft"/><category term="JVM"/><category term="Window"/><category term="application"/><category term="builder"/><category term="button"/><category term="click"/><category term="eclipse"/><category term="form"/><category term="java"/><category term="javascript"/><category term="new"/><category term="pro"/><category term="show"/><category term="swing"/><category term="windowBuilder"/><category term="wizard"/><category term="developer"/><category term="ajax"/><category term="apple"/><category term="case"/><category term="firefox"/><category term="iphone"/><category term="microsoft"/><category term="system"/><category term="visual basic"/><category term="windows 8"/><category term="2007"/><category term="EISA"/><category term="FSX"/><category term="MSN"/><category term="NC10"/><category term="Samsung"/><category term="Sara iPhone siri siriport spire alternative free 4s cydia apple"/><category term="Style"/><category term="adobe"/><category term="alert"/><category term="arduino"/><category term="artificial"/><category term="challange"/><category term="coffee"/><category term="command"/><category term="costa"/><category term="cover"/><category term="cs6"/><category term="devices"/><category term="editing"/><category term="files"/><category term="flash"/><category term="flight simulator"/><category term="free"/><category term="intelligence"/><category term="ipad"/><category term="million"/><category term="numbering"/><category term="office"/><category term="os x"/><category term="partition"/><category term="phone"/><category term="phones"/><category term="photoshop"/><category term="pictures"/><category term="posting"/><category term="power"/><category term="protection"/><category term="prtSc"/><category term="recovery"/><category term="registry"/><category term="repair"/><category term="screen"/><category term="screenshots"/><category term="setting"/><category term="shot"/><category term="smart"/><category term="smart phones"/><category term="software"/><category term="sorting"/><category term="tab"/><category term="tablets"/><category term="the new ipad"/><category term="up time"/><category term="voice"/><category term="waterproof"/><category term="win key"/><category term="wordpress"/><title type='text'>Computer Technology</title><subtitle type='html'>Welcome to my Blog</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://stavroskcy.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://stavroskcy.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Stavros</name><uri>http://www.blogger.com/profile/12303826957689320614</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8rdpH5mvoXPcqm6_OcaP5U2Swg5fVt-xIXQ9bqpbdPEQVbAF26HnqVW2KP68ZZtUA3i1iYEVHimSXYwbq6o_qsWNUnHYeY-cuUQkMBzqYcIzkqvYDpTU0ugMb1UzHdg/s220/20210324_200822.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>40</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-863548203051237540.post-2103494278471624926</id><published>2014-08-17T12:19:00.000-07:00</published><updated>2014-08-17T12:21:01.576-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="microsoft"/><category scheme="http://www.blogger.com/atom/ns#" term="numbering"/><category scheme="http://www.blogger.com/atom/ns#" term="prtSc"/><category scheme="http://www.blogger.com/atom/ns#" term="registry"/><category scheme="http://www.blogger.com/atom/ns#" term="screen"/><category scheme="http://www.blogger.com/atom/ns#" term="screenshots"/><category scheme="http://www.blogger.com/atom/ns#" term="setting"/><category scheme="http://www.blogger.com/atom/ns#" term="shot"/><category scheme="http://www.blogger.com/atom/ns#" term="win key"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><category scheme="http://www.blogger.com/atom/ns#" term="windows 8"/><title type='text'>Reset numbering for Screenshots Win+PrtSc</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I was using today the screen shot functionality of Windows 8.1 Win Key +&amp;nbsp;PrtSc&lt;br /&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/AVvXsEiFcIRip7UFxdgpfz4tTRtIFcqT19D5M2rnnK2vAuLikz8CYWskJw6Xzx7ucws5QM3mN-3YEr5mRHDtPHfv6_0_Hrvil-VB7dumT21WD94rI7X-RP5q87l0rhSSaZOTyQXUN-GE554Z3aU/s1600/Screenshot+(245).png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFcIRip7UFxdgpfz4tTRtIFcqT19D5M2rnnK2vAuLikz8CYWskJw6Xzx7ucws5QM3mN-3YEr5mRHDtPHfv6_0_Hrvil-VB7dumT21WD94rI7X-RP5q87l0rhSSaZOTyQXUN-GE554Z3aU/s1600/Screenshot+(245).png&quot; height=&quot;225&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
How to reset the numbering?&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
As you can see the screen shot above the numbering was 245.&lt;br /&gt;
&lt;br /&gt;
I searched a bit but found nothing. &amp;nbsp;So i thought about the registry.&lt;br /&gt;
&lt;br /&gt;
From a quick search in the registry (first hit by the way!) is the value shown below&lt;br /&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/AVvXsEhiL3wIv3utJyWLh6KxnR54sgecIr-p4TUAkdnGKewRO7wwb8qEOvLkRxbCNgoF013Ppa1wuaJlGjpI979KN7bo19IKa4q5lw3lvG0cC1XPtvXXkt3gKoy8rV6vxusiQBQporT5IcWmY1Q/s1600/Capture.PNG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiL3wIv3utJyWLh6KxnR54sgecIr-p4TUAkdnGKewRO7wwb8qEOvLkRxbCNgoF013Ppa1wuaJlGjpI979KN7bo19IKa4q5lw3lvG0cC1XPtvXXkt3gKoy8rV6vxusiQBQporT5IcWmY1Q/s1600/Capture.PNG&quot; height=&quot;337&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can search for &lt;b&gt;Screenshot&lt;/b&gt;&lt;br /&gt;
or navigate to the following&lt;br /&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/AVvXsEhgEQsinOOe09G3LFgTiFXIZNvkz3zLxOdiQUv1lZD_5ic_CfhebE5tvrGZZSeMJEJ5DcS4jaVF-pdXASKOf8wkLSBqhuzIGHQUDJ_zGt1LCIvUvm4GuWcUA1C-Oh0EVfoDbGSDidMzilE/s1600/Capture.PNG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgEQsinOOe09G3LFgTiFXIZNvkz3zLxOdiQUv1lZD_5ic_CfhebE5tvrGZZSeMJEJ5DcS4jaVF-pdXASKOf8wkLSBqhuzIGHQUDJ_zGt1LCIvUvm4GuWcUA1C-Oh0EVfoDbGSDidMzilE/s1600/Capture.PNG&quot; height=&quot;32&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
make sure you change the Decimal value back to 1 and click OK.&lt;br /&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/AVvXsEgQ-sqJdeGUn6ODd-VpYvYG_ekffON2eBk2c8BoS7LSRG77hWKaMbCrgWBRGrZ9UFK0JXeFYh_zzsJu0O1GWGkv1GYPNeh-8TbqsgyimwsgtxEjfUXb6hIywgX_rNSAQWp8aWEhrvBxBR0/s1600/Capture.PNG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQ-sqJdeGUn6ODd-VpYvYG_ekffON2eBk2c8BoS7LSRG77hWKaMbCrgWBRGrZ9UFK0JXeFYh_zzsJu0O1GWGkv1GYPNeh-8TbqsgyimwsgtxEjfUXb6hIywgX_rNSAQWp8aWEhrvBxBR0/s1600/Capture.PNG&quot; height=&quot;192&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
lets test it out!&lt;br /&gt;
&lt;br /&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/AVvXsEhC1hc9A-WySjwYten-vhA8nXSuqXPGm_iGDo64sPiUUpEGsDAXIW9hUBXSLWm4EgTi4ks6dbtJonlvHpIu9iCL0rKS6pr6f_V8dFn9WSmFsNfI5G57OQm3fV-MKRmOpXMaD39SRS6TEAc/s1600/Capture.PNG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhC1hc9A-WySjwYten-vhA8nXSuqXPGm_iGDo64sPiUUpEGsDAXIW9hUBXSLWm4EgTi4ks6dbtJonlvHpIu9iCL0rKS6pr6f_V8dFn9WSmFsNfI5G57OQm3fV-MKRmOpXMaD39SRS6TEAc/s1600/Capture.PNG&quot; height=&quot;281&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;It works&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Enjoy&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://stavroskcy.blogspot.com/feeds/2103494278471624926/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stavroskcy.blogspot.com/2014/08/reset-numbering-for-screenshots-winprtsc.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/2103494278471624926'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/2103494278471624926'/><link rel='alternate' type='text/html' href='http://stavroskcy.blogspot.com/2014/08/reset-numbering-for-screenshots-winprtsc.html' title='Reset numbering for Screenshots Win+PrtSc'/><author><name>Stavros</name><uri>http://www.blogger.com/profile/12303826957689320614</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8rdpH5mvoXPcqm6_OcaP5U2Swg5fVt-xIXQ9bqpbdPEQVbAF26HnqVW2KP68ZZtUA3i1iYEVHimSXYwbq6o_qsWNUnHYeY-cuUQkMBzqYcIzkqvYDpTU0ugMb1UzHdg/s220/20210324_200822.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFcIRip7UFxdgpfz4tTRtIFcqT19D5M2rnnK2vAuLikz8CYWskJw6Xzx7ucws5QM3mN-3YEr5mRHDtPHfv6_0_Hrvil-VB7dumT21WD94rI7X-RP5q87l0rhSSaZOTyQXUN-GE554Z3aU/s72-c/Screenshot+(245).png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-863548203051237540.post-4054509429770527315</id><published>2013-12-12T10:37:00.002-08:00</published><updated>2013-12-12T10:37:41.623-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="application"/><category scheme="http://www.blogger.com/atom/ns#" term="builder"/><category scheme="http://www.blogger.com/atom/ns#" term="button"/><category scheme="http://www.blogger.com/atom/ns#" term="click"/><category scheme="http://www.blogger.com/atom/ns#" term="eclipse"/><category scheme="http://www.blogger.com/atom/ns#" term="form"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="JVM"/><category scheme="http://www.blogger.com/atom/ns#" term="new"/><category scheme="http://www.blogger.com/atom/ns#" term="pro"/><category scheme="http://www.blogger.com/atom/ns#" term="show"/><category scheme="http://www.blogger.com/atom/ns#" term="swing"/><category scheme="http://www.blogger.com/atom/ns#" term="Window"/><category scheme="http://www.blogger.com/atom/ns#" term="windowBuilder"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><category scheme="http://www.blogger.com/atom/ns#" term="wizard"/><title type='text'>Java: GUI application open new form with button (part 4)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Why the new JFrame terminates the application when we close it?&lt;br /&gt;
Lets investigate.&lt;br /&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/AVvXsEh0iizndFka9JUMj7WMLAThntTGpUx8m2iVIg54WqOJpZF32UAqpxqjvoNK7wqGJEotWuqsbTgq2fX3VltlTFFYdCRGFsM4JM4y4LH2vHkPKpFFiIFI0S7qoUYgxDiTGM5gbct_7Y_xRPo/s1600/new+application+window.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;101&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0iizndFka9JUMj7WMLAThntTGpUx8m2iVIg54WqOJpZF32UAqpxqjvoNK7wqGJEotWuqsbTgq2fX3VltlTFFYdCRGFsM4JM4y4LH2vHkPKpFFiIFI0S7qoUYgxDiTGM5gbct_7Y_xRPo/s320/new+application+window.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;So lets opent the NewForm code and look the code.&lt;br /&gt;
&lt;br /&gt;
Observe the line were the WindowBuilder generated the default close operation.&lt;br /&gt;
It commands the JFrame to EXIT_ON_CLOSE&lt;br /&gt;
Then the garbage collector completes the job.&lt;br /&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/AVvXsEiQFw7JQ9K_qZDM0EAhpxl3S0ArUkXRmAVChkuFnuf7YvZwyJCegt7faxsvPqsp8nWQLrZejXHPrGjTGgIdnV9P2UvoOlcQSNlZT_QjnllD3bpwDmd5Po3erwsXuQCRq4aGGy6A8wqerKE/s1600/garbage-truck-2_full.jpeg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;97&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQFw7JQ9K_qZDM0EAhpxl3S0ArUkXRmAVChkuFnuf7YvZwyJCegt7faxsvPqsp8nWQLrZejXHPrGjTGgIdnV9P2UvoOlcQSNlZT_QjnllD3bpwDmd5Po3erwsXuQCRq4aGGy6A8wqerKE/s200/garbage-truck-2_full.jpeg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Not this garbage collector :D&lt;br /&gt;
the JVM garbage collector.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
What we should do is to replace the EXIT_ON_CLOSE with&amp;nbsp;DISPOSE_ON_CLOSE&lt;br /&gt;
The logic behind this is to keep the main application on memory and only dispose the new form.&lt;br /&gt;
if you are implementing data persistance (database connections, xml, etc.) its a good idea to save and close the connections.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://stavroskcy.blogspot.com/feeds/4054509429770527315/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stavroskcy.blogspot.com/2013/12/java-gui-application-open-new-form-with_3592.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/4054509429770527315'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/4054509429770527315'/><link rel='alternate' type='text/html' href='http://stavroskcy.blogspot.com/2013/12/java-gui-application-open-new-form-with_3592.html' title='Java: GUI application open new form with button (part 4)'/><author><name>Stavros</name><uri>http://www.blogger.com/profile/12303826957689320614</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8rdpH5mvoXPcqm6_OcaP5U2Swg5fVt-xIXQ9bqpbdPEQVbAF26HnqVW2KP68ZZtUA3i1iYEVHimSXYwbq6o_qsWNUnHYeY-cuUQkMBzqYcIzkqvYDpTU0ugMb1UzHdg/s220/20210324_200822.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0iizndFka9JUMj7WMLAThntTGpUx8m2iVIg54WqOJpZF32UAqpxqjvoNK7wqGJEotWuqsbTgq2fX3VltlTFFYdCRGFsM4JM4y4LH2vHkPKpFFiIFI0S7qoUYgxDiTGM5gbct_7Y_xRPo/s72-c/new+application+window.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-863548203051237540.post-5263904847684559360</id><published>2013-12-12T09:59:00.000-08:00</published><updated>2013-12-12T10:37:47.695-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="application"/><category scheme="http://www.blogger.com/atom/ns#" term="builder"/><category scheme="http://www.blogger.com/atom/ns#" term="button"/><category scheme="http://www.blogger.com/atom/ns#" term="click"/><category scheme="http://www.blogger.com/atom/ns#" term="eclipse"/><category scheme="http://www.blogger.com/atom/ns#" term="form"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="JVM"/><category scheme="http://www.blogger.com/atom/ns#" term="new"/><category scheme="http://www.blogger.com/atom/ns#" term="pro"/><category scheme="http://www.blogger.com/atom/ns#" term="show"/><category scheme="http://www.blogger.com/atom/ns#" term="swing"/><category scheme="http://www.blogger.com/atom/ns#" term="Window"/><category scheme="http://www.blogger.com/atom/ns#" term="windowBuilder"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><category scheme="http://www.blogger.com/atom/ns#" term="wizard"/><title type='text'>Java: GUI application open new form with button (part 3)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Part 3&lt;/b&gt; of the tutorial, how to create a GUI application with multi forms in JAVA&lt;br /&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/AVvXsEgGHyX8pLkg3h8AvMpwldyjulp6PDCDUDjLDqF1eojRcKAd6RnavIcXQ8liTQ5VC-EbG2PWnHdUNblwJ3Q5Sq7GV1tXthwJnBd67GDovGzju5n_xoJnkYk0OogSOBFi7T6btm9YfJNmB3w/s1600/new+application+window.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;193&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGHyX8pLkg3h8AvMpwldyjulp6PDCDUDjLDqF1eojRcKAd6RnavIcXQ8liTQ5VC-EbG2PWnHdUNblwJ3Q5Sq7GV1tXthwJnBd67GDovGzju5n_xoJnkYk0OogSOBFi7T6btm9YfJNmB3w/s200/new+application+window.JPG&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;
Coding the main Form&lt;/h3&gt;
&lt;/div&gt;
&lt;div&gt;
To make things easy you can double click the button, it will open the code to the actionEvent.&lt;/div&gt;
&lt;div&gt;
The first thing we are going to do is to declare and initialise the new form. &amp;nbsp;We will command it to show the new screen. &amp;nbsp;We will observe what happens when we close the new form.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
So double click the button, we will be shown in the ActionEvent code. &amp;nbsp;We will initialise the new form and we will set the visibility to true&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
NewForm newForm = new NewForm();&lt;br /&gt;
newForm.setVisible(true);&lt;/blockquote&gt;
If we run our code, we will see the our form with a button;&lt;br /&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/AVvXsEhD1RO6pMKQblZ3jZaRYCFWVbngph2Vq9HyH_kmCV2hn6D81FHk7UuipTEzZKHdHk_AWbf-5-wBNbAJG_77lF-SIJ9SkGXQ73f1oxDDqHmBdpb2ZhwjhiEaynGNVYBbnQ5lFW525b5b6t4/s1600/mainForm+Design.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhD1RO6pMKQblZ3jZaRYCFWVbngph2Vq9HyH_kmCV2hn6D81FHk7UuipTEzZKHdHk_AWbf-5-wBNbAJG_77lF-SIJ9SkGXQ73f1oxDDqHmBdpb2ZhwjhiEaynGNVYBbnQ5lFW525b5b6t4/s1600/mainForm+Design.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Click the Start new JFrame button.&lt;br /&gt;
&lt;br /&gt;
What is the response of the application?&lt;br /&gt;
&lt;br /&gt;
What happens when we press X on the new JFrame?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Yes the application gets terminated. &amp;nbsp;But why?&lt;br /&gt;
&lt;br /&gt;
We will discuss it to &lt;a href=&quot;http://stavroskcy.blogspot.com/2013/12/java-gui-application-open-new-form-with_2020.html&quot;&gt;part 4&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://stavroskcy.blogspot.com/feeds/5263904847684559360/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stavroskcy.blogspot.com/2013/12/java-gui-application-open-new-form-with_12.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/5263904847684559360'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/5263904847684559360'/><link rel='alternate' type='text/html' href='http://stavroskcy.blogspot.com/2013/12/java-gui-application-open-new-form-with_12.html' title='Java: GUI application open new form with button (part 3)'/><author><name>Stavros</name><uri>http://www.blogger.com/profile/12303826957689320614</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8rdpH5mvoXPcqm6_OcaP5U2Swg5fVt-xIXQ9bqpbdPEQVbAF26HnqVW2KP68ZZtUA3i1iYEVHimSXYwbq6o_qsWNUnHYeY-cuUQkMBzqYcIzkqvYDpTU0ugMb1UzHdg/s220/20210324_200822.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGHyX8pLkg3h8AvMpwldyjulp6PDCDUDjLDqF1eojRcKAd6RnavIcXQ8liTQ5VC-EbG2PWnHdUNblwJ3Q5Sq7GV1tXthwJnBd67GDovGzju5n_xoJnkYk0OogSOBFi7T6btm9YfJNmB3w/s72-c/new+application+window.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-863548203051237540.post-411238984782099025</id><published>2013-12-11T15:10:00.000-08:00</published><updated>2013-12-12T09:58:12.042-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="application"/><category scheme="http://www.blogger.com/atom/ns#" term="builder"/><category scheme="http://www.blogger.com/atom/ns#" term="button"/><category scheme="http://www.blogger.com/atom/ns#" term="click"/><category scheme="http://www.blogger.com/atom/ns#" term="eclipse"/><category scheme="http://www.blogger.com/atom/ns#" term="form"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="JVM"/><category scheme="http://www.blogger.com/atom/ns#" term="new"/><category scheme="http://www.blogger.com/atom/ns#" term="pro"/><category scheme="http://www.blogger.com/atom/ns#" term="show"/><category scheme="http://www.blogger.com/atom/ns#" term="swing"/><category scheme="http://www.blogger.com/atom/ns#" term="Window"/><category scheme="http://www.blogger.com/atom/ns#" term="windowBuilder"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><category scheme="http://www.blogger.com/atom/ns#" term="wizard"/><title type='text'>Java: GUI application open new form with button (part 2)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div&gt;
&lt;b&gt;Part 2&lt;/b&gt; of the tutorial, how to create a GUI application with multi forms in JAVA&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3gVpjewiVGpwawQGLhDZVaPFGfh9xB7siaKMXGGoBAAFKrGTrQuTh7XThbbS5Mg4XevKfjASGCAnpbefaBoZ2HNsYvVu8PJhWF_P7cBtLbtqd2H6HxaMEkHQmPcRaOuvxu93VWCOlwmM/s1600/mainForm+Design.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3gVpjewiVGpwawQGLhDZVaPFGfh9xB7siaKMXGGoBAAFKrGTrQuTh7XThbbS5Mg4XevKfjASGCAnpbefaBoZ2HNsYvVu8PJhWF_P7cBtLbtqd2H6HxaMEkHQmPcRaOuvxu93VWCOlwmM/s1600/mainForm+Design.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;a href=&quot;http://stavroskcy.blogspot.com/2013/12/java-gui-application-open-new-form-with.html&quot;&gt;Click for Part 1&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&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/AVvXsEis_ac-9QNMrzGyeDgzn8S46TmsDXXQgpFMxDm_SM-LQ0syzbvvtygB-m7kCmRZzZTAuOu0_GJy7m-QFGMja8S0XdS16GMgu_bhiVNtwK3l20c56Ur6rQf7C-RBDy2DSVGAny8pFov_1dY/s1600/mainForm.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;187&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEis_ac-9QNMrzGyeDgzn8S46TmsDXXQgpFMxDm_SM-LQ0syzbvvtygB-m7kCmRZzZTAuOu0_GJy7m-QFGMja8S0XdS16GMgu_bhiVNtwK3l20c56Ur6rQf7C-RBDy2DSVGAny8pFov_1dY/s320/mainForm.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Eclipse will now load the newly created class.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
If you click on Design you will see your GUI&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Lets click &lt;b&gt;Design&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&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/AVvXsEi7aQMgKVygP1UjUTXFT1lfhScbxSZZ1sEDhoYKfxVEM34EmFiRNHx2FnUQIO6mHSKRT1vQFF5vu-AfpsVbWIkI0oNWi3Q9jOEwR1ipBBsL6tXcJoUwhXdegNy2e1bKCNLdB661dXFqVE4/s1600/mainForm+Design.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;193&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7aQMgKVygP1UjUTXFT1lfhScbxSZZ1sEDhoYKfxVEM34EmFiRNHx2FnUQIO6mHSKRT1vQFF5vu-AfpsVbWIkI0oNWi3Q9jOEwR1ipBBsL6tXcJoUwhXdegNy2e1bKCNLdB661dXFqVE4/s400/mainForm+Design.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Now lets drag the Absolute layout to the form&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&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/AVvXsEgvCFs3rWzkZdkXtG9jZsSpBkQA34PwvLXkOXvekfoUHx8KwK9g8yBvdZeGnnXrGLLBn18G5N8je87Yo8JejzvTVB-AaDA4FZ28YtFwY_kRFEjM7BIy6dJdfi5h-k03knXATqI0uQhN9ZY/s1600/mainForm+Design.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;169&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvCFs3rWzkZdkXtG9jZsSpBkQA34PwvLXkOXvekfoUHx8KwK9g8yBvdZeGnnXrGLLBn18G5N8je87Yo8JejzvTVB-AaDA4FZ28YtFwY_kRFEjM7BIy6dJdfi5h-k03knXATqI0uQhN9ZY/s320/mainForm+Design.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
You will see the green border when you drag the absolute layout&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Lets add a button using the drag and drop method.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Now our form should look like this&lt;/div&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/AVvXsEj3gVpjewiVGpwawQGLhDZVaPFGfh9xB7siaKMXGGoBAAFKrGTrQuTh7XThbbS5Mg4XevKfjASGCAnpbefaBoZ2HNsYvVu8PJhWF_P7cBtLbtqd2H6HxaMEkHQmPcRaOuvxu93VWCOlwmM/s1600/mainForm+Design.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3gVpjewiVGpwawQGLhDZVaPFGfh9xB7siaKMXGGoBAAFKrGTrQuTh7XThbbS5Mg4XevKfjASGCAnpbefaBoZ2HNsYvVu8PJhWF_P7cBtLbtqd2H6HxaMEkHQmPcRaOuvxu93VWCOlwmM/s1600/mainForm+Design.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Amazing ?&lt;/div&gt;
&lt;div&gt;
:)&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Create the new Form&amp;nbsp;&lt;/h3&gt;
&lt;div&gt;
Follow the same process as before to create the new form but insted select the &lt;b&gt;JFrame&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
I named my new form &lt;b&gt;NewForm&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
Add something to the form like a label, now it should probably look like this&lt;/div&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/AVvXsEijx0vMVae1AKQiplE7rR7Q7ZmElBQSmaE0mvYk8LnUu2GDdmoi0BaahQWX4vabTWyKZFOisajPqmKCTUx-bXW8bPVQxTksxtT7ouAvhXJ2PSoxzf9PuLFhZ49rtZkvfFnvS6ZFDaGzgu8/s1600/mainForm+Design.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijx0vMVae1AKQiplE7rR7Q7ZmElBQSmaE0mvYk8LnUu2GDdmoi0BaahQWX4vabTWyKZFOisajPqmKCTUx-bXW8bPVQxTksxtT7ouAvhXJ2PSoxzf9PuLFhZ49rtZkvfFnvS6ZFDaGzgu8/s1600/mainForm+Design.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Perfect?&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
:D&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://stavroskcy.blogspot.com/2013/12/java-gui-application-open-new-form-with_12.html&quot;&gt;Part 3&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://stavroskcy.blogspot.com/feeds/411238984782099025/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stavroskcy.blogspot.com/2013/12/java-gui-application-open-new-form-with_11.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/411238984782099025'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/411238984782099025'/><link rel='alternate' type='text/html' href='http://stavroskcy.blogspot.com/2013/12/java-gui-application-open-new-form-with_11.html' title='Java: GUI application open new form with button (part 2)'/><author><name>Stavros</name><uri>http://www.blogger.com/profile/12303826957689320614</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8rdpH5mvoXPcqm6_OcaP5U2Swg5fVt-xIXQ9bqpbdPEQVbAF26HnqVW2KP68ZZtUA3i1iYEVHimSXYwbq6o_qsWNUnHYeY-cuUQkMBzqYcIzkqvYDpTU0ugMb1UzHdg/s220/20210324_200822.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3gVpjewiVGpwawQGLhDZVaPFGfh9xB7siaKMXGGoBAAFKrGTrQuTh7XThbbS5Mg4XevKfjASGCAnpbefaBoZ2HNsYvVu8PJhWF_P7cBtLbtqd2H6HxaMEkHQmPcRaOuvxu93VWCOlwmM/s72-c/mainForm+Design.JPG" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Stroumpi, Cyprus</georss:featurename><georss:point>34.8833333 32.483333300000027</georss:point><georss:box>34.8312348 32.402652300000028 34.935431799999996 32.564014300000025</georss:box></entry><entry><id>tag:blogger.com,1999:blog-863548203051237540.post-7417145944281679226</id><published>2013-12-11T14:25:00.000-08:00</published><updated>2013-12-11T14:30:55.388-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="application"/><category scheme="http://www.blogger.com/atom/ns#" term="builder"/><category scheme="http://www.blogger.com/atom/ns#" term="button"/><category scheme="http://www.blogger.com/atom/ns#" term="click"/><category scheme="http://www.blogger.com/atom/ns#" term="eclipse"/><category scheme="http://www.blogger.com/atom/ns#" term="form"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="JVM"/><category scheme="http://www.blogger.com/atom/ns#" term="new"/><category scheme="http://www.blogger.com/atom/ns#" term="pro"/><category scheme="http://www.blogger.com/atom/ns#" term="show"/><category scheme="http://www.blogger.com/atom/ns#" term="swing"/><category scheme="http://www.blogger.com/atom/ns#" term="Window"/><category scheme="http://www.blogger.com/atom/ns#" term="windowBuilder"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><category scheme="http://www.blogger.com/atom/ns#" term="wizard"/><title type='text'>Java: GUI application open new form with button (part 1)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
So this post is something like a personal reference. &lt;br /&gt;
Lets start, we are going to use Eclipse with WindowBuilder Pro. &lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmb8ZAIOutBKeZSSTf5YoxL_2ksJNEYvrwOkxiXiQKpEXBXVQLUSpvvzIXCWK755flS1EWslyvuLXHWgUr3DAerqsI_rie8Y5GgPPHwrF2_atahHbY1wa7jEJG14awjbuqaYd5MjEJD0s/s1600/name+application+window.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; display: inline !important; margin-bottom: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;195&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmb8ZAIOutBKeZSSTf5YoxL_2ksJNEYvrwOkxiXiQKpEXBXVQLUSpvvzIXCWK755flS1EWslyvuLXHWgUr3DAerqsI_rie8Y5GgPPHwrF2_atahHbY1wa7jEJG14awjbuqaYd5MjEJD0s/s200/name+application+window.JPG&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&amp;nbsp;I will not go through the installation its simple to install, just follow the instructions or search in youTube :)&lt;br /&gt;
&lt;br /&gt;
Select File --&amp;gt; Java Project&lt;br /&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/AVvXsEgmD7ON60I_-jUsAEw9BbpMJGgBGa3AcioKi0s0Vv2l4-wJWLl5m5NCQBzoR5jKbJLDqAvK27gB4DlS9rUgdqgLihywuU2cdIKBS11inz8djIhvolUyvkQnUM6UFo3dVKFHAUXLTTIA-_g/s1600/Eclipse+create+new+java+project.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;136&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmD7ON60I_-jUsAEw9BbpMJGgBGa3AcioKi0s0Vv2l4-wJWLl5m5NCQBzoR5jKbJLDqAvK27gB4DlS9rUgdqgLihywuU2cdIKBS11inz8djIhvolUyvkQnUM6UFo3dVKFHAUXLTTIA-_g/s320/Eclipse+create+new+java+project.JPG&quot; title=&quot;Eclipse Create new Java Project&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Lets specify a few project information like the project name&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLPKXgO8rDubzvh5nprgcC_Wj9KEBE3WFZ8jI6p8sFkHGCF-FIniW-e5SzM5FE_2hlld39Uvu8HNUoVJTeYKCpivJ9jIWiPZQVDXCWrw0PDo5mmbdUVcD2mg8l8U-fHpidKu8hJG2kqN8/s1600/Eclipse+create+new+java+project+(project+name).JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLPKXgO8rDubzvh5nprgcC_Wj9KEBE3WFZ8jI6p8sFkHGCF-FIniW-e5SzM5FE_2hlld39Uvu8HNUoVJTeYKCpivJ9jIWiPZQVDXCWrw0PDo5mmbdUVcD2mg8l8U-fHpidKu8hJG2kqN8/s320/Eclipse+create+new+java+project+(project+name).JPG&quot; title=&quot;Eclipse new java project (project name)&quot; width=&quot;280&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Lets give our project a name such as: &lt;b&gt;AmazingProject&lt;/b&gt;&lt;br /&gt;
Its a good idea to maintain a coding habit see the UPPER first letter. &lt;br /&gt;
But note that for variables later we are going to start their name with a lower character testingVariable for example&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click next or click finish. &amp;nbsp;The project is created.&lt;br /&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/AVvXsEjcSSy6MLqw8W_dPKQEioWEPjo5GVK_Hj2LZ7imkOVBbtQxBwINpHdkK8n3qO9bxKXRl9kbaykAVgAE-pmd83wh17rj2dwzfVnM93_WDRQixdKxBYqq7PKs-vocLSPclyNI5GLEN9smnUA/s1600/Eclipse+create+new+java+project+(finish).JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcSSy6MLqw8W_dPKQEioWEPjo5GVK_Hj2LZ7imkOVBbtQxBwINpHdkK8n3qO9bxKXRl9kbaykAVgAE-pmd83wh17rj2dwzfVnM93_WDRQixdKxBYqq7PKs-vocLSPclyNI5GLEN9smnUA/s200/Eclipse+create+new+java+project+(finish).JPG&quot; width=&quot;173&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
You will see the progress bar moving if you click next. &lt;br /&gt;
Click Finish on the next screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Add Swing application window&lt;/h3&gt;
&lt;div&gt;
select the package explorer and expand your project and create a package&lt;/div&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/AVvXsEgkG8mRmoKm2uQLvMhXnpqtYqbEdVpvRdsthyY1PsjG53xZ40iB5_w3zh5XHG8Cwu90ipCxUArfHQOFNfwsOSWgne9VoGqx3f0mfXPFPGnmsL7wIRA5hCZK3UQfuVPxwbtCrKa_22-KDzE/s1600/eclipse+package+explorer.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkG8mRmoKm2uQLvMhXnpqtYqbEdVpvRdsthyY1PsjG53xZ40iB5_w3zh5XHG8Cwu90ipCxUArfHQOFNfwsOSWgne9VoGqx3f0mfXPFPGnmsL7wIRA5hCZK3UQfuVPxwbtCrKa_22-KDzE/s1600/eclipse+package+explorer.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
We will use the same process File --&amp;gt; New --&amp;gt; Package&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvzXTR98Dsjz93i5uQCzmucolmq9hQV3uXAttkMe9aMU4N_wNHwSHQxmkV3rQwfzU4yRTjicDsYXNGKsp4UgL59fCsJbixNNtxXQzDzxlzW3IQeMRtnWUWE5fg0ocRvyU5fO8LRhrwK5k/s1600/eclipse+new+package.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; display: inline !important; margin-bottom: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;57&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvzXTR98Dsjz93i5uQCzmucolmq9hQV3uXAttkMe9aMU4N_wNHwSHQxmkV3rQwfzU4yRTjicDsYXNGKsp4UgL59fCsJbixNNtxXQzDzxlzW3IQeMRtnWUWE5fg0ocRvyU5fO8LRhrwK5k/s320/eclipse+new+package.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Name your package and click finish&lt;/div&gt;
&lt;div&gt;
i named my package amazing &lt;b&gt;** lower &#39;a&#39;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Select your created package and click File--&amp;gt; New--&amp;gt; Other&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
Expand the WindowBuilder, expand Swing Designer and select Application Window&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
The Swing &lt;b&gt;Application Window&lt;/b&gt; wizard creates a main class that instantiates and shows a &lt;b&gt;top-level&lt;/b&gt; JFrame.&lt;/blockquote&gt;
&amp;nbsp;Name your new swing application i used MainForm&lt;br /&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/AVvXsEgGHyX8pLkg3h8AvMpwldyjulp6PDCDUDjLDqF1eojRcKAd6RnavIcXQ8liTQ5VC-EbG2PWnHdUNblwJ3Q5Sq7GV1tXthwJnBd67GDovGzju5n_xoJnkYk0OogSOBFi7T6btm9YfJNmB3w/s1600/new+application+window.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;193&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGHyX8pLkg3h8AvMpwldyjulp6PDCDUDjLDqF1eojRcKAd6RnavIcXQ8liTQ5VC-EbG2PWnHdUNblwJ3Q5Sq7GV1tXthwJnBd67GDovGzju5n_xoJnkYk0OogSOBFi7T6btm9YfJNmB3w/s200/new+application+window.JPG&quot; width=&quot;200&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmb8ZAIOutBKeZSSTf5YoxL_2ksJNEYvrwOkxiXiQKpEXBXVQLUSpvvzIXCWK755flS1EWslyvuLXHWgUr3DAerqsI_rie8Y5GgPPHwrF2_atahHbY1wa7jEJG14awjbuqaYd5MjEJD0s/s1600/name+application+window.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; display: inline !important; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;195&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmb8ZAIOutBKeZSSTf5YoxL_2ksJNEYvrwOkxiXiQKpEXBXVQLUSpvvzIXCWK755flS1EWslyvuLXHWgUr3DAerqsI_rie8Y5GgPPHwrF2_atahHbY1wa7jEJG14awjbuqaYd5MjEJD0s/s200/name+application+window.JPG&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Click Finish to create the Application Window&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://stavroskcy.blogspot.com/2013/12/java-gui-application-open-new-form-with_11.html&quot;&gt;Part 2&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://stavroskcy.blogspot.com/feeds/7417145944281679226/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stavroskcy.blogspot.com/2013/12/java-gui-application-open-new-form-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/7417145944281679226'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/7417145944281679226'/><link rel='alternate' type='text/html' href='http://stavroskcy.blogspot.com/2013/12/java-gui-application-open-new-form-with.html' title='Java: GUI application open new form with button (part 1)'/><author><name>Stavros</name><uri>http://www.blogger.com/profile/12303826957689320614</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8rdpH5mvoXPcqm6_OcaP5U2Swg5fVt-xIXQ9bqpbdPEQVbAF26HnqVW2KP68ZZtUA3i1iYEVHimSXYwbq6o_qsWNUnHYeY-cuUQkMBzqYcIzkqvYDpTU0ugMb1UzHdg/s220/20210324_200822.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmb8ZAIOutBKeZSSTf5YoxL_2ksJNEYvrwOkxiXiQKpEXBXVQLUSpvvzIXCWK755flS1EWslyvuLXHWgUr3DAerqsI_rie8Y5GgPPHwrF2_atahHbY1wa7jEJG14awjbuqaYd5MjEJD0s/s72-c/name+application+window.JPG" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Stroumpi, Cyprus</georss:featurename><georss:point>34.884241173224225 32.482109069824219</georss:point><georss:box>34.877728673224226 32.472024069824222 34.890753673224225 32.492194069824215</georss:box></entry><entry><id>tag:blogger.com,1999:blog-863548203051237540.post-5885881090066680190</id><published>2012-05-23T19:23:00.004-07:00</published><updated>2012-05-31T02:35:28.393-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="posting"/><category scheme="http://www.blogger.com/atom/ns#" term="visual basic"/><category scheme="http://www.blogger.com/atom/ns#" term="wordpress"/><title type='text'>How to post on WordPress from Visual Basic .NET without any third party software</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;

How to post to&amp;nbsp;WordPress&amp;nbsp;without third party software&lt;/h2&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;

Posting without xml-rpc, email etc&lt;/h3&gt;
&lt;div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
I became obsess yesterday on how to post to&amp;nbsp;WordPress&amp;nbsp;without using the XML&amp;nbsp;thing&amp;nbsp;or email. &amp;nbsp;&lt;/div&gt;
&lt;div&gt;
I was thinking about it while I was driving around in Paphos Cyprus in the traffic where&amp;nbsp;technologically&amp;nbsp;illiterate&amp;nbsp;people dominate :)&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
People that they think that the computer works with magic or they know YouTube and they think that they are the TOP Scientists and think that is a waste of money to hire a skilled programmer to do the job. &amp;nbsp;Anyway I got angry today because a man that I made a website for him demanded me do add more things without getting paid. &amp;nbsp;Sorry I don&#39;t do charity.&lt;/div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;

Now enough with my issues :)&lt;/h4&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;

How to break things up!&lt;/h2&gt;
&lt;div&gt;
Say hello to my little friend:&lt;/div&gt;
&lt;div&gt;
The&amp;nbsp;&lt;b&gt;web Browser&amp;nbsp;&lt;/b&gt;object in Visual Basic. &amp;nbsp;I don&#39;t know who designed but if you come to Cyprus I will buy you a beer!&lt;/div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;

Do the detective&lt;/h4&gt;
&lt;div&gt;
We have to use WordPress HTML code to find our way....&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;

A bit of&amp;nbsp;Warning&amp;nbsp;&lt;/h3&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;

&lt;span style=&quot;font-weight: normal;&quot;&gt;The solution that&amp;nbsp;I&amp;nbsp;present here should not be used in a production&amp;nbsp;environment. &amp;nbsp;Its a slow code and will&amp;nbsp;totally&amp;nbsp;depend on bandwidth speeds to be faster.&lt;/span&gt;&lt;/h3&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;

&lt;span style=&quot;font-weight: normal;&quot;&gt;This article is a proof of concept&lt;/span&gt;&lt;/h3&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;

How to post&lt;/h3&gt;
&lt;div&gt;
Simple task, use the&amp;nbsp;web Browser&amp;nbsp;object to point to your&amp;nbsp;WordPress&amp;nbsp;administration login page.&lt;/div&gt;
&lt;div&gt;
Now open a Browser any will do but I prefer Chrome for this task.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
You will probably see this&lt;/div&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/AVvXsEghbMJNibaQixTIihM3PN4iBqhsfZSJyUHLXv-p06hd0D-L4As_F2ifWuVKcWXvg_eNsxQMdbmDiEeuDLuIeS_YS1maPBdYZEsRMVuHjK1BEzIizK1QEWl3VSiPTw16VrcvWZGToY9yW3I/s1600/Capture.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghbMJNibaQixTIihM3PN4iBqhsfZSJyUHLXv-p06hd0D-L4As_F2ifWuVKcWXvg_eNsxQMdbmDiEeuDLuIeS_YS1maPBdYZEsRMVuHjK1BEzIizK1QEWl3VSiPTw16VrcvWZGToY9yW3I/s320/Capture.PNG&quot; width=&quot;289&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Now select the username and right click and select &lt;b&gt;Inspect element&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
Now what you see must be similar to this&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&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/AVvXsEiC4WtLdNdtm0enjdkboIfU4m53Z0XLxqRvw-91DwgSu6ZyGbXlEnztbi5r0VbisV1qqmzj7vhLAeJLph3INNKs72_pkBHVnDw3-C4I0dz1WIqz-u-A3B-VLVVtLypHBufrw_vRc1cjYKo/s1600/Capture.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;75&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiC4WtLdNdtm0enjdkboIfU4m53Z0XLxqRvw-91DwgSu6ZyGbXlEnztbi5r0VbisV1qqmzj7vhLAeJLph3INNKs72_pkBHVnDw3-C4I0dz1WIqz-u-A3B-VLVVtLypHBufrw_vRc1cjYKo/s640/Capture.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Our&amp;nbsp;interest&amp;nbsp;is the &lt;b&gt;ID &lt;/b&gt;of the element.&lt;/div&gt;
&lt;div&gt;
Do the same for the password and the Log In button&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;

Visual basic Code&lt;/h2&gt;
&lt;div&gt;
Add a button to your form with the web browser object&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
WebBrowser1.Document.GetElementById(&quot;user_login&quot;).InnerText = &quot;username&quot;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
WebBrowser1.Document.GetElementById(&quot;user_pass&quot;).InnerText = &quot;password&quot;&lt;/div&gt;
&lt;div&gt;
WebBrowser1.Document.GetElementById(&quot;wp-submit&quot;).InvokeMember(&quot;click&quot;)&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
And as you guested (probably) it will put your username and password and click the login button.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
We managed to log in into the system. &amp;nbsp;Lets get moving on how to post an article&lt;/div&gt;
&lt;div&gt;
first we need something to post.&lt;/div&gt;
&lt;div&gt;
So create two text boxes and name them &lt;b&gt;title &lt;/b&gt;and &lt;b&gt;body&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
now we need to navigate to the posting we will do this in one new button&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
so create a new button and double click it&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
and paste&lt;/div&gt;
&lt;div&gt;
WebBrowser1.Navigate(&quot;http://yourwebsite.com/wp-admin/post-new.php&quot;)&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;But why we&amp;nbsp;don&#39;t&amp;nbsp;use the same button.&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
It will not work for the&amp;nbsp;moment&amp;nbsp;as we have to wait for the page to load etc so we will use different buttons (i warned you above is a crappy code)&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Do the detective and find the elements ID&#39;s that we will use for next!&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
or if you are lazy.......&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
So if you did that create another button and name it POST&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
and paste in the code&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
webBrowser1.Document.GetElementById(&quot;content-html&quot;).InvokeMember(&quot;click&quot;)&lt;/div&gt;
&lt;div&gt;
WebBrowser1.Document.GetElementById(&quot;content&quot;).InnerText = (bodyPOST.Text)&lt;/div&gt;
&lt;div&gt;
WebBrowser1.Document.GetElementById(&quot;title&quot;).InnerText = (titlePOST.Text)&lt;/div&gt;
&lt;div&gt;
WebBrowser1.Document.GetElementById(&quot;save-post&quot;).InvokeMember(&quot;click&quot;)&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;This is it!&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
You will now have a DRAFT post in your WordPress&lt;/div&gt;
&lt;div&gt;
I don&#39;t use the code to publish the post &lt;b&gt;You are the detective use the method we talked about it above&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
If you think it was useful then share it on&amp;nbsp;Facebook or anywhere that you think that someone will find it&amp;nbsp;useful&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
use my code to build something amazing......&lt;/div&gt;
&lt;div&gt;
For any questions send me a comment (will need moderation before they show) as I answer to everyones comments (except for SPAM!)&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Thank you&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stavroskcy.blogspot.com/feeds/5885881090066680190/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stavroskcy.blogspot.com/2012/05/how-to-post-on-wordpress-from-visual.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/5885881090066680190'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/5885881090066680190'/><link rel='alternate' type='text/html' href='http://stavroskcy.blogspot.com/2012/05/how-to-post-on-wordpress-from-visual.html' title='How to post on WordPress from Visual Basic .NET without any third party software'/><author><name>Stavros</name><uri>http://www.blogger.com/profile/12303826957689320614</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8rdpH5mvoXPcqm6_OcaP5U2Swg5fVt-xIXQ9bqpbdPEQVbAF26HnqVW2KP68ZZtUA3i1iYEVHimSXYwbq6o_qsWNUnHYeY-cuUQkMBzqYcIzkqvYDpTU0ugMb1UzHdg/s220/20210324_200822.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghbMJNibaQixTIihM3PN4iBqhsfZSJyUHLXv-p06hd0D-L4As_F2ifWuVKcWXvg_eNsxQMdbmDiEeuDLuIeS_YS1maPBdYZEsRMVuHjK1BEzIizK1QEWl3VSiPTw16VrcvWZGToY9yW3I/s72-c/Capture.PNG" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-863548203051237540.post-7013613472359382681</id><published>2012-05-18T13:08:00.003-07:00</published><updated>2012-05-18T13:08:39.886-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="case"/><category scheme="http://www.blogger.com/atom/ns#" term="iphone"/><category scheme="http://www.blogger.com/atom/ns#" term="waterproof"/><title type='text'>protective waterproof case of iphone</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
This is a new &quot;Condom-like&quot; case for i&amp;nbsp;devices and the Galaxy&lt;br /&gt;
&lt;br /&gt;
&lt;iframe frameborder=&quot;0&quot; height=&quot;270&quot; src=&quot;http://www.dailymotion.com/embed/video/xqx2cz&quot; width=&quot;480&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.dailymotion.com/video/xqx2cz_case-marine_tech&quot; target=&quot;_blank&quot;&gt;Case Marine&lt;/a&gt; &lt;i&gt; από &lt;a href=&quot;http://www.dailymotion.com/iPhoneHellas&quot; target=&quot;_blank&quot;&gt;iPhoneHellas&lt;/a&gt;&lt;/i&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stavroskcy.blogspot.com/feeds/7013613472359382681/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stavroskcy.blogspot.com/2012/05/protective-waterproof-case-of-iphone.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/7013613472359382681'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/7013613472359382681'/><link rel='alternate' type='text/html' href='http://stavroskcy.blogspot.com/2012/05/protective-waterproof-case-of-iphone.html' title='protective waterproof case of iphone'/><author><name>Stavros</name><uri>http://www.blogger.com/profile/12303826957689320614</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8rdpH5mvoXPcqm6_OcaP5U2Swg5fVt-xIXQ9bqpbdPEQVbAF26HnqVW2KP68ZZtUA3i1iYEVHimSXYwbq6o_qsWNUnHYeY-cuUQkMBzqYcIzkqvYDpTU0ugMb1UzHdg/s220/20210324_200822.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-863548203051237540.post-627019086089046387</id><published>2012-03-24T13:35:00.002-07:00</published><updated>2012-03-24T13:35:27.821-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="case"/><category scheme="http://www.blogger.com/atom/ns#" term="cover"/><category scheme="http://www.blogger.com/atom/ns#" term="iphone"/><category scheme="http://www.blogger.com/atom/ns#" term="protection"/><title type='text'>hard drive cover for iphone 4</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;http://www.thumbsupworld.co.uk/prod_images/image_cat3/1244_image1_New_Image.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://www.thumbsupworld.co.uk/prod_images/image_cat3/1244_image1_New_Image.JPG&quot; width=&quot;168&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot;&gt;For&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;those of you who&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;want&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;your iPhone&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;to stand out&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;in the crowd&lt;/span&gt;, there is a case for that :) &lt;span class=&quot;hps&quot;&gt;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&#39;Hard Drive Cover&#39;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;to give the&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;appearance of an &lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;internal hard&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;drive.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;This is the&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;latest creation&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;of&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Homade,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;hard case&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;equipped&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;with all&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;barcodes,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;symbols&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;and letters&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;that can be found&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;on a hard&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;disk.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;Beyond&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;separate instance&lt;/span&gt;&lt;span class=&quot;&quot;&gt;, the case&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;provides&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;protection&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;to the iPhone&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;from scratches,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;knocks and&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;falls.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;The case is&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;only compatible with&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;iPhone 4 (&lt;/span&gt;&lt;span class=&quot;&quot;&gt;probably&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;soon&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;for&lt;/span&gt; the &lt;span class=&quot;hps&quot;&gt;iPhone 4S)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot;&gt;S&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;o far&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;no&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;indicated&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;availability and no&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;price.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stavroskcy.blogspot.com/feeds/627019086089046387/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stavroskcy.blogspot.com/2012/03/hard-drive-cover-for-iphone-4.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/627019086089046387'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/627019086089046387'/><link rel='alternate' type='text/html' href='http://stavroskcy.blogspot.com/2012/03/hard-drive-cover-for-iphone-4.html' title='hard drive cover for iphone 4'/><author><name>Stavros</name><uri>http://www.blogger.com/profile/12303826957689320614</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8rdpH5mvoXPcqm6_OcaP5U2Swg5fVt-xIXQ9bqpbdPEQVbAF26HnqVW2KP68ZZtUA3i1iYEVHimSXYwbq6o_qsWNUnHYeY-cuUQkMBzqYcIzkqvYDpTU0ugMb1UzHdg/s220/20210324_200822.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-863548203051237540.post-2401376109616809914</id><published>2012-03-21T23:52:00.002-07:00</published><updated>2012-03-21T23:52:46.438-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="apple"/><category scheme="http://www.blogger.com/atom/ns#" term="ipad"/><category scheme="http://www.blogger.com/atom/ns#" term="million"/><category scheme="http://www.blogger.com/atom/ns#" term="the new ipad"/><title type='text'>the new iPad! 3m sold</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;http://astra.com.cy/images/ipad_new.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;192&quot; src=&quot;http://astra.com.cy/images/ipad_new.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
The new iPad was introduced to apple stores last Friday and already 3 milion devices were sold in 3 days!&lt;br /&gt;
I have to mention that the first iPad took nearly a month to sale 1 milion. &lt;br /&gt;
&lt;br /&gt;
but seriously &lt;b&gt;new iPad?&lt;/b&gt;&amp;nbsp; Whats the next one will be named?&amp;nbsp; &lt;b&gt;the newest iPad??&lt;/b&gt;?&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stavroskcy.blogspot.com/feeds/2401376109616809914/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stavroskcy.blogspot.com/2012/03/new-ipad-3m-sold.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/2401376109616809914'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/2401376109616809914'/><link rel='alternate' type='text/html' href='http://stavroskcy.blogspot.com/2012/03/new-ipad-3m-sold.html' title='the new iPad! 3m sold'/><author><name>Stavros</name><uri>http://www.blogger.com/profile/12303826957689320614</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8rdpH5mvoXPcqm6_OcaP5U2Swg5fVt-xIXQ9bqpbdPEQVbAF26HnqVW2KP68ZZtUA3i1iYEVHimSXYwbq6o_qsWNUnHYeY-cuUQkMBzqYcIzkqvYDpTU0ugMb1UzHdg/s220/20210324_200822.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-863548203051237540.post-2769618633493851784</id><published>2012-03-21T23:41:00.000-07:00</published><updated>2012-03-21T23:41:22.845-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="apple"/><category scheme="http://www.blogger.com/atom/ns#" term="challange"/><category scheme="http://www.blogger.com/atom/ns#" term="microsoft"/><category scheme="http://www.blogger.com/atom/ns#" term="os x"/><category scheme="http://www.blogger.com/atom/ns#" term="tablets"/><category scheme="http://www.blogger.com/atom/ns#" term="windows 8"/><title type='text'>Will Microsoft challange Apple with Windows 8?</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;http://windows8servicepack.com/wp-content/uploads/2011/12/Windows-8-Beta.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;252&quot; src=&quot;http://windows8servicepack.com/wp-content/uploads/2011/12/Windows-8-Beta.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
A new beginning...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
A new beginning for Microsoft, with the new design of Windows 8 the company looks forward to challenge the tablet market.&amp;nbsp; In order to challenge though they have to be ready before next October.&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With the cosumer preview available for enthusiasts and other tech guys Microsoft looks forward to chalange Apple.&amp;nbsp; With the support of Intel to deliver ultra thin devices its very possible that the new best tablet will be powered by Windows.&lt;br /&gt;
&lt;br /&gt;
We look forward Microsoft to try the new products.&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
But Apple will not stay behind :)&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stavroskcy.blogspot.com/feeds/2769618633493851784/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stavroskcy.blogspot.com/2012/03/will-microsoft-challange-apple-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/2769618633493851784'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/2769618633493851784'/><link rel='alternate' type='text/html' href='http://stavroskcy.blogspot.com/2012/03/will-microsoft-challange-apple-with.html' title='Will Microsoft challange Apple with Windows 8?'/><author><name>Stavros</name><uri>http://www.blogger.com/profile/12303826957689320614</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8rdpH5mvoXPcqm6_OcaP5U2Swg5fVt-xIXQ9bqpbdPEQVbAF26HnqVW2KP68ZZtUA3i1iYEVHimSXYwbq6o_qsWNUnHYeY-cuUQkMBzqYcIzkqvYDpTU0ugMb1UzHdg/s220/20210324_200822.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-863548203051237540.post-4518667636511757741</id><published>2012-03-21T23:23:00.001-07:00</published><updated>2012-03-21T23:23:37.224-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="adobe"/><category scheme="http://www.blogger.com/atom/ns#" term="cs6"/><category scheme="http://www.blogger.com/atom/ns#" term="editing"/><category scheme="http://www.blogger.com/atom/ns#" term="flash"/><category scheme="http://www.blogger.com/atom/ns#" term="photoshop"/><category scheme="http://www.blogger.com/atom/ns#" term="pictures"/><category scheme="http://www.blogger.com/atom/ns#" term="software"/><title type='text'>Adobe Photoshop CS6</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;http://labs.adobe.com/technologies/photoshopcs6/images/photoshopcs6_557x200.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;114&quot; src=&quot;http://labs.adobe.com/technologies/photoshopcs6/images/photoshopcs6_557x200.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;b&gt;Adobe &lt;/b&gt;released again an amazing piece of software!&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can get the cs6 beta at adobes website &lt;a href=&quot;http://labs.adobe.com/downloads/photoshopcs6.html&quot;&gt;http://labs.adobe.com/downloads/photoshopcs6.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
The os X version is 984 MB and Windows version 1.7 GB&amp;nbsp; &lt;br /&gt;
We can try the beta version for 7 days trial period. &lt;br /&gt;
&lt;br /&gt;
Winston 
Hendrickson, Adobe&#39;s vice president products, Creative Media Solutions, 
said in a statement :&lt;br /&gt;
&quot;Photoshop CS6 will be a milestone release that pushes the boundaries of
 imaging innovation with incredible speed and performance&quot;&lt;br /&gt;
&lt;br /&gt;
We are still waiting for adobe to announce the final release date....&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stavroskcy.blogspot.com/feeds/4518667636511757741/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stavroskcy.blogspot.com/2012/03/adobe-photoshop-cs6.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/4518667636511757741'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/4518667636511757741'/><link rel='alternate' type='text/html' href='http://stavroskcy.blogspot.com/2012/03/adobe-photoshop-cs6.html' title='Adobe Photoshop CS6'/><author><name>Stavros</name><uri>http://www.blogger.com/profile/12303826957689320614</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8rdpH5mvoXPcqm6_OcaP5U2Swg5fVt-xIXQ9bqpbdPEQVbAF26HnqVW2KP68ZZtUA3i1iYEVHimSXYwbq6o_qsWNUnHYeY-cuUQkMBzqYcIzkqvYDpTU0ugMb1UzHdg/s220/20210324_200822.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-863548203051237540.post-7785573505094400128</id><published>2012-03-21T22:58:00.000-07:00</published><updated>2012-03-21T22:58:25.603-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="artificial"/><category scheme="http://www.blogger.com/atom/ns#" term="devices"/><category scheme="http://www.blogger.com/atom/ns#" term="intelligence"/><category scheme="http://www.blogger.com/atom/ns#" term="phone"/><category scheme="http://www.blogger.com/atom/ns#" term="phones"/><category scheme="http://www.blogger.com/atom/ns#" term="power"/><category scheme="http://www.blogger.com/atom/ns#" term="smart"/><category scheme="http://www.blogger.com/atom/ns#" term="smart phones"/><category scheme="http://www.blogger.com/atom/ns#" term="voice"/><title type='text'>Voice can help make things easier</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;http://www.deborahhalverson.com/blog/wp-content/uploads/2012/02/microphone-2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;http://www.deborahhalverson.com/blog/wp-content/uploads/2012/02/microphone-2.jpg&quot; width=&quot;192&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
It&#39;s very simple for me to talk to my smart phone and ask it to do things for me. For example this moment I&#39;m not typing what you see on your screen I&#39;m talking to this software that converts my voice to text. This software I&#39;m using Vlingo allows me to create articles very very fast.&lt;br /&gt;
As i talk the program converts my voice into text.&amp;nbsp; A few changes on the computer and is ready to go!&lt;br /&gt;
&lt;br /&gt;
Recently I came across siri, Apple&#39;s assistant for the iPhone 4s.  I was amazed how this software can do so many things for people.&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
Not all people have the physical ability to type and use touchscreen mobile phones.&lt;br /&gt;
&lt;br /&gt;
The need - rush for voice enabled mobile devices came when Apple inc released the new iPhone. I don&#39;t think that they are any people involved with smart phones that didn&#39;t watch the advertising of the new iPhone - application.&amp;nbsp; Apple restricted siri on the 4s as a marketing strategy and as it seems it works.&lt;br /&gt;
&lt;br /&gt;
Hackers&amp;nbsp; already made it possible to download and install the app on older device enabling non 4s users to use features.&lt;br /&gt;
&lt;br /&gt;
Very soon and don&#39;t be amazed we may see a legislation that forces the smart phone manufacturers to have voice control and natural voice conversation on their products this will not only make devices more friendly to the user but it will make devices more accessible to people with disabilities.&lt;br /&gt;
&lt;br /&gt;
Imagine the digital world free from hardware and painfully small keyboards buttons or touch with just the control of the voice.&amp;nbsp; Maybe not fully voice but a hybrid between the &quot;classic&quot; and the &quot;new&quot;. &lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://youthempowermentsolutions.org/sites/default/files/voice-speaking.gif&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;167&quot; src=&quot;http://youthempowermentsolutions.org/sites/default/files/voice-speaking.gif&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stavroskcy.blogspot.com/feeds/7785573505094400128/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stavroskcy.blogspot.com/2012/03/voice-can-help-make-things-easier.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/7785573505094400128'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/7785573505094400128'/><link rel='alternate' type='text/html' href='http://stavroskcy.blogspot.com/2012/03/voice-can-help-make-things-easier.html' title='Voice can help make things easier'/><author><name>Stavros</name><uri>http://www.blogger.com/profile/12303826957689320614</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8rdpH5mvoXPcqm6_OcaP5U2Swg5fVt-xIXQ9bqpbdPEQVbAF26HnqVW2KP68ZZtUA3i1iYEVHimSXYwbq6o_qsWNUnHYeY-cuUQkMBzqYcIzkqvYDpTU0ugMb1UzHdg/s220/20210324_200822.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-863548203051237540.post-493796294063919838</id><published>2012-03-21T20:39:00.001-07:00</published><updated>2012-03-21T22:59:16.679-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Sara iPhone siri siriport spire alternative free 4s cydia apple"/><title type='text'>SARA best free alternative to siri????</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a href=&quot;https://lh3.googleusercontent.com/-99lsz7e8NDw/T2ql6sAONBI/AAAAAAAAAEw/cxncvDD6waw/s640/blogger-image-176395002.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://lh3.googleusercontent.com/-99lsz7e8NDw/T2ql6sAONBI/AAAAAAAAAEw/cxncvDD6waw/s200/blogger-image-176395002.jpg&quot; width=&quot;133&quot; /&gt;&lt;/a&gt;Recently i came across sara. Sara is a Siri like app for iDevices. Sara was created by a Vietnamese developer Nobita.  Sara at the moment is at version 0.2.2 build 1.  &lt;br /&gt;
&lt;br /&gt;
Many idevice users including iphone users are frustrated because sara crashes.  Nobita recently released the newest version of his software but as he told me he is alone on this project and he cannot test the software on every device. &lt;br /&gt;
&lt;br /&gt;
I updated sara from Nobitas repo on cydia but even if i say hi the software crashes. &lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
Due to this problematic software i decided to use some alternative software. Spire that ports siri to the iphone 4 device is a great way and legal way to have siri to your iDevice. You just need a trusty server that does all the dirty work.  BUT some apps fail to start after spire is installed.  Although spire problem i believe that spire is the best thing if you want siri working on other than iphone 4s.  Nobita did a great work but his releases are not trustworthy as he is unable to test on all devices.  At least when spire is installed you get the legal port with all the api&#39;s; only a good server that coverts natural language to something that siri understands. &lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://lh5.googleusercontent.com/-kAJkBwhFLok/T2qmVjZYX1I/AAAAAAAAAE4/sDSPYIQzegs/s640/blogger-image-1197977140.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://lh5.googleusercontent.com/-kAJkBwhFLok/T2qmVjZYX1I/AAAAAAAAAE4/sDSPYIQzegs/s200/blogger-image-1197977140.jpg&quot; width=&quot;133&quot; /&gt;&lt;/a&gt;I will keep an eye on sara but until Nobita releases a stable version i would keep spire.  You could argue that with spire some of your apps will stop etc. I simply un-installed them and install again and they work fine. &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stavroskcy.blogspot.com/feeds/493796294063919838/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stavroskcy.blogspot.com/2012/03/sara-best-free-alternative-to-siri.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/493796294063919838'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/493796294063919838'/><link rel='alternate' type='text/html' href='http://stavroskcy.blogspot.com/2012/03/sara-best-free-alternative-to-siri.html' title='SARA best free alternative to siri????'/><author><name>Stavros</name><uri>http://www.blogger.com/profile/12303826957689320614</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8rdpH5mvoXPcqm6_OcaP5U2Swg5fVt-xIXQ9bqpbdPEQVbAF26HnqVW2KP68ZZtUA3i1iYEVHimSXYwbq6o_qsWNUnHYeY-cuUQkMBzqYcIzkqvYDpTU0ugMb1UzHdg/s220/20210324_200822.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://lh3.googleusercontent.com/-99lsz7e8NDw/T2ql6sAONBI/AAAAAAAAAEw/cxncvDD6waw/s72-c/blogger-image-176395002.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-863548203051237540.post-2165515440020891050</id><published>2011-12-26T01:43:00.000-08:00</published><updated>2011-12-26T01:50:10.336-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="arduino"/><category scheme="http://www.blogger.com/atom/ns#" term="flight simulator"/><category scheme="http://www.blogger.com/atom/ns#" term="FSX"/><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><category scheme="http://www.blogger.com/atom/ns#" term="visual basic"/><title type='text'>Connecting Arduino to Flight Simulator X</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h1&gt;








&lt;span xmlns=&quot;&quot;&gt;Introduction&lt;/span&gt;&lt;/h1&gt;
&lt;span xmlns=&quot;&quot;&gt;Welcome to my tutorial on how to connect Arduino to Microsoft Flight simulator.  &lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;This is the easiest method I found.   &lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;FSX SDK exists but lacks of documentation, is not useful as it requires huge amount of code.  I wanted something easy and after some research I was able to connect to FSX using the FSUIPC API.  Please note that to get some of the functionality you have to register FSUIPC.  And I thought sharing this with the world, maybe someone will benefit.  In this ``tutorial`` I will explain the process and not just give you the code.  I believe in understanding not just knowing.  &lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;br /&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;h2&gt;








&lt;span xmlns=&quot;&quot;&gt;System design&lt;/span&gt;&lt;/h2&gt;
&lt;span xmlns=&quot;&quot;&gt;Amazing system design :)&lt;/span&gt;&lt;br /&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/AVvXsEiDGZMbrcS1yYBsUDK6tBe17VpKU8iRLzBlo6lUrVxT8C4u8wK2sKdxrkQ3Mznz-Ev8XFDeYRH5OFWP_qnE6xHPoTo1JIRF8ZrH_g_eRozQ3xaRhOazg09jUNhwJMM5CgvklGenQGwSNno/s1600/image001-785643.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;128&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDGZMbrcS1yYBsUDK6tBe17VpKU8iRLzBlo6lUrVxT8C4u8wK2sKdxrkQ3Mznz-Ev8XFDeYRH5OFWP_qnE6xHPoTo1JIRF8ZrH_g_eRozQ3xaRhOazg09jUNhwJMM5CgvklGenQGwSNno/s640/image001-785643.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span xmlns=&quot;&quot;&gt;Amazing!!!! :) You get the picture&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;The Arduino send serial data to a VB application that uses the FSUIPC API to control FSX.  In this tutorial we are going to control the Landing gear.&lt;/span&gt;&lt;br /&gt;
&lt;h1&gt;








&lt;span xmlns=&quot;&quot;&gt;Requirements:&lt;/span&gt;&lt;/h1&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span xmlns=&quot;&quot;&gt;Microsoft Flight Simulator X (FSX) &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;div&gt;
&lt;span xmlns=&quot;&quot;&gt;FSUIPC 4, you can download it from:&lt;/span&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span xmlns=&quot;&quot;&gt;&lt;a href=&quot;http://www.schiratti.com/dowson.html&quot;&gt;http://www.schiratti.com/dowson.html&lt;/a&gt;&lt;br /&gt;      &lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div&gt;
&lt;span xmlns=&quot;&quot;&gt;FSUIPC SDK&lt;/span&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span xmlns=&quot;&quot;&gt;You can also download it from the website shown above&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span xmlns=&quot;&quot;&gt;Scroll a bit down :)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div&gt;
&lt;span xmlns=&quot;&quot;&gt;Arduino (any version)&lt;/span&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span xmlns=&quot;&quot;&gt;And how to get the input from a simple switch &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span xmlns=&quot;&quot;&gt;Switch, 1K resistor and some wires&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div&gt;
&lt;span xmlns=&quot;&quot;&gt;Microsoft Visual Studio (I have 2010)&lt;/span&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span xmlns=&quot;&quot;&gt;VB.NET&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span xmlns=&quot;&quot;&gt;.net framework (any) I have 4&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;b&gt;Before you start up make sure that you have everything installed &lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h1&gt;








&lt;span xmlns=&quot;&quot;&gt;Arduino part&lt;/span&gt;&lt;/h1&gt;
&lt;span xmlns=&quot;&quot;&gt;The first thing we have to do is to make the switch.  Use my schematic and make your own simple switch circuit.&lt;/span&gt;&lt;br /&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/AVvXsEin-jpKNublBBn1DFmXbl7Lzg45sVQXgqdRbzU-d_8DR-2taa2qYnI-42llXe-hwVX1VX2lflUCf1tM8yr1yqNSi0EY5akG0h9LKobhL4I3qUfYsgyXNs5wIwmttMwJvVQhuk36EiQH-ZQ/s1600/image002-786407.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;283&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEin-jpKNublBBn1DFmXbl7Lzg45sVQXgqdRbzU-d_8DR-2taa2qYnI-42llXe-hwVX1VX2lflUCf1tM8yr1yqNSi0EY5akG0h9LKobhL4I3qUfYsgyXNs5wIwmttMwJvVQhuk36EiQH-ZQ/s320/image002-786407.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;br /&gt;   &lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;Note that the switch is a simple on/off switch just like this one here (I&#39;m trying to make a panel for a homemade flight simulator)&lt;/span&gt;&lt;br /&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/AVvXsEgd3eZ_qategfGn_bu3zgGUdjZ6zYF12VszGk-V9s58y5DeUzDEF4ocjmv6YT1gjzmtWR6u6qWqo190ow5E_ug9af4fz5RJzjDajTm2LIPLVPZirZAEnr0vys9zLfuUkUeDTIGkJVpfsrM/s1600/image003-787576.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgd3eZ_qategfGn_bu3zgGUdjZ6zYF12VszGk-V9s58y5DeUzDEF4ocjmv6YT1gjzmtWR6u6qWqo190ow5E_ug9af4fz5RJzjDajTm2LIPLVPZirZAEnr0vys9zLfuUkUeDTIGkJVpfsrM/s1600/image003-787576.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;br /&gt;   &lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;We can proceed to the code for the Arduino.&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;Our Arduino scenario &lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;We have to get the state of the switch; the Arduino is going to monitor the state of the switch with the digitalRead function.&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;When we get the state of our switch we will send serial data back to the computer.&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;Use your Arduino IDE and upload the code&lt;/span&gt;&lt;br /&gt;
&lt;h2&gt;








&lt;span xmlns=&quot;&quot;&gt;Arduino Code&lt;/span&gt;&lt;/h2&gt;
&lt;span xmlns=&quot;&quot;&gt;/* start of code */&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span xmlns=&quot;&quot;&gt;int LandingGear = 3; /* Landing gear*/&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;void setup() {&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&amp;nbsp; Serial.begin(9600);&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&amp;nbsp; pinMode(LandingGear, INPUT); &lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;void loop() {&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&amp;nbsp; if (digitalRead(LandingGear) == HIGH){Serial.print(&quot;GEAR1&quot;);} else{Serial.print(&quot;GEAR0&quot;);}&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&amp;nbsp; Serial.println();&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&amp;nbsp; delay(1000);&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;}&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;/* End of code*/&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;b&gt;What we need for the VB .NET solution?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;b&gt;DLL found in the FSUIPC SDK &lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;b&gt;You can find the dll in the ZIP file FSUIPCDotNetClient2.0.zip that came with the SDK&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;After you locate the DLL extract it in a folder of your option&lt;/span&gt;&lt;br /&gt;
&lt;h1&gt;








&lt;span xmlns=&quot;&quot;&gt;Desktop application&lt;/span&gt;&lt;/h1&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/AVvXsEgzwIwg74xbqsy2-aUBKHaaIuI3S28AnBuCNah07FKB2RWfk-rScJI4pJLzh1nK_5thZDmCjipOdkfHDVS9TuzV2U0vnUaJ2KuybP1ckdx4fTyO2NzsagC4QNiU1ay6YqHnoIAwKHQx3x4/s1600/image004-788743.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzwIwg74xbqsy2-aUBKHaaIuI3S28AnBuCNah07FKB2RWfk-rScJI4pJLzh1nK_5thZDmCjipOdkfHDVS9TuzV2U0vnUaJ2KuybP1ckdx4fTyO2NzsagC4QNiU1ay6YqHnoIAwKHQx3x4/s640/image004-788743.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;br /&gt;   &lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;Start a new project by going to file -&amp;gt; New Project&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;Select a Visual Basic .NET Windows Forms Application and give it a name of your choice&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;I gave the name StavrosFSX Arduino&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;Press the OK button to create the project&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;b&gt;Just to be safe, SAVE your application &lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;b&gt;File -&amp;gt; SAVE ALL&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;Now it&#39;s a very &lt;b&gt;important &lt;/b&gt;step we have to add a reference to the DLL that we found previously.&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;In the folder that Microsoft Visual studio created in my documents I am going to save the DLL so I don&#39;t have to worry about finding it later (if you are going to do the same make sure that you copy the xml file as well, (Note that the name of the folder is the same name of your project).&lt;/span&gt;&lt;br /&gt;
&lt;h2&gt;








&lt;span xmlns=&quot;&quot;&gt;FSUIPC dll&lt;/span&gt;&lt;/h2&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/AVvXsEgzuGwSmNt3g5fEIS0P3RhdYWvcaLmS16E8f4F2lhrH6Xowyaa_-ELTj-Nc4qB_rypdrrz4ROa-1cW3DuqwpHj_evCQkW8kpi25fgeabds4jzhgnOgZO4z_r4bPch3jBdRnWz_141R5idU/s1600/image005-790150.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzuGwSmNt3g5fEIS0P3RhdYWvcaLmS16E8f4F2lhrH6Xowyaa_-ELTj-Nc4qB_rypdrrz4ROa-1cW3DuqwpHj_evCQkW8kpi25fgeabds4jzhgnOgZO4z_r4bPch3jBdRnWz_141R5idU/s320/image005-790150.jpg&quot; width=&quot;315&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;br /&gt;   &lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;You can also manipulate the references from the solution explorer but anyway.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;Select the References Tab at your left and then the &lt;b&gt;Add &lt;/b&gt;button, from the dialog that pops up click browse and find the DLL inside the folder you copied it.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;The software is going to report the installed reference&amp;nbsp;&lt;/span&gt;&lt;br /&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/AVvXsEjRxGh0lH6Cd3BkAA-0-ankbNU9Wohuty1NHvHFdlrqDehvGBFL21YnBwJG224FX13_kIFmDAr2gjjbE7KzZ1DGzzBxI2Ylxjxv74_aLC7Op9SBWLxW9ARX9vxvbNcO-5uBOwkq5RIKvqk/s1600/image006-790856.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;88&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRxGh0lH6Cd3BkAA-0-ankbNU9Wohuty1NHvHFdlrqDehvGBFL21YnBwJG224FX13_kIFmDAr2gjjbE7KzZ1DGzzBxI2Ylxjxv74_aLC7Op9SBWLxW9ARX9vxvbNcO-5uBOwkq5RIKvqk/s640/image006-790856.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;Press the &lt;b&gt;Save all &lt;/b&gt;menu one more time and let&#39;s start programming :)&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;As we saw before the Arduino includes one switch and we can get reports from the Arduino through the serial port.  We are going to use the serial port to collect value of the switch and we are going to use the API (DLL) to send it to FSX&lt;b&gt;.   &lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXQvSHSa2vTDHGHn6tH-XdQ0xBrC9mqmyviKSHXAzzr3IblF_RoIVxqgduxSbsYbp_l9cSLFnc6FLHB-lG7BnsG1Y7NlRmcf0u5Y3XCafRs-ElVZs19jj34_0gwOjGOIkPsBKlL4q-BAQ/s1600/image007-793390.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXQvSHSa2vTDHGHn6tH-XdQ0xBrC9mqmyviKSHXAzzr3IblF_RoIVxqgduxSbsYbp_l9cSLFnc6FLHB-lG7BnsG1Y7NlRmcf0u5Y3XCafRs-ElVZs19jj34_0gwOjGOIkPsBKlL4q-BAQ/s1600/image007-793390.jpg&quot; /&gt;&lt;/a&gt;&lt;span xmlns=&quot;&quot;&gt;&lt;b&gt;Simple &lt;/b&gt;:)&lt;/span&gt;&lt;br /&gt;
&lt;h2&gt;








&lt;span xmlns=&quot;&quot;&gt;Design&lt;/span&gt;&lt;/h2&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/AVvXsEhRQttkUlolN7k_6G9hdWFKxEUi6XD9lmOBZOQ3ce64dp20v5mFEPAdz-nXyCBJ3kSNNWgF-i9tJtCW_QbRE45RCcg3O8FC-2-6WWTiktFwHYq63UKYlcThqwtArvZhA0czCGmWH_6j-VE/s1600/image008-794364.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;508&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRQttkUlolN7k_6G9hdWFKxEUi6XD9lmOBZOQ3ce64dp20v5mFEPAdz-nXyCBJ3kSNNWgF-i9tJtCW_QbRE45RCcg3O8FC-2-6WWTiktFwHYq63UKYlcThqwtArvZhA0czCGmWH_6j-VE/s640/image008-794364.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;br /&gt;   &lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;I gave this names, please use your own style when naming the controllers don&#39;t use my bad naming I was in hurry :)&lt;/span&gt;&lt;br /&gt;
&lt;h2&gt;








&lt;span xmlns=&quot;&quot;&gt;Serial Data observation&lt;/span&gt;&lt;/h2&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/AVvXsEgIe2QLLYb37O8gAgOBbDg5fcycSTK-Z4tusq1QjIF7gSaS-_Hvwo_ihkzCk-FK6Xn295CTkPTFg3qHOtY2LKyyGOdjp8C8-eyCkPnfWdA2mwBUTyNNNxd_q0W2X1hlQAJEf9ChhrfGFF0/s1600/image009-795886.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIe2QLLYb37O8gAgOBbDg5fcycSTK-Z4tusq1QjIF7gSaS-_Hvwo_ihkzCk-FK6Xn295CTkPTFg3qHOtY2LKyyGOdjp8C8-eyCkPnfWdA2mwBUTyNNNxd_q0W2X1hlQAJEf9ChhrfGFF0/s1600/image009-795886.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;br /&gt;   &lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;Now open your Arduino serial terminal and observe the different values that the Arduino transmits through the serial port, observe also the difference when we close and open the circuit.  From here we make a mental note of the com port and the baud rate, in my case COM17 and baud rate 9600.  &lt;b&gt;Make sure the baud is the same with the Arduino in the void setup() or your data will be ``scrambled`` &lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h2&gt;








&lt;span xmlns=&quot;&quot;&gt;User settings&lt;/span&gt;&lt;/h2&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/AVvXsEiti6GZ_DuzzrUiSFnmDVmBMdc1jV69Ykt4SBZ3nW7n39bc1mqRYFBCR48EOVfocQHG_M6c1eQgN5ivJX-E9JOqA0Lb7o-bfJN2HfeUNIQT2jDzzwpdkgZ8POah-shhU8AvMJ7qqK309PA/s1600/image010-797274.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;252&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiti6GZ_DuzzrUiSFnmDVmBMdc1jV69Ykt4SBZ3nW7n39bc1mqRYFBCR48EOVfocQHG_M6c1eQgN5ivJX-E9JOqA0Lb7o-bfJN2HfeUNIQT2jDzzwpdkgZ8POah-shhU8AvMJ7qqK309PA/s640/image010-797274.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;br /&gt;   &lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;Now I like to have the program remember my com port and my baud rate so I don&#39;t have to type them all the time.  Visual studio and the .NET framework allow us to do with the Application settings.  You can set the user settings using the project properties as we did above when we referenced the API.  &lt;b&gt;Note that we can change the settings later in our code.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h3&gt;








&lt;span xmlns=&quot;&quot;&gt;Get the user settings&lt;/span&gt;&lt;/h3&gt;
&lt;span xmlns=&quot;&quot;&gt;Now let&#39;s write up a bit of code to get and save the settings.&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;Double click on your form in order to get the form load code. And create a new sub to handle the loading into the form.&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;Your code should look like this&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Private&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt; Form1_Load(&lt;span style=&quot;color: blue;&quot;&gt;ByVal&lt;/span&gt; sender &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; System.&lt;span style=&quot;color: #2b91af;&quot;&gt;Object&lt;/span&gt;, &lt;span style=&quot;color: blue;&quot;&gt;ByVal&lt;/span&gt; e &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; System.&lt;span style=&quot;color: #2b91af;&quot;&gt;EventArgs&lt;/span&gt;) &lt;span style=&quot;color: blue;&quot;&gt;Handles&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;MyBase&lt;/span&gt;.Load&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;        loadUserSettings()&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;br /&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Private&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt; loadUserSettings()&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Try&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;            txtComPort.Text = &lt;span style=&quot;color: blue;&quot;&gt;My&lt;/span&gt;.Settings.ComPort&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;            txtBaudRate.Text = &lt;span style=&quot;color: blue;&quot;&gt;My&lt;/span&gt;.Settings.BaudRate&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Catch&lt;/span&gt; ex &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: #2b91af;&quot;&gt;Exception&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;            MsgBox(ex.ToString)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Try&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;For simple operations we can always use the load method of our form but I prefer to split the code because I&#39;m planning to extend the code later and easier to handle and understand.&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;Run your application and check that everything is ok&lt;/span&gt;&lt;br /&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/AVvXsEifWz3LGefRanl46wrvJxY8-7s_T0HM1hl3yCqEEcNvyYAsUO6dFZy9pMIna9LVHoKSrLEsbpkdQK0s22cdLIzvvIQkEOzjU5LFyT9tqCBGhX0kqL1PHj3Vv2XF4lKsvkYLRRTg-WJnkr8/s1600/image011-798112.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifWz3LGefRanl46wrvJxY8-7s_T0HM1hl3yCqEEcNvyYAsUO6dFZy9pMIna9LVHoKSrLEsbpkdQK0s22cdLIzvvIQkEOzjU5LFyT9tqCBGhX0kqL1PHj3Vv2XF4lKsvkYLRRTg-WJnkr8/s1600/image011-798112.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3&gt;








&lt;span xmlns=&quot;&quot;&gt;Save the user settings&lt;/span&gt;&lt;/h3&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Private&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt; btnSAVESETTINGS_Click(&lt;span style=&quot;color: blue;&quot;&gt;ByVal&lt;/span&gt; sender &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; System.&lt;span style=&quot;color: #2b91af;&quot;&gt;Object&lt;/span&gt;, &lt;span style=&quot;color: blue;&quot;&gt;ByVal&lt;/span&gt; e &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; System.&lt;span style=&quot;color: #2b91af;&quot;&gt;EventArgs&lt;/span&gt;) &lt;span style=&quot;color: blue;&quot;&gt;Handles&lt;/span&gt; btnSAVESETTINGS.Click&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Try&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;If&lt;/span&gt; txtBaudRate.Text &amp;lt;&amp;gt; &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;And&lt;/span&gt; txtComPort.Text &amp;lt;&amp;gt; &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Then&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;My&lt;/span&gt;.Settings.ComPort = txtComPort.Text&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;My&lt;/span&gt;.Settings.BaudRate = txtBaudRate.Text&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;My&lt;/span&gt;.Settings.Save()&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Else&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;                MsgBox(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Please type your connection settings&quot;&lt;/span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;If&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;br /&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Catch&lt;/span&gt; ex &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: #2b91af;&quot;&gt;Exception&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;            MsgBox(ex.ToString)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Try&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;It&#39;s a simple operation and we will use the button sub to handle the process.&lt;/span&gt;&lt;br /&gt;
&lt;h2&gt;








&lt;span xmlns=&quot;&quot;&gt;Main programming&lt;/span&gt;&lt;/h2&gt;
&lt;span xmlns=&quot;&quot;&gt;How our program works?&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;Our program works by reading the serial port and when our program finds a difference in the readings it will transmit the appropriate command to the API.  We are going to make our program to create a new thread for this purpose.  The new thread will allow the user to have control of the form and allow him or her to stop the process.&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Dim&lt;/span&gt; s1 &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: #2b91af;&quot;&gt;SerialPort&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Dim&lt;/span&gt; myThread &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: #2b91af;&quot;&gt;Thread&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;Using this code we declare our serial port and the thread that we are going to use, put this code in the main class of your program.&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;Now let&#39;s double click our connect button and write the following code&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Private&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt; bntConnect_to_serial_Click(&lt;span style=&quot;color: blue;&quot;&gt;ByVal&lt;/span&gt; sender &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; System.&lt;span style=&quot;color: #2b91af;&quot;&gt;Object&lt;/span&gt;, &lt;span style=&quot;color: blue;&quot;&gt;ByVal&lt;/span&gt; e &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; System.&lt;span style=&quot;color: #2b91af;&quot;&gt;EventArgs&lt;/span&gt;) &lt;span style=&quot;color: blue;&quot;&gt;Handles&lt;/span&gt; bntConnect_to_serial.Click&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Try&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;            s1 = &lt;span style=&quot;color: blue;&quot;&gt;New&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: #2b91af;&quot;&gt;SerialPort&lt;/span&gt;(&lt;span style=&quot;color: blue;&quot;&gt;My&lt;/span&gt;.Settings.ComPort, &lt;span style=&quot;color: blue;&quot;&gt;My&lt;/span&gt;.Settings.BaudRate)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;            s1.Open()&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;            myThread = &lt;span style=&quot;color: blue;&quot;&gt;New&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: #2b91af;&quot;&gt;Thread&lt;/span&gt;(&lt;span style=&quot;color: blue;&quot;&gt;AddressOf&lt;/span&gt; read_serial_port)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;            myThread.Start()&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Catch&lt;/span&gt; ex &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: #2b91af;&quot;&gt;Exception&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;            MsgBox(ex.ToString)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Try&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;br /&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Private&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt; read_serial_port()&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: green;&quot;&gt;&#39;open the port, read the stream, send the stream to the thread&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Try&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;While&lt;/span&gt; s1.IsOpen&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Dim&lt;/span&gt; serialString &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;String&lt;/span&gt; = s1.ReadLine&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;                processReadings(serialString)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;While&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Catch&lt;/span&gt; ex &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: #2b91af;&quot;&gt;Exception&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;            MsgBox(ex.ToString)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Try&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Delegate&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: #2b91af;&quot;&gt;CallBack&lt;/span&gt;(&lt;span style=&quot;color: blue;&quot;&gt;ByVal&lt;/span&gt; updateText &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;String&lt;/span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Dim&lt;/span&gt; messageFromSerial &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;String&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Private&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt; processReadings(&lt;span style=&quot;color: blue;&quot;&gt;ByVal&lt;/span&gt; readingText &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;String&lt;/span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;If&lt;/span&gt; txtDATA_FROM_SERIAL.InvokeRequired &lt;span style=&quot;color: blue;&quot;&gt;Then&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Dim&lt;/span&gt; d &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;New&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: #2b91af;&quot;&gt;CallBack&lt;/span&gt;(&lt;span style=&quot;color: blue;&quot;&gt;AddressOf&lt;/span&gt; processReadings)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Me&lt;/span&gt;.Invoke(d, &lt;span style=&quot;color: blue;&quot;&gt;New&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Object&lt;/span&gt;() {readingText})&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Else&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;            messageFromSerial = readingText&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;            txtDATA_FROM_SERIAL.Text = messageFromSerial&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;If&lt;/span&gt; messageFromSerial = &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;GEAR1&quot;&lt;/span&gt; &amp;amp; vbCr &lt;span style=&quot;color: blue;&quot;&gt;Then&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;                picLandingGear.BackColor = &lt;span style=&quot;color: #2b91af;&quot;&gt;Color&lt;/span&gt;.Green&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;                lblLandGear.Text = &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;DOWN&quot;&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;ElseIf&lt;/span&gt; messageFromSerial = &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;GEAR0&quot;&lt;/span&gt; &amp;amp; vbCr &lt;span style=&quot;color: blue;&quot;&gt;Then&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;                picLandingGear.BackColor = &lt;span style=&quot;color: #2b91af;&quot;&gt;Color&lt;/span&gt;.Gray&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;                lblLandGear.Text = &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;UP&quot;&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;If&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;If&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;What this code does is to open the serial port and start a new thread&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;The thread will read the serial stream and send it for processing into the sub process &lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;processReadings&lt;b&gt;() &lt;/b&gt;&lt;/span&gt;that takes as arguments the last reading.  Because the new thread cannot interact directly with the main form we have to set a callback function, so as you noted the following code&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;If&lt;/span&gt; txtDATA_FROM_SERIAL.InvokeRequired &lt;span style=&quot;color: blue;&quot;&gt;Then&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Dim&lt;/span&gt; d &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;New&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: #2b91af;&quot;&gt;CallBack&lt;/span&gt;(&lt;span style=&quot;color: blue;&quot;&gt;AddressOf&lt;/span&gt; processReadings)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Me&lt;/span&gt;.Invoke(d, &lt;span style=&quot;color: blue;&quot;&gt;New&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Object&lt;/span&gt;() {readingText})&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;br /&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;We make sure that our thread can interact with the main form.  &lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;We then check if the Arduino sends the GEAR1 or GEAR0 that represent down and up.&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;Next thing to do is to talk about the API and how we will make it work.&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;We are going to use 2 documents found in the SDK the user guide as PDF and the FSUIPC4 Offsets Status PDF.&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;We are going to use our documents to learn how to write the API call.&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;In this tutorial we want to read and write a value to FSX.  The guide specifies this as an offset.&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;To get the gear status we use&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Dim&lt;/span&gt; gearstatus &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: #2b91af;&quot;&gt;Offset&lt;/span&gt;(&lt;span style=&quot;color: blue;&quot;&gt;Of&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Integer&lt;/span&gt;) = &lt;span style=&quot;color: blue;&quot;&gt;New&lt;/span&gt; FSUIPC.&lt;span style=&quot;color: #2b91af;&quot;&gt;Offset&lt;/span&gt;(&lt;span style=&quot;color: blue;&quot;&gt;Of&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Integer&lt;/span&gt;)(&amp;amp;HBE8)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;And because the offset in the API  guide is 0BE8 we replace the 0 with an H.&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;Now we have to set our program to read when it starts the value from FSX.   We will use the form load to call a small procedure (sub) &lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Dim&lt;/span&gt; landingGear &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Integer&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;   &lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Private&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt; getGearStatus()&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Try&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: #2b91af;&quot;&gt;FSUIPCConnection&lt;/span&gt;.Process()&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;            landingGear = gearstatus.Value&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Catch&lt;/span&gt; ex &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: #2b91af;&quot;&gt;Exception&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;            MsgBox(ex.ToString)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Try&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;You can see that I set a variable called landing Gear in the main class so our code can use it.&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;You can also see the exception handling try catch.  If we start our application without FSX running we will get the following exception&lt;/span&gt;&lt;br /&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/AVvXsEilDdI9frd6CRPjbkrl7WNgugHo_M-JfLFpb4Zds-49Da9_tmDQ_1wFkN9RSxj7L323ILWi-wDieMZmUwz1WKKRzVqey2Xi7cQEYKSrTElXhDuBt-zvcNaBxg4qGhuTrMgyBRI3_MquuOU/s1600/image012-798966.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilDdI9frd6CRPjbkrl7WNgugHo_M-JfLFpb4Zds-49Da9_tmDQ_1wFkN9RSxj7L323ILWi-wDieMZmUwz1WKKRzVqey2Xi7cQEYKSrTElXhDuBt-zvcNaBxg4qGhuTrMgyBRI3_MquuOU/s1600/image012-798966.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;br /&gt;   &lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;Now for the useful part of our code :)&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;From the offset guide we can see that &lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;Gear control: 0=Up, 16383=Down&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;So when offset gives 0 then the gear is up and 16383 is down.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;Let&#39;s make a new sub process to handle the change and send it to the API&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Private&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt; setLandingGear(&lt;span style=&quot;color: blue;&quot;&gt;ByVal&lt;/span&gt; p1 &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Integer&lt;/span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;If&lt;/span&gt; p1 &amp;lt;&amp;gt; landingGear &lt;span style=&quot;color: blue;&quot;&gt;Then&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;            gearstatus.Value = p1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: #2b91af;&quot;&gt;FSUIPCConnection&lt;/span&gt;.Process()&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;If&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;To use this code put the name of the sub with the number 0 or &lt;span style=&quot;font-size: 10pt;&quot;&gt;16383 the sub will check if the system already has it set or else will set the new value.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;Lastly we are going to create a control mechanism to close the serial port when we want.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;Just replace this piece of code&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Private&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt; bntConnect_to_serial_Click(&lt;span style=&quot;color: blue;&quot;&gt;ByVal&lt;/span&gt; sender &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; System.&lt;span style=&quot;color: #2b91af;&quot;&gt;Object&lt;/span&gt;, &lt;span style=&quot;color: blue;&quot;&gt;ByVal&lt;/span&gt; e &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; System.&lt;span style=&quot;color: #2b91af;&quot;&gt;EventArgs&lt;/span&gt;) &lt;span style=&quot;color: blue;&quot;&gt;Handles&lt;/span&gt; bntConnect_to_serial.Click&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Try&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;If&lt;/span&gt; myThread.IsAlive &lt;span style=&quot;color: blue;&quot;&gt;Then&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;                bntConnect_to_serial.Text = &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Read Serial port&quot;&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;                myThread.Abort()&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;If&lt;/span&gt; s1.IsOpen &lt;span style=&quot;color: blue;&quot;&gt;Then&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;                    s1.Close()&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;If&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;If&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;            s1 = &lt;span style=&quot;color: blue;&quot;&gt;New&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: #2b91af;&quot;&gt;SerialPort&lt;/span&gt;(&lt;span style=&quot;color: blue;&quot;&gt;My&lt;/span&gt;.Settings.ComPort, &lt;span style=&quot;color: blue;&quot;&gt;My&lt;/span&gt;.Settings.BaudRate)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;            s1.Open()&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;            myThread = &lt;span style=&quot;color: blue;&quot;&gt;New&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: #2b91af;&quot;&gt;Thread&lt;/span&gt;(&lt;span style=&quot;color: blue;&quot;&gt;AddressOf&lt;/span&gt; read_serial_port)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;            myThread.Start()&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;            bntConnect_to_serial.Text = &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;stop serial port&quot;&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Catch&lt;/span&gt; ex &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: #2b91af;&quot;&gt;Exception&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;            MsgBox(ex.ToString)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Try&lt;/span&gt;&lt;br /&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9pt;&quot;&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h2&gt;








&lt;span xmlns=&quot;&quot;&gt;Testing&lt;/span&gt;&lt;/h2&gt;
&lt;h2&gt;




&lt;span xmlns=&quot;&quot;&gt;You can get the full code by clicking &lt;a href=&quot;https://sites.google.com/site/cycomptechstavros/fileshare/FSXandArduino.zip?attredirects=0&amp;amp;d=1&quot;&gt;here&lt;/a&gt; &lt;/span&gt;&lt;/h2&gt;
&lt;span xmlns=&quot;&quot;&gt;Now let&#39;s test our application&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;Open FSX and load a simple flight making sure you are airborne, also make sure that your aircraft supports landing gear function :)&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;Get out of full screen and set the option in settings general &lt;b&gt;pause on task switch &lt;/b&gt;so FSX will not pause when you click away.&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;After you connect your Arduino to your pc and you lunch the application you should have a fully functional system.&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;The landing gear should go up and down.  If you have full realistic mode on FSX make sure you are 3000 feet and less altitude.&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;Hope it helps at some point; don&#39;t hesitate to contact me through the comments.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;








&lt;span xmlns=&quot;&quot;&gt;Tools&lt;/span&gt;&lt;/h2&gt;
&lt;span xmlns=&quot;&quot;&gt;Visual basic .net 2010&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;Arduino - 1.0 IDE&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;FSUIPC 4 API&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;Microsoft Word&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stavroskcy.blogspot.com/feeds/2165515440020891050/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stavroskcy.blogspot.com/2011/12/connecting-arduino-to-flight-simulator.html#comment-form' title='56 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/2165515440020891050'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/2165515440020891050'/><link rel='alternate' type='text/html' href='http://stavroskcy.blogspot.com/2011/12/connecting-arduino-to-flight-simulator.html' title='Connecting Arduino to Flight Simulator X'/><author><name>Stavros</name><uri>http://www.blogger.com/profile/12303826957689320614</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8rdpH5mvoXPcqm6_OcaP5U2Swg5fVt-xIXQ9bqpbdPEQVbAF26HnqVW2KP68ZZtUA3i1iYEVHimSXYwbq6o_qsWNUnHYeY-cuUQkMBzqYcIzkqvYDpTU0ugMb1UzHdg/s220/20210324_200822.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDGZMbrcS1yYBsUDK6tBe17VpKU8iRLzBlo6lUrVxT8C4u8wK2sKdxrkQ3Mznz-Ev8XFDeYRH5OFWP_qnE6xHPoTo1JIRF8ZrH_g_eRozQ3xaRhOazg09jUNhwJMM5CgvklGenQGwSNno/s72-c/image001-785643.jpg" height="72" width="72"/><thr:total>56</thr:total></entry><entry><id>tag:blogger.com,1999:blog-863548203051237540.post-9997560074055358</id><published>2011-12-26T01:27:00.001-08:00</published><updated>2011-12-26T01:28:32.415-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="files"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><category scheme="http://www.blogger.com/atom/ns#" term="sorting"/><title type='text'>Sorting files with php</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;This function will sort files in the directory passed as arguments by the last modified or created time&lt;/span&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span xmlns=&quot;&quot;&gt;function sortFilesByDate($dirname)&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;clearstatcache();&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;$files = array();&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;if ($handle = opendir($dirname)) &lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;while (false !== ($file = readdir($handle))) &lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;if ($file != &quot;.&quot; &amp;amp;&amp;amp; $file != &quot;..&quot;) &lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;$files[filemtime($dirname.&quot;/&quot;.$file)] = $file;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;closedir($handle);&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;}  &lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;// sort&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;ksort($files);&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;end($files);&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;$tot = count($files);&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;$i = 0;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;$EXITSTR = &quot;&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;while ($tot != $i)&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;$EXITSTR = $EXITSTR . current($files); &lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;prev($files);&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;$i ++;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;$EXITSTR = $EXITSTR . &quot;&amp;lt;br/&amp;gt;&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;br /&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;return $EXITSTR;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;}&lt;/span&gt;&lt;/blockquote&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stavroskcy.blogspot.com/feeds/9997560074055358/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stavroskcy.blogspot.com/2011/12/sorting-files-with-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/9997560074055358'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/9997560074055358'/><link rel='alternate' type='text/html' href='http://stavroskcy.blogspot.com/2011/12/sorting-files-with-php.html' title='Sorting files with php'/><author><name>Stavros</name><uri>http://www.blogger.com/profile/12303826957689320614</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8rdpH5mvoXPcqm6_OcaP5U2Swg5fVt-xIXQ9bqpbdPEQVbAF26HnqVW2KP68ZZtUA3i1iYEVHimSXYwbq6o_qsWNUnHYeY-cuUQkMBzqYcIzkqvYDpTU0ugMb1UzHdg/s220/20210324_200822.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-863548203051237540.post-8153125983352353677</id><published>2011-12-26T01:25:00.001-08:00</published><updated>2011-12-26T01:26:20.718-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="alert"/><category scheme="http://www.blogger.com/atom/ns#" term="mirosoft"/><category scheme="http://www.blogger.com/atom/ns#" term="MSN"/><category scheme="http://www.blogger.com/atom/ns#" term="net"/><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><category scheme="http://www.blogger.com/atom/ns#" term="Style"/><category scheme="http://www.blogger.com/atom/ns#" term="system"/><category scheme="http://www.blogger.com/atom/ns#" term="vb"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><title type='text'>MSN Style for user attention</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;What if your application is minimized and you want user attention&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;You can always do it with a message box.&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;But there is the msn style&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;That the icon in the taskbar &quot;blinks&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;How to do it??&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;&lt;b&gt;Declaration&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;   &lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;b&gt;Imports System.Runtime.InteropServices&lt;/b&gt;&lt;br /&gt;   &lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; _&lt;/b&gt;&lt;br /&gt;   &lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;b&gt;Public Function FlashWindow(ByVal hwnd As Integer, ByVal bInvert As Integer) As Integer&lt;/b&gt;&lt;br /&gt;   &lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;End Function&lt;/b&gt;&lt;br /&gt;   &lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;When you want to call this function you just&amp;nbsp;FlashWindow&lt;b&gt;(Me.Handle, 1)&lt;/b&gt;&lt;br /&gt;   &lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;But when you call this function the windows and the taskbar will &quot;blink&quot; one time&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;To achieve &quot;msn style&quot; put the call method into a timer (VB) for 490 ms and enable the tick tock :)&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;And when the user interacts with your form (got Focus???Click??? Your call but i suggest got Focus)&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;Hope this is useful&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stavroskcy.blogspot.com/feeds/8153125983352353677/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stavroskcy.blogspot.com/2011/12/msn-style-for-user-attention.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/8153125983352353677'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/8153125983352353677'/><link rel='alternate' type='text/html' href='http://stavroskcy.blogspot.com/2011/12/msn-style-for-user-attention.html' title='MSN Style for user attention'/><author><name>Stavros</name><uri>http://www.blogger.com/profile/12303826957689320614</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8rdpH5mvoXPcqm6_OcaP5U2Swg5fVt-xIXQ9bqpbdPEQVbAF26HnqVW2KP68ZZtUA3i1iYEVHimSXYwbq6o_qsWNUnHYeY-cuUQkMBzqYcIzkqvYDpTU0ugMb1UzHdg/s220/20210324_200822.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-863548203051237540.post-7940175192035392874</id><published>2011-12-26T01:18:00.000-08:00</published><updated>2011-12-26T01:18:09.223-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="EISA"/><category scheme="http://www.blogger.com/atom/ns#" term="NC10"/><category scheme="http://www.blogger.com/atom/ns#" term="partition"/><category scheme="http://www.blogger.com/atom/ns#" term="recovery"/><category scheme="http://www.blogger.com/atom/ns#" term="repair"/><category scheme="http://www.blogger.com/atom/ns#" term="Samsung"/><title type='text'>Samsung NC10 recovery</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
lets say that you bought your nc10 and you install linux and you remove them later and you want to recover the data from Samsung recovery but you cant because F4 does not work anymore but you have access to the computer at least the command prompt.&lt;br /&gt;&lt;br /&gt;What you can do?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Take your laptop to Samsung service and &lt;b&gt;PAY!!!&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;OR&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;boot normaly to windows and open command prompt by Start -&amp;gt; start -&amp;gt; run Type CMD&lt;br /&gt;&lt;br /&gt;when the command prompt open type &lt;b&gt;diskpart &lt;/b&gt;let it start and type &lt;b&gt;rescan &lt;/b&gt;and let the program finish rescanning the disks etc.&lt;br /&gt;
When the program finish scanning your disks type&lt;b&gt; list disk&lt;/b&gt; you will see a list with your disks i suggest that if you have anything plugged to your computer remove it before and follow the procedure again and carefully&lt;br /&gt;&lt;br /&gt;ok my pc is giving me one disk DISK 0&lt;br /&gt;&lt;br /&gt;now type select disk 0 After type list partition it will give you 2 or 3 partition select the one that is type OEM by typing select partition 1(number depends)&lt;br /&gt;&lt;br /&gt;now type active.&lt;br /&gt;&lt;br /&gt;This is it now restart and the computer will boot to the recovery console!&lt;br /&gt;
&lt;strong&gt;Warning: if you do not want to make the oem disk bootable dont select you have to do the compleate recover so the recovery console will make your disk bootable again.&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
I try it and took me some while to repair the disk so&amp;nbsp;&lt;strong&gt;Be carefull&lt;br /&gt;I do not have any responsibility if you cannot fix your disk after!&lt;br /&gt;By doing this steps you agreed that what you do and what happen is up to you.&lt;/strong&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stavroskcy.blogspot.com/feeds/7940175192035392874/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stavroskcy.blogspot.com/2011/12/samsung-nc10-recovery.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/7940175192035392874'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/7940175192035392874'/><link rel='alternate' type='text/html' href='http://stavroskcy.blogspot.com/2011/12/samsung-nc10-recovery.html' title='Samsung NC10 recovery'/><author><name>Stavros</name><uri>http://www.blogger.com/profile/12303826957689320614</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8rdpH5mvoXPcqm6_OcaP5U2Swg5fVt-xIXQ9bqpbdPEQVbAF26HnqVW2KP68ZZtUA3i1iYEVHimSXYwbq6o_qsWNUnHYeY-cuUQkMBzqYcIzkqvYDpTU0ugMb1UzHdg/s220/20210324_200822.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-863548203051237540.post-7465789365828356762</id><published>2011-12-26T01:12:00.001-08:00</published><updated>2011-12-26T01:15:21.219-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="developer"/><category scheme="http://www.blogger.com/atom/ns#" term="mirosoft"/><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><category scheme="http://www.blogger.com/atom/ns#" term="tutorial"/><category scheme="http://www.blogger.com/atom/ns#" term="vb"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><title type='text'>Visual Basic .net enter key on textbox</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;If you ever wanted to capture the key Enter on a text box,&amp;nbsp;here is the code&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Private Sub txtsearch_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtsearch.KeyPress&lt;br /&gt;&amp;nbsp; &amp;nbsp;If Asc(e.KeyChar) = 13 Then&lt;br /&gt;&amp;nbsp; &amp;nbsp;&#39;Your code goes here...&lt;br /&gt;&amp;nbsp; &amp;nbsp;End If&lt;br /&gt;    End Sub&lt;/blockquote&gt;
The best method i found is to create a sub process and call it from both of your codes.  Both codes i mean the button that you press the Enter key and the button that you have to handle the user input&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stavroskcy.blogspot.com/feeds/7465789365828356762/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stavroskcy.blogspot.com/2011/12/vb-net-enter-key-on-textbox.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/7465789365828356762'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/7465789365828356762'/><link rel='alternate' type='text/html' href='http://stavroskcy.blogspot.com/2011/12/vb-net-enter-key-on-textbox.html' title='Visual Basic .net enter key on textbox'/><author><name>Stavros</name><uri>http://www.blogger.com/profile/12303826957689320614</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8rdpH5mvoXPcqm6_OcaP5U2Swg5fVt-xIXQ9bqpbdPEQVbAF26HnqVW2KP68ZZtUA3i1iYEVHimSXYwbq6o_qsWNUnHYeY-cuUQkMBzqYcIzkqvYDpTU0ugMb1UzHdg/s220/20210324_200822.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-863548203051237540.post-1449051385084744430</id><published>2010-03-16T13:59:00.000-07:00</published><updated>2011-12-26T01:36:32.074-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="coffee"/><category scheme="http://www.blogger.com/atom/ns#" term="costa"/><title type='text'>Costa coffee - gift card</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;mobile-photo&quot;&gt;
&lt;/div&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/AVvXsEjf8XDNa0j9eroGJuS4DjFSYKYb7EFymLGSkBrgR7ZGc0UulAna13rC3I4JK0kDPa1p-W6vk6yJLsMXRQ0nwCKcOzJOOi6Dh-bbU0JFN_Ag5vTlAFkCWEqjoSp_QfDlRNs-7bOno4x3hlj9/s1600-h/=%3Futf-8%3FB%3FUDE2MDMxMF8xOC41MC5qcGc=%3F=-725678&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5449308161980211730&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjf8XDNa0j9eroGJuS4DjFSYKYb7EFymLGSkBrgR7ZGc0UulAna13rC3I4JK0kDPa1p-W6vk6yJLsMXRQ0nwCKcOzJOOi6Dh-bbU0JFN_Ag5vTlAFkCWEqjoSp_QfDlRNs-7bOno4x3hlj9/s320/=%3Futf-8%3FB%3FUDE2MDMxMF8xOC41MC5qcGc=%3F=-725678&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
The new offer from Costa coffee is fantastic.&lt;br /&gt;
The new offer is about giving you points with each transaction for example 40 points worth 40 pence. From my personal experience its worth because it rewards people like me that visit Costa very often.&lt;br /&gt;
Starbucks they did the same but they give you discounts etc, i dont like discounts, rewards yes! &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stavroskcy.blogspot.com/feeds/1449051385084744430/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stavroskcy.blogspot.com/2010/03/costa-coffee-gift-card.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/1449051385084744430'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/1449051385084744430'/><link rel='alternate' type='text/html' href='http://stavroskcy.blogspot.com/2010/03/costa-coffee-gift-card.html' title='Costa coffee - gift card'/><author><name>Stavros</name><uri>http://www.blogger.com/profile/12303826957689320614</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8rdpH5mvoXPcqm6_OcaP5U2Swg5fVt-xIXQ9bqpbdPEQVbAF26HnqVW2KP68ZZtUA3i1iYEVHimSXYwbq6o_qsWNUnHYeY-cuUQkMBzqYcIzkqvYDpTU0ugMb1UzHdg/s220/20210324_200822.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjf8XDNa0j9eroGJuS4DjFSYKYb7EFymLGSkBrgR7ZGc0UulAna13rC3I4JK0kDPa1p-W6vk6yJLsMXRQ0nwCKcOzJOOi6Dh-bbU0JFN_Ag5vTlAFkCWEqjoSp_QfDlRNs-7bOno4x3hlj9/s72-c/=%3Futf-8%3FB%3FUDE2MDMxMF8xOC41MC5qcGc=%3F=-725678" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-863548203051237540.post-6110322788380761033</id><published>2009-11-17T20:17:00.000-08:00</published><updated>2011-12-26T01:37:28.698-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="developer"/><category scheme="http://www.blogger.com/atom/ns#" term="mirosoft"/><category scheme="http://www.blogger.com/atom/ns#" term="net"/><category scheme="http://www.blogger.com/atom/ns#" term="vb"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><title type='text'>Cyprus Internet Radio</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Recently i found that if you want to hear your internet radio on the web consumes too much resources.&lt;br /&gt;
What i did?&lt;br /&gt;
I create my own application that has internet radio stations, the program was build in VB.Net (i know why not C++? &lt;b&gt;A: &lt;/b&gt;Faster)&lt;br /&gt;
Everyday i google for more internet stations and soon i will have them all integrated in my program.&lt;br /&gt;
For the momment i have only Cyprus and Greek channels&lt;br /&gt;
the program includes windows media player and msn plug in&lt;br /&gt;
windows media player for playing the music and msn plug in to show in what i hear a message&lt;br /&gt;
here is the link&lt;br /&gt;
&lt;a href=&quot;http://sites.google.com/site/cycomptech/projects/internetRadio.rar?attredirects=0&amp;amp;d=1&quot;&gt;download&lt;/a&gt;&lt;br /&gt;
IT INCLUDE UPDATE FOR THE ERROR THAT CAME UP&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stavroskcy.blogspot.com/feeds/6110322788380761033/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stavroskcy.blogspot.com/2009/11/cyprus-internet-radio.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/6110322788380761033'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/6110322788380761033'/><link rel='alternate' type='text/html' href='http://stavroskcy.blogspot.com/2009/11/cyprus-internet-radio.html' title='Cyprus Internet Radio'/><author><name>Stavros</name><uri>http://www.blogger.com/profile/12303826957689320614</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8rdpH5mvoXPcqm6_OcaP5U2Swg5fVt-xIXQ9bqpbdPEQVbAF26HnqVW2KP68ZZtUA3i1iYEVHimSXYwbq6o_qsWNUnHYeY-cuUQkMBzqYcIzkqvYDpTU0ugMb1UzHdg/s220/20210324_200822.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-863548203051237540.post-8670610782592767627</id><published>2009-10-27T00:17:00.000-07:00</published><updated>2011-12-26T01:37:49.659-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="command"/><category scheme="http://www.blogger.com/atom/ns#" term="mirosoft"/><category scheme="http://www.blogger.com/atom/ns#" term="system"/><category scheme="http://www.blogger.com/atom/ns#" term="tutorial"/><category scheme="http://www.blogger.com/atom/ns#" term="up time"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><title type='text'>How to get system uptime in windows XP</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Windows XP Professional just type systeminfo in a cmd window&lt;br /&gt;
Windows XP Home you have to download this program from &lt;a href=&quot;http://sites.google.com/site/cycomptech/projects/systeminfo.rar?attredirects=0&amp;amp;d=1&quot;&gt;here&lt;/a&gt; and copy it to windows /system 32 i think&lt;br /&gt;
&lt;br /&gt;
remember this program is a command line program and will vanish if you dont open it from a new cmd window&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stavroskcy.blogspot.com/feeds/8670610782592767627/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stavroskcy.blogspot.com/2009/10/how-to-get-system-uptime-in-windows-xp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/8670610782592767627'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/8670610782592767627'/><link rel='alternate' type='text/html' href='http://stavroskcy.blogspot.com/2009/10/how-to-get-system-uptime-in-windows-xp.html' title='How to get system uptime in windows XP'/><author><name>Stavros</name><uri>http://www.blogger.com/profile/12303826957689320614</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8rdpH5mvoXPcqm6_OcaP5U2Swg5fVt-xIXQ9bqpbdPEQVbAF26HnqVW2KP68ZZtUA3i1iYEVHimSXYwbq6o_qsWNUnHYeY-cuUQkMBzqYcIzkqvYDpTU0ugMb1UzHdg/s220/20210324_200822.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-863548203051237540.post-5210323307907425876</id><published>2009-10-22T05:40:00.000-07:00</published><updated>2011-12-26T01:37:59.240-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="2007"/><category scheme="http://www.blogger.com/atom/ns#" term="developer"/><category scheme="http://www.blogger.com/atom/ns#" term="mirosoft"/><category scheme="http://www.blogger.com/atom/ns#" term="office"/><category scheme="http://www.blogger.com/atom/ns#" term="tab"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><title type='text'>how to show developer tab to the ribbon office 2007</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;text-align: left;&quot;&gt;
In the office 2007 if you want to show the developer bar in the ribbon you have to do:&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&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/AVvXsEjm7QJl5Tm338YltFa-suiu5p1l3Secdfai0yvze0gRwmRJFhZwRAANKu0Nnf2GUyR2mlFjcv8lvJq08KUjIrcfsEMZMLA36Q2ypoqdWaq8K78jBAIJSeJ0gn8Zt6Jc2LC9QdJs_5tAukYT/s1600-h/officebutton.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjm7QJl5Tm338YltFa-suiu5p1l3Secdfai0yvze0gRwmRJFhZwRAANKu0Nnf2GUyR2mlFjcv8lvJq08KUjIrcfsEMZMLA36Q2ypoqdWaq8K78jBAIJSeJ0gn8Zt6Jc2LC9QdJs_5tAukYT/s320/officebutton.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
click on the office button&amp;nbsp; &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;
after go to the word, excel options&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
and select show developer tab in the ribbon&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&gt;</content><link rel='replies' type='application/atom+xml' href='http://stavroskcy.blogspot.com/feeds/5210323307907425876/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stavroskcy.blogspot.com/2009/10/how-to-show-developer-tab-to-ribbon.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/5210323307907425876'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/5210323307907425876'/><link rel='alternate' type='text/html' href='http://stavroskcy.blogspot.com/2009/10/how-to-show-developer-tab-to-ribbon.html' title='how to show developer tab to the ribbon office 2007'/><author><name>Stavros</name><uri>http://www.blogger.com/profile/12303826957689320614</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8rdpH5mvoXPcqm6_OcaP5U2Swg5fVt-xIXQ9bqpbdPEQVbAF26HnqVW2KP68ZZtUA3i1iYEVHimSXYwbq6o_qsWNUnHYeY-cuUQkMBzqYcIzkqvYDpTU0ugMb1UzHdg/s220/20210324_200822.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjm7QJl5Tm338YltFa-suiu5p1l3Secdfai0yvze0gRwmRJFhZwRAANKu0Nnf2GUyR2mlFjcv8lvJq08KUjIrcfsEMZMLA36Q2ypoqdWaq8K78jBAIJSeJ0gn8Zt6Jc2LC9QdJs_5tAukYT/s72-c/officebutton.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-863548203051237540.post-7450053866919323629</id><published>2009-10-04T07:40:00.000-07:00</published><updated>2011-12-26T01:38:31.905-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ajax"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><category scheme="http://www.blogger.com/atom/ns#" term="tutorial"/><title type='text'>jQuery Sliding / Toggle Effect on Divs</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;br /&gt;
&lt;object height=&quot;350&quot; style=&quot;clear: left; float: left;&quot; width=&quot;425&quot;&gt;&lt;param value=&#39;http://youtube.com/v/1xbNj03og1c&#39; name=&#39;movie&#39;/&gt;
&lt;embed height=&#39;350&#39; width=&#39;425&#39; type=&#39;application/x-shockwave-flash&#39; src=&#39;http://youtube.com/v/1xbNj03og1c&#39;/&gt;&lt;/object&gt;&lt;br /&gt;
Watch this video to learn how you can make your website slide content on the press of link just like facebook &lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stavroskcy.blogspot.com/feeds/7450053866919323629/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stavroskcy.blogspot.com/2009/10/jquery-sliding-toggle-effect-on-divs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/7450053866919323629'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/7450053866919323629'/><link rel='alternate' type='text/html' href='http://stavroskcy.blogspot.com/2009/10/jquery-sliding-toggle-effect-on-divs.html' title='jQuery Sliding / Toggle Effect on Divs'/><author><name>Stavros</name><uri>http://www.blogger.com/profile/12303826957689320614</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8rdpH5mvoXPcqm6_OcaP5U2Swg5fVt-xIXQ9bqpbdPEQVbAF26HnqVW2KP68ZZtUA3i1iYEVHimSXYwbq6o_qsWNUnHYeY-cuUQkMBzqYcIzkqvYDpTU0ugMb1UzHdg/s220/20210324_200822.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-863548203051237540.post-6977613385105221883</id><published>2009-10-04T07:38:00.000-07:00</published><updated>2011-12-26T01:39:50.224-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ajax"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><category scheme="http://www.blogger.com/atom/ns#" term="tutorial"/><title type='text'>How to do a Javascript AJAX loader with jQUERY</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;object height=&quot;350&quot; width=&quot;425&quot;&gt;&lt;param value=&#39;http://youtube.com/v/0aOR0dBRUnA&#39; name=&#39;movie&#39;/&gt;
&lt;embed height=&#39;350&#39; width=&#39;425&#39; type=&#39;application/x-shockwave-flash&#39; src=&#39;http://youtube.com/v/0aOR0dBRUnA&#39;/&gt;&lt;/object&gt;&lt;br /&gt;
Very nice video on how to use the jquery in your website&lt;br /&gt;saves you time and money&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stavroskcy.blogspot.com/feeds/6977613385105221883/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stavroskcy.blogspot.com/2009/10/how-to-do-javascript-ajax-loader-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/6977613385105221883'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/6977613385105221883'/><link rel='alternate' type='text/html' href='http://stavroskcy.blogspot.com/2009/10/how-to-do-javascript-ajax-loader-with.html' title='How to do a Javascript AJAX loader with jQUERY'/><author><name>Stavros</name><uri>http://www.blogger.com/profile/12303826957689320614</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8rdpH5mvoXPcqm6_OcaP5U2Swg5fVt-xIXQ9bqpbdPEQVbAF26HnqVW2KP68ZZtUA3i1iYEVHimSXYwbq6o_qsWNUnHYeY-cuUQkMBzqYcIzkqvYDpTU0ugMb1UzHdg/s220/20210324_200822.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-863548203051237540.post-4591752904292292483</id><published>2009-08-31T18:47:00.000-07:00</published><updated>2011-12-26T01:39:55.955-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="firefox"/><category scheme="http://www.blogger.com/atom/ns#" term="free"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><category scheme="http://www.blogger.com/atom/ns#" term="tutorial"/><title type='text'>Javascript code for the status bar</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
In the status bar of the browser you can set a text the time or what ever its up to you.&lt;br /&gt;
&lt;b&gt;If you complete this `tutorial` and you still dont see the status bar message&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;go to &lt;a href=&quot;http://stavroskou.blogspot.com/2009/08/enable-javascript-to-change-status-bar.html&quot;&gt;enable-javascript-to-change-status-bar&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;how to use this feature &lt;/b&gt;&lt;br /&gt;
Create a new html file create a new script area (javascript) and create a function&lt;br /&gt;
i will name my function startScript()&lt;br /&gt;
the code for changing the status message is &lt;b&gt;window.status = &lt;i&gt;text&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #eeeeee; border-bottom: #999999 1px dashed; border-left: #999999 1px dashed; border-right: #999999 1px dashed; border-top: #999999 1px dashed; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; width: 100%;&quot;&gt;&lt;code&gt;&amp;lt;html&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;
      http://cycomptech.blogspot.com/
    &amp;lt;/title&amp;gt;
    &amp;lt;script type=&quot;text/javascript&quot;&amp;gt;
      function startScript()
      {
        var stavros = &quot;This is a test!&quot;;
        window.status = stavros;
      }
    &amp;lt;/script&amp;gt;
  &amp;lt;/head&amp;gt;
  &amp;lt;body onload=&quot;startScript();&quot;&amp;gt;
    &amp;lt;center&amp;gt;
      This page demonstrate the status bar of the browser&amp;lt;br&amp;gt;
      using javascript&amp;lt;br&amp;gt;
      &amp;lt;a href=&quot;http://cycomptech.blogspot.com/&quot;&amp;gt;http://cycomptech.blogspot.com/&amp;lt;/a&amp;gt;
    &amp;lt;/center&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stavroskcy.blogspot.com/feeds/4591752904292292483/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stavroskcy.blogspot.com/2009/08/javascript-code-for-status-bar.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/4591752904292292483'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/863548203051237540/posts/default/4591752904292292483'/><link rel='alternate' type='text/html' href='http://stavroskcy.blogspot.com/2009/08/javascript-code-for-status-bar.html' title='Javascript code for the status bar'/><author><name>Stavros</name><uri>http://www.blogger.com/profile/12303826957689320614</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8rdpH5mvoXPcqm6_OcaP5U2Swg5fVt-xIXQ9bqpbdPEQVbAF26HnqVW2KP68ZZtUA3i1iYEVHimSXYwbq6o_qsWNUnHYeY-cuUQkMBzqYcIzkqvYDpTU0ugMb1UzHdg/s220/20210324_200822.jpg'/></author><thr:total>0</thr:total></entry></feed>