<?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: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-54869802565233788</id><updated>2011-12-20T20:05:09.482-08:00</updated><category term='ATM Machine'/><category term='serial'/><category term='SMS'/><category term='paralel port'/><category term='Picture'/><category term='socket'/><category term='DB'/><category term='MP3'/><category term='webcam'/><category term='Misc'/><category term='network'/><category term='vb6.0'/><category term='.NET'/><title type='text'>Side Code</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sidecode.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://sidecode.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>ewin</name><uri>http://www.blogger.com/profile/05931947000278519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://1.bp.blogspot.com/_MiEUaRgwgVU/SXt85JrzqQI/AAAAAAAAALM/Pvb2FpRNpAY/S220/ewinlogo-colorsketch_out.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>27</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-54869802565233788.post-6062720686250252850</id><published>2010-08-30T07:53:00.001-07:00</published><updated>2010-08-30T07:53:10.632-07:00</updated><title type='text'>Randomize Number</title><content type='html'>&lt;p&gt;The application is very simple when we create with .Net 2008, because on .net there a class for randomizer a number. Pseudo-random numbers are chosen with equal probability from a finite set of numbers. The chosen numbers are not completely random because a definite mathematical algorithm is used to select them, but they are sufficiently random for practical purposes. The current implementation of the Random class is based on Donald E. Knuth’s subtractive random number generator algorithm.&lt;/p&gt;  &lt;p&gt;The random number generation starts from a seed value. If the same seed is used repeatedly, the same series of numbers is generated. One way to produce different sequences is to make the seed value time-dependent, thereby producing a different series with each new instance of Random. By default, the parameterless constructor of the Random class uses the system clock to generate its seed value, while its parameterized constructor can take an &lt;a href="ms-help://MS.MSDNQTR.v90.en/fxref_mscorlib/html/ed425922-7a7b-5232-1fbc-5e4ac9680de6.htm"&gt;Int32&lt;/a&gt; value based on the number of ticks in the current time.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_MiEUaRgwgVU/THvFvukpbJI/AAAAAAAAAWU/o5i1D0-2UEA/s1600-h/password%20generator%5B2%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="password generator" border="0" alt="password generator" src="http://lh5.ggpht.com/_MiEUaRgwgVU/THvF04i6pSI/AAAAAAAAAWY/rgNGZzhW-ME/password%20generator_thumb.png?imgmax=800" width="244" height="235" /&gt;&lt;/a&gt;The completeys source code you can download via this &lt;a href="http://reliez.net/2010/08/15/password-generator/" target="_blank"&gt;http://reliez.net/2010/08/15/password-generator/&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/54869802565233788-6062720686250252850?l=sidecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sidecode.blogspot.com/feeds/6062720686250252850/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=54869802565233788&amp;postID=6062720686250252850' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/6062720686250252850'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/6062720686250252850'/><link rel='alternate' type='text/html' href='http://sidecode.blogspot.com/2010/08/randomize-number.html' title='Randomize Number'/><author><name>ewin</name><uri>http://www.blogger.com/profile/05931947000278519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://1.bp.blogspot.com/_MiEUaRgwgVU/SXt85JrzqQI/AAAAAAAAALM/Pvb2FpRNpAY/S220/ewinlogo-colorsketch_out.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/_MiEUaRgwgVU/THvF04i6pSI/AAAAAAAAAWY/rgNGZzhW-ME/s72-c/password%20generator_thumb.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-54869802565233788.post-5274684740247494517</id><published>2010-08-07T00:30:00.001-07:00</published><updated>2010-08-07T00:30:42.481-07:00</updated><title type='text'>Sending Fax from your application</title><content type='html'>&lt;p&gt;On windows Server 2003 have capabilities act as fax server. so many client can be sending the document with fax service via this server. but on windows XP professional also have fax service like on server 2003 but not richeest functional like on server 2003. on windows XP You must active this service via add and remove windows component on control panel.   &lt;br /&gt;Like on microsoft office , The app have feature for sending document via email or fax service. on this post we can add that capabilities into .net project.&amp;#160; The project use windows xp proffesional for replace windows 2003 server.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_MiEUaRgwgVU/TF0LhR62M4I/AAAAAAAAAWE/o4z38Hn1VwQ/s1600-h/faxing-300x266%5B2%5D.jpg"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="faxing-300x266" border="0" alt="faxing-300x266" src="http://lh4.ggpht.com/_MiEUaRgwgVU/TF0Ll6sXgKI/AAAAAAAAAWI/nEqGaEZrxw8/faxing-300x266_thumb.jpg?imgmax=800" width="244" height="217" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Before started this project we must make sure fax service installed on Computer. because the project need component from that service. on the work sheet visual studio 2008 add the reference FAXCOMEXlib.dll into project. The source code like below&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;     &lt;p&gt;Public Class Form1&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;&lt;/li&gt;    &lt;li&gt;     &lt;p&gt;Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;With cd&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;.ShowDialog()&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;TextBox5.Text = cd.FileName&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;End With&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;End Sub&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;&lt;/li&gt;    &lt;li&gt;     &lt;p&gt;Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;TextBox1.Text = My.Computer.Name.ToString&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;&lt;/li&gt;    &lt;li&gt;     &lt;p&gt;End Sub&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;&lt;/li&gt;    &lt;li&gt;     &lt;p&gt;Private Sub sending()&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;&lt;/li&gt;    &lt;li&gt;     &lt;p&gt;Dim objFaxDocument As New FAXCOMEXLib.FaxDocument&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;Dim objFaxServer As New FAXCOMEXLib.FaxServer&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;Dim objSender As FAXCOMEXLib.FaxSender&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;&lt;/li&gt;    &lt;li&gt;     &lt;p&gt;Dim jobid As Int32&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;&lt;/li&gt;    &lt;li&gt;     &lt;p&gt;If TextBox1.Text = &amp;quot;&amp;quot; Or TextBox2.Text = &amp;quot;&amp;quot; Then&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;MsgBox(&amp;quot;Please input server name and destination number !&amp;quot;, MsgBoxStyle.Critical, &amp;quot;Faxing&amp;quot;)&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;Exit Sub&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;End If&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;&lt;/li&gt;    &lt;li&gt;     &lt;p&gt;Try&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;objFaxServer.Connect(&amp;quot;&amp;quot;)&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;objFaxDocument.Body = TextBox5.Text&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;objFaxDocument.DocumentName = &amp;quot;Reliez &amp;quot;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;objFaxDocument.Priority = FAXCOMEXLib.FAX_PRIORITY_TYPE_ENUM.fptHIGH&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;objFaxDocument.Recipients.Add(TextBox2.Text, TextBox3.Text)&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;objFaxDocument.Sender.Company = &amp;quot;Reliez &amp;quot;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;objFaxDocument.Sender.StreetAddress = &amp;quot;Http:&amp;quot; &amp;amp; &amp;quot;//&amp;quot; &amp;amp; &amp;quot;reliez.net&amp;quot;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;objFaxDocument.Sender.SaveDefaultSender()&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;objFaxDocument.ConnectedSubmit(objFaxServer)&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;System.Threading.Thread.Sleep(5000)&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;objFaxServer.Disconnect()&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;Me.Close()&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;&lt;/li&gt;    &lt;li&gt;     &lt;p&gt;Catch ex As Exception&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;MsgBox(ex.ToString)&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;'MsgBox(&amp;quot;Fail to Send Document !&amp;quot;, MsgBoxStyle.Critical, &amp;quot;Fax&amp;quot;)&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;End Try&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;&lt;/li&gt;    &lt;li&gt;     &lt;p&gt;End Sub&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;&lt;/li&gt;    &lt;li&gt;     &lt;p&gt;End Class&lt;/p&gt;   &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;Download complete source code click this &lt;a href="http://cid-79b62ee1af600367.office.live.com/self.aspx/.Public/Fax%20with%20net%202008.rar"&gt;link&lt;/a&gt;&lt;/p&gt;  &lt;div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:7389d6ef-8626-47f0-b01f-b9d574c2a4a7" class="wlWriterEditableSmartContent"&gt;Tag Technorati: {grup-tag}&lt;a href="http://technorati.com/tags/Fax" rel="tag"&gt;Fax&lt;/a&gt;,&lt;a href="http://technorati.com/tags/Vb.Net" rel="tag"&gt;Vb.Net&lt;/a&gt;&lt;/div&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/54869802565233788-5274684740247494517?l=sidecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sidecode.blogspot.com/feeds/5274684740247494517/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=54869802565233788&amp;postID=5274684740247494517' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/5274684740247494517'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/5274684740247494517'/><link rel='alternate' type='text/html' href='http://sidecode.blogspot.com/2010/08/sending-fax-from-your-application.html' title='Sending Fax from your application'/><author><name>ewin</name><uri>http://www.blogger.com/profile/05931947000278519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://1.bp.blogspot.com/_MiEUaRgwgVU/SXt85JrzqQI/AAAAAAAAALM/Pvb2FpRNpAY/S220/ewinlogo-colorsketch_out.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/_MiEUaRgwgVU/TF0Ll6sXgKI/AAAAAAAAAWI/nEqGaEZrxw8/s72-c/faxing-300x266_thumb.jpg?imgmax=800' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-54869802565233788.post-2100047940150362742</id><published>2010-02-28T03:05:00.000-08:00</published><updated>2010-02-28T03:31:48.289-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='Misc'/><title type='text'>Send Email from VB.NET 2008</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_MiEUaRgwgVU/S4pP87oAzUI/AAAAAAAAAVM/0NJKd12oyus/s1600-h/send+email.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 226px; height: 320px;" src="http://4.bp.blogspot.com/_MiEUaRgwgVU/S4pP87oAzUI/AAAAAAAAAVM/0NJKd12oyus/s320/send+email.JPG" alt="" id="BLOGGER_PHOTO_ID_5443251007846927682" border="0" /&gt;&lt;/a&gt;Sometimes when we open a application there a a simple menu for sending feedback about the application. actually ist to simple to add capabilty mail sending on application , especialy when we write the app on VB.net.  i have implements this capabilty into my lastest project  on &lt;a href="http://reliez.net/2010/02/25/document-management-solution/"&gt;reliez document management System&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://reliez.net/2010/02/25/document-management-solution/"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 200px;" src="http://2.bp.blogspot.com/_MiEUaRgwgVU/S4pT8U4UnbI/AAAAAAAAAVU/HOw6YChAc4Q/s320/mailer.jpg" alt="" id="BLOGGER_PHOTO_ID_5443255395492863410" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;the document which store on database can be share with other via mail or faxing. on this post itry to share how to send mail with vb.net. the code for sending mail like below :&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Dim mail As New MailMessage()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;        mail.From = New MailAddress(TextBox2.Text)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;        mail.To.Add(TextBox3.Text)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;        mail.Subject = TextBox4.Text&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;        mail.Body = TextBox6.Text&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;        mail.Priority = MailPriority.High&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;        Dim att As New System.Net.Mail.Attachment(TextBox5.Text.Trim())&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;        mail.Attachments.Add(att)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;        Dim smtp As New SmtpClient(TextBox1.Text)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;        If CheckBox1.Checked = True Then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;            smtp.Credentials = New System.Net.NetworkCredential(TextBox7.Text, TextBox8.Text)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;        End If&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;        Me.Cursor = Cursors.AppStarting&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;        Try&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;            smtp.Send(mail)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;            MsgBox("Message successfull send to user.", MsgBoxStyle.Information, "Send Email")&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;            Me.Cursor = Cursors.Arrow&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;            mail.Dispose()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;            GC.Collect()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;            Me.Close()&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;        Catch ex As Exception&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;            mail.Dispose()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;            GC.Collect()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;            Me.Cursor = Cursors.Arrow&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;            MsgBox(ex.Message, MsgBoxStyle.Critical, "Mail Error")&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;        End Try&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;for sample code you can download via this &lt;a href="http://www.ziddu.com/download/8770742/MailerWithVB.NET2008.rar.html"&gt;link&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/54869802565233788-2100047940150362742?l=sidecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sidecode.blogspot.com/feeds/2100047940150362742/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=54869802565233788&amp;postID=2100047940150362742' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/2100047940150362742'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/2100047940150362742'/><link rel='alternate' type='text/html' href='http://sidecode.blogspot.com/2010/02/send-email-from-vbnet-2008.html' title='Send Email from VB.NET 2008'/><author><name>ewin</name><uri>http://www.blogger.com/profile/05931947000278519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://1.bp.blogspot.com/_MiEUaRgwgVU/SXt85JrzqQI/AAAAAAAAALM/Pvb2FpRNpAY/S220/ewinlogo-colorsketch_out.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_MiEUaRgwgVU/S4pP87oAzUI/AAAAAAAAAVM/0NJKd12oyus/s72-c/send+email.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-54869802565233788.post-6576066382929805692</id><published>2010-02-13T02:43:00.000-08:00</published><updated>2010-02-13T03:04:40.044-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vb6.0'/><category scheme='http://www.blogger.com/atom/ns#' term='Misc'/><title type='text'>Show MS Office on Form VB.60</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_MiEUaRgwgVU/S3aHMW-jZdI/AAAAAAAAAU8/YEoQs7OEM0M/s1600-h/DSOFRAMER.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 298px;" src="http://1.bp.blogspot.com/_MiEUaRgwgVU/S3aHMW-jZdI/AAAAAAAAAU8/YEoQs7OEM0M/s320/DSOFRAMER.JPG" alt="" id="BLOGGER_PHOTO_ID_5437682246492579282" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;With DSO Framer Active-X from microsoft we can add, show or edit ms office document direct via form on Visual basic 6.0. sometimes when create a project , we need interact with the  from ms office like ms word or excel spreadsheet and show the data into form application for simplicity. at last project i use a browser for show data like ms word  . but after found DSO Framer we can edit or add ms document direct from vb 6.0 form.&lt;br /&gt;the active-x and sample project you can obtain via this &lt;a href="http://cid-79b62ee1af600367.skydrive.live.com/self.aspx/.Public/DSO%20FRAMER%20ON%20VB%206.rar"&gt;link &lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/54869802565233788-6576066382929805692?l=sidecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sidecode.blogspot.com/feeds/6576066382929805692/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=54869802565233788&amp;postID=6576066382929805692' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/6576066382929805692'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/6576066382929805692'/><link rel='alternate' type='text/html' href='http://sidecode.blogspot.com/2010/02/show-ms-office-on-form-vb60.html' title='Show MS Office on Form VB.60'/><author><name>ewin</name><uri>http://www.blogger.com/profile/05931947000278519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://1.bp.blogspot.com/_MiEUaRgwgVU/SXt85JrzqQI/AAAAAAAAALM/Pvb2FpRNpAY/S220/ewinlogo-colorsketch_out.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_MiEUaRgwgVU/S3aHMW-jZdI/AAAAAAAAAU8/YEoQs7OEM0M/s72-c/DSOFRAMER.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-54869802565233788.post-9214626990229488065</id><published>2010-01-17T06:48:00.000-08:00</published><updated>2010-01-24T04:16:22.606-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Picture'/><category scheme='http://www.blogger.com/atom/ns#' term='.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='Misc'/><title type='text'>Scan Image with WIA (windows image Acquisition) on VB.NET 2008 and VB 6.0</title><content type='html'>&lt;a href="http://3.bp.blogspot.com/_MiEUaRgwgVU/S1Mjjl7rsvI/AAAAAAAAAU0/6aKbHxNCedQ/s1600-h/scan+WIA.JPG"&gt;&lt;img style="TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 320px; DISPLAY: block; HEIGHT: 247px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5427721070296412914" border="0" alt="" src="http://3.bp.blogspot.com/_MiEUaRgwgVU/S1Mjjl7rsvI/AAAAAAAAAU0/6aKbHxNCedQ/s320/scan+WIA.JPG" /&gt;&lt;/a&gt;&lt;br /&gt;Wia or windows Image Acquisiton is Library from microsoft for acquiring digital image from imaging device such as Scanner, Web cam, Video Camcorder and Etc. the latest version of WIA is WIA ver 2.0. to get this SDK you direct download Via microsoft or via &lt;a href="http://reliez.net/2010/01/17/scan-and-capture-image-with-wia-on-net-2008/"&gt;Reliez.net.&lt;/a&gt;&lt;br /&gt;on this project i try scan image from USB scanner and load the picture box with image result from scanner.&lt;br /&gt;The project using microsoft visual studio 2008. before we started make code for wia, we must register wiaaut.dll from SDK with Regsvr32 wiaaut.dll. after that make reference on workspace with microsoft windows image acqusition library V.20.&lt;br /&gt;For more detail you can download the sample project via this link  &lt;a href="http://reliez.net/2010/01/17/scan-and-capture-image-with-wia-on-net-2008/"&gt;reliez.net&lt;br /&gt;&lt;/a&gt;&lt;p&gt;and for SDK with this &lt;a href="http://reliez.net/2010/01/17/scan-and-capture-image-with-wia-on-net-2008/"&gt;link, &lt;/a&gt;&lt;/p&gt;&lt;p&gt;Same Project but write with visual basic 6.0 you can visit this link : &lt;a href="http://reliez.net/2010/01/24/windows-image-acquisition-on-vb-6-0/"&gt;http://reliez.net/2010/01/24/windows-image-acquisition-on-vb-6-0/&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/54869802565233788-9214626990229488065?l=sidecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sidecode.blogspot.com/feeds/9214626990229488065/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=54869802565233788&amp;postID=9214626990229488065' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/9214626990229488065'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/9214626990229488065'/><link rel='alternate' type='text/html' href='http://sidecode.blogspot.com/2010/01/scan-image-with-wia-windows-image.html' title='Scan Image with WIA (windows image Acquisition) on VB.NET 2008 and VB 6.0'/><author><name>ewin</name><uri>http://www.blogger.com/profile/05931947000278519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://1.bp.blogspot.com/_MiEUaRgwgVU/SXt85JrzqQI/AAAAAAAAALM/Pvb2FpRNpAY/S220/ewinlogo-colorsketch_out.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_MiEUaRgwgVU/S1Mjjl7rsvI/AAAAAAAAAU0/6aKbHxNCedQ/s72-c/scan+WIA.JPG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-54869802565233788.post-2763514976212537042</id><published>2010-01-09T21:41:00.001-08:00</published><updated>2010-01-09T23:12:04.784-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DB'/><category scheme='http://www.blogger.com/atom/ns#' term='.NET'/><title type='text'>Connect Mysql with VB.Net 2008</title><content type='html'>&lt;p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_MiEUaRgwgVU/S0l55zWdwYI/AAAAAAAAAUk/_SXGD6xj48s/s1600-h/mysql.net.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 290px;" src="http://4.bp.blogspot.com/_MiEUaRgwgVU/S0l55zWdwYI/AAAAAAAAAUk/_SXGD6xj48s/s320/mysql.net.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5425001260088410498" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;On my Previous post we discussed Mysql and VB.60. now in this post we try to connected vb net 2008 with my sql server. same as like on VB 6.0, before we start coding for my sql we must installed mysql connecter for .net, you can download Mysql Connector for .net via &lt;a href="http://reliez.net/download/"&gt;reliez.net.&lt;/a&gt;&lt;/p&gt;&lt;p&gt;after installed the connector on project workspace, we must add reference to mysql.data.  on this project same as like previous post for accesing database with.net , i used a class for accesing and give command to database, but in this project the connection for accesing database with connection string for mysql. the syntax code for connection class like below :&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#3366ff;"&gt;Imports MySql.Data.MySqlClient&lt;br /&gt;&lt;br /&gt;Public Class mydb&lt;br /&gt;    Private mycon As New MySqlConnection("server=localhost;user id=root; database=cdcol; pooling=false;Connection Timeout=5")&lt;br /&gt;&lt;br /&gt; Private mytable As DataTable&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    Public Sub New()&lt;br /&gt;&lt;br /&gt;        mycon.Open()&lt;br /&gt;        mytable = New DataTable&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    End Sub&lt;br /&gt;&lt;br /&gt;    Public Function QueryDatabase(ByVal Query As String) As DataTable&lt;br /&gt;        Try&lt;br /&gt;            Dim objDataSet As New DataSet&lt;br /&gt;            Dim objDataTable As New DataTable&lt;br /&gt;&lt;br /&gt;            Dim objDataAdapter As New MySqlDataAdapter(Query, mycon)&lt;br /&gt;&lt;br /&gt;            objDataAdapter.Fill(objDataSet, "DefaultTable")&lt;br /&gt;            objDataTable = objDataSet.Tables("DefaultTable")&lt;br /&gt;&lt;br /&gt;            mycon.Close()&lt;br /&gt;&lt;br /&gt;            Return objDataTable&lt;br /&gt;&lt;br /&gt;        Catch ex As Exception&lt;br /&gt;            MessageBox.Show(ex.Message, "DB ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error)&lt;br /&gt;            Return mytable&lt;br /&gt;        End Try&lt;br /&gt;    End Function&lt;br /&gt;&lt;br /&gt;    Public Sub DatabaseCommand(ByVal CommandString As String)&lt;br /&gt;        Try&lt;br /&gt;            Dim objInsert As New MySqlCommand&lt;br /&gt;&lt;br /&gt;            objInsert.CommandText = CommandString&lt;br /&gt;            objInsert.Connection = mycon&lt;br /&gt;            objInsert.Connection.Open()&lt;br /&gt;            objInsert.ExecuteNonQuery()&lt;br /&gt;            mycon.Close()&lt;br /&gt;&lt;br /&gt;        Catch ex As Exception&lt;br /&gt;            MessageBox.Show(ex.Message, "DB ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error)&lt;br /&gt;        End Try&lt;br /&gt;    End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;End Class&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;for navigate data record from table you can see on sample project. you can download in &lt;a href="http://www.ziddu.com/download/8092289/MYSQLNET2008.rar.html"&gt;here&lt;/a&gt; . for database i use database cdcoll. this default database on my sql when you intall sql with XAMPP from http://nat32.com/xampp.&lt;a href="http://www.ziddu.com/download/8092289/MYSQLNET2008.rar.html"&gt;&lt;span style="color:#3366ff;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/54869802565233788-2763514976212537042?l=sidecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sidecode.blogspot.com/feeds/2763514976212537042/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=54869802565233788&amp;postID=2763514976212537042' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/2763514976212537042'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/2763514976212537042'/><link rel='alternate' type='text/html' href='http://sidecode.blogspot.com/2010/01/connect-mysql-with-vbnet-2008.html' title='Connect Mysql with VB.Net 2008'/><author><name>ewin</name><uri>http://www.blogger.com/profile/05931947000278519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://1.bp.blogspot.com/_MiEUaRgwgVU/SXt85JrzqQI/AAAAAAAAALM/Pvb2FpRNpAY/S220/ewinlogo-colorsketch_out.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_MiEUaRgwgVU/S0l55zWdwYI/AAAAAAAAAUk/_SXGD6xj48s/s72-c/mysql.net.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-54869802565233788.post-7638679920229387129</id><published>2009-11-15T03:28:00.001-08:00</published><updated>2009-11-15T03:31:49.999-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DB'/><category scheme='http://www.blogger.com/atom/ns#' term='vb6.0'/><title type='text'>Connect to MySql with VB 6.0</title><content type='html'>&lt;a href="http://3.bp.blogspot.com/_MiEUaRgwgVU/Sv_l_6uKXNI/AAAAAAAAATw/I6Y0Ln76vMc/s1600-h/mysql-odbc.JPG"&gt;&lt;img style="TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 320px; DISPLAY: block; HEIGHT: 250px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5404290964125277394" border="0" alt="" src="http://3.bp.blogspot.com/_MiEUaRgwgVU/Sv_l_6uKXNI/AAAAAAAAATw/I6Y0Ln76vMc/s320/mysql-odbc.JPG" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;before started make connection from vb 6.0 to mysql we must installed MYSQL-Connector-ODBC in your computer . you can find the mysql-odbc connector on mysql or you can download via &lt;a href="http://reliez.net/download"&gt;http://reliez.net/download&lt;/a&gt;. after you installed you will find mysql driver on odbc data source. on this project will used DSN connection, and we must create dsn with the name cdcol. there another way for connection without dsn.&lt;br /&gt;&lt;br /&gt;Code for connection with DSN like below;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;Public Dbado As ADODB.Connection&lt;br /&gt;Set Dbado = New ADODB.Connection&lt;br /&gt;Dbado.Open "Dsn=cdcol"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;for connection without DSN like below&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;Public Conn As New ADODB.Connection&lt;br /&gt;&lt;br /&gt;private sub create_con&lt;br /&gt;Dim ConnString As String&lt;br /&gt;&lt;br /&gt;Dim ConnString As String&lt;br /&gt;Dim db_name As String&lt;br /&gt;Dim db_server As String&lt;br /&gt;Dim db_port As String&lt;br /&gt;Dim db_user As String&lt;br /&gt;Dim db_pass As String&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;db_name = "databaseku" 'db name&lt;br /&gt;db_server = "localhost" 'address your mysql server&lt;br /&gt;db_port = "3306" 'default port is 3306&lt;br /&gt;db_user = "root" 'user name&lt;br /&gt;db_pass = "password" 'password for mysql&lt;br /&gt;&lt;br /&gt;ConnString ="DRIVER={MySQL ODBC 3.51 Driver};SERVER=" &amp;amp; db_server &amp;amp; ";DATABASE=" &amp;amp; db_name &amp;amp;&lt;br /&gt;&lt;br /&gt;";UID=" &amp;amp; db_user &amp;amp; ";PWD=" &amp;amp; db_pass &amp;amp; ";PORT=" &amp;amp; db_port &amp;amp; ";OPTION=3"&lt;br /&gt;&lt;br /&gt;With Conn&lt;br /&gt;.ConnectionString = ConnString&lt;br /&gt;.Open&lt;br /&gt;End With&lt;br /&gt;Exit Sub&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;download sample project via this &lt;a href="http://www.ziddu.com/download/7374593/MYSQLSIDECODE.rar.html"&gt;link&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/54869802565233788-7638679920229387129?l=sidecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sidecode.blogspot.com/feeds/7638679920229387129/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=54869802565233788&amp;postID=7638679920229387129' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/7638679920229387129'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/7638679920229387129'/><link rel='alternate' type='text/html' href='http://sidecode.blogspot.com/2009/11/connect-to-mysql-with-vb-60.html' title='Connect to MySql with VB 6.0'/><author><name>ewin</name><uri>http://www.blogger.com/profile/05931947000278519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://1.bp.blogspot.com/_MiEUaRgwgVU/SXt85JrzqQI/AAAAAAAAALM/Pvb2FpRNpAY/S220/ewinlogo-colorsketch_out.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_MiEUaRgwgVU/Sv_l_6uKXNI/AAAAAAAAATw/I6Y0Ln76vMc/s72-c/mysql-odbc.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-54869802565233788.post-3161791479203203502</id><published>2009-11-06T09:12:00.000-08:00</published><updated>2009-11-06T09:21:40.257-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vb6.0'/><category scheme='http://www.blogger.com/atom/ns#' term='Misc'/><title type='text'>Screen Resolution</title><content type='html'>&lt;a href="http://1.bp.blogspot.com/_MiEUaRgwgVU/SvRZKvtoKaI/AAAAAAAAATo/hf4bilRb0bY/s1600-h/scr.JPG"&gt;&lt;img style="TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 320px; DISPLAY: block; HEIGHT: 200px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5401039894265473442" border="0" alt="" src="http://1.bp.blogspot.com/_MiEUaRgwgVU/SvRZKvtoKaI/AAAAAAAAATo/hf4bilRb0bY/s320/scr.JPG" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;This just simple code to know what resolution currently used at the monitor. sometimes we need resize the resolution for exactly form at current resolution , here the code&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;Private Sub Form_Load()&lt;br /&gt;ResWidth = Screen.Width \ Screen.TwipsPerPixelX&lt;br /&gt;ResHeight = Screen.Height \ Screen.TwipsPerPixelY&lt;br /&gt;ScreenRes = ResWidth &amp;amp; "x" &amp;amp; ResHeight&lt;br /&gt;Text1.Text = ResWidth &amp;amp; "x" &amp;amp; ResHeight&lt;br /&gt;End Sub &lt;/span&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/54869802565233788-3161791479203203502?l=sidecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sidecode.blogspot.com/feeds/3161791479203203502/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=54869802565233788&amp;postID=3161791479203203502' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/3161791479203203502'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/3161791479203203502'/><link rel='alternate' type='text/html' href='http://sidecode.blogspot.com/2009/11/screen-resolution.html' title='Screen Resolution'/><author><name>ewin</name><uri>http://www.blogger.com/profile/05931947000278519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://1.bp.blogspot.com/_MiEUaRgwgVU/SXt85JrzqQI/AAAAAAAAALM/Pvb2FpRNpAY/S220/ewinlogo-colorsketch_out.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_MiEUaRgwgVU/SvRZKvtoKaI/AAAAAAAAATo/hf4bilRb0bY/s72-c/scr.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-54869802565233788.post-7932860639169959902</id><published>2009-09-24T09:22:00.000-07:00</published><updated>2009-09-24T09:31:50.299-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='paralel port'/><title type='text'>Paralel Port With Net 2005</title><content type='html'>On previous posting i have write a project for visual basic 6.0 for parallel port using driver link. Now on the VB 2005 I try accessing parallel port using Inpout32.ddl from  www.logix4u.net. This ddl is free so far the application not for commercial use. You can download inpout32.dll direct from logix4u, but on the test project I attach too for your download.&lt;br /&gt;&lt;p&gt;Before started, we must put or copy the inpout32.ddl into windows system 32. After that we add a module, and add the code below into module.&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;Option Explicit On&lt;/span&gt;&lt;span style="color:#000099;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="color:#000099;"&gt;Module inpout&lt;/span&gt;&lt;span style="color:#000099;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#000099;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#000099;"&gt;Public Declare Function Inp Lib "inpout32.dll" Alias "Inp32" (ByVal PortAddress As Short) As Short&lt;/span&gt;&lt;span style="color:#000099;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#000099;"&gt;Public Declare Sub Out Lib "inpout32.dll" Alias "Out32" (ByVal PortAddress As Short, ByVal Value As Short)&lt;/span&gt;&lt;span style="color:#000099;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#000099;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#000099;"&gt;End Module&lt;/span&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;Add the form with radio button and button like below :&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_MiEUaRgwgVU/SrueK951kEI/AAAAAAAAATQ/ujYTLur1Zy8/s1600-h/paralel-net2005.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 218px;" src="http://2.bp.blogspot.com/_MiEUaRgwgVU/SrueK951kEI/AAAAAAAAATQ/ujYTLur1Zy8/s320/paralel-net2005.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5385071690704588866" /&gt;&lt;/a&gt;Ussualy on the PC only have one paralel port and the hexa address for this port is H378, but some PC have 2 paralal port , so the radio button give chance for PC with 2 paralel port to choice which Paralel will be used.&lt;/p&gt;&lt;p&gt;Another is 8 button to represent the data port on paralel port. So if press S0, the Data D0 should be ON and more for another Button. the meaning of value at LPT is status value on paralel port and for input value is the data value to sending paralel port.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;For testing program you can create simple electronic circuit with LED (light emmiting diode) which connected into every data pin on paralel. The drawing of circuit like picture below. the resistor value at circuit is 470 OHM.&lt;/p&gt;&lt;p&gt;For source Code you can download in  &lt;a href="http://www.ziddu.com/download/6632486/ParalelNET2005.rar.html"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_MiEUaRgwgVU/SruenTp97UI/AAAAAAAAATY/jExO5MW-GbI/s1600-h/lptleds.gif"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 250px; height: 179px;" src="http://4.bp.blogspot.com/_MiEUaRgwgVU/SruenTp97UI/AAAAAAAAATY/jExO5MW-GbI/s320/lptleds.gif" border="0" alt="" id="BLOGGER_PHOTO_ID_5385072177579945282" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/54869802565233788-7932860639169959902?l=sidecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sidecode.blogspot.com/feeds/7932860639169959902/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=54869802565233788&amp;postID=7932860639169959902' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/7932860639169959902'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/7932860639169959902'/><link rel='alternate' type='text/html' href='http://sidecode.blogspot.com/2009/09/paralel-port-with-net-2005.html' title='Paralel Port With Net 2005'/><author><name>ewin</name><uri>http://www.blogger.com/profile/05931947000278519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://1.bp.blogspot.com/_MiEUaRgwgVU/SXt85JrzqQI/AAAAAAAAALM/Pvb2FpRNpAY/S220/ewinlogo-colorsketch_out.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_MiEUaRgwgVU/SrueK951kEI/AAAAAAAAATQ/ujYTLur1Zy8/s72-c/paralel-net2005.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-54869802565233788.post-6331111852491655582</id><published>2009-09-12T09:40:00.000-07:00</published><updated>2009-09-12T09:51:16.638-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vb6.0'/><category scheme='http://www.blogger.com/atom/ns#' term='Picture'/><category scheme='http://www.blogger.com/atom/ns#' term='Misc'/><title type='text'>Animation Character with MS Agent</title><content type='html'>&lt;a href="http://2.bp.blogspot.com/_MiEUaRgwgVU/SqvQysBa5WI/AAAAAAAAAPI/5UbnUeofryQ/s1600-h/MERLIN.PNG"&gt;&lt;img style="TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 296px; DISPLAY: block; HEIGHT: 320px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5380623749053343074" border="0" alt="" src="http://2.bp.blogspot.com/_MiEUaRgwgVU/SqvQysBa5WI/AAAAAAAAAPI/5UbnUeofryQ/s320/MERLIN.PNG" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;That nice if the application have animation for showing help or showing animation for notification for the user for&lt;br /&gt;replace message box on visual basic. on visual basic we can add animation with speech on the program using microsoft&lt;br /&gt;agent. &lt;/div&gt;&lt;br /&gt;&lt;div&gt;like on microsoft office 2000 or higher we will found character to show for help or search.microsoft agent have 4 character animations, &lt;a href="http://www.ziddu.com/download/6436249/merlin.rar.html"&gt;Merlin&lt;/a&gt;, &lt;a href="http://www.ziddu.com/download/6447924/Peedy.exe.html"&gt;Peedy&lt;/a&gt;, &lt;a href="http://www.ziddu.com/download/6447824/Genie.exe.html"&gt;Genie&lt;/a&gt; and Robby. each character should install first (&lt;br /&gt;you can download in &lt;a href="http://www.microsoft.com/products/msagent/main.aspx"&gt;http://www.microsoft.com/products/msagent/main.aspx&lt;/a&gt;) , Some characters also shipped with&lt;br /&gt;Microsoft Office up to version 2003 as the Office Assistants and with Windows XP as search assistants.For create app with ms agent character we must install MS-Agent first ( you can download &lt;a href="http://www.ziddu.com/download/6447944/MSagent.exe.html"&gt;here&lt;/a&gt; ), after that on&lt;br /&gt;project component you can add MS-Agent Control into your project. another that you shuold install Microsoft&lt;br /&gt;Text-to-Speech Engine , so the animation can speak by your define. you can download&lt;br /&gt;sample about ms agent in &lt;a href="http://www.ziddu.com/download/6476135/MSagent.rar.html"&gt;here&lt;/a&gt;.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/54869802565233788-6331111852491655582?l=sidecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sidecode.blogspot.com/feeds/6331111852491655582/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=54869802565233788&amp;postID=6331111852491655582' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/6331111852491655582'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/6331111852491655582'/><link rel='alternate' type='text/html' href='http://sidecode.blogspot.com/2009/09/animation-charater-with-ms-agent.html' title='Animation Character with MS Agent'/><author><name>ewin</name><uri>http://www.blogger.com/profile/05931947000278519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://1.bp.blogspot.com/_MiEUaRgwgVU/SXt85JrzqQI/AAAAAAAAALM/Pvb2FpRNpAY/S220/ewinlogo-colorsketch_out.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_MiEUaRgwgVU/SqvQysBa5WI/AAAAAAAAAPI/5UbnUeofryQ/s72-c/MERLIN.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-54869802565233788.post-7077966238806568864</id><published>2009-08-15T07:08:00.000-07:00</published><updated>2009-09-12T10:12:16.917-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DB'/><category scheme='http://www.blogger.com/atom/ns#' term='Picture'/><category scheme='http://www.blogger.com/atom/ns#' term='Misc'/><title type='text'>Insert Picture into DB on VB 6.0</title><content type='html'>&lt;p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_MiEUaRgwgVU/SobBnWA4ZyI/AAAAAAAAAOk/7BFOfzX0wPw/s1600-h/untitled.JPG"&gt;&lt;img style="TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 320px; DISPLAY: block; HEIGHT: 282px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5370192487354230562" border="0" alt="" src="http://2.bp.blogspot.com/_MiEUaRgwgVU/SobBnWA4ZyI/AAAAAAAAAOk/7BFOfzX0wPw/s320/untitled.JPG" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;this code i write last years ago on a project atendance system on a company . the requirement should store a picture of employee on a table on database. after browse for many hours, finaly i found how to store graphic or picture into a database. the project use a Microsoft SQL Server , but in this sample used microsoft access for database.&lt;/p&gt;&lt;p&gt;Field for picture on the table should set data type to OLE Object , and code on vb use ADODb Stream for store picture on database.&lt;/p&gt;&lt;p&gt;&lt;span style="color:#ff0000;"&gt;&lt;em&gt;Set mstream = New ADODB.Stream&lt;br /&gt;mstream.Type = adTypeBinary&lt;br /&gt;mstream.Open&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;for complete sample you can download via this &lt;a href="http://x-riverside.co.cc/?p=95#more-95"&gt;link&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/54869802565233788-7077966238806568864?l=sidecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sidecode.blogspot.com/feeds/7077966238806568864/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=54869802565233788&amp;postID=7077966238806568864' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/7077966238806568864'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/7077966238806568864'/><link rel='alternate' type='text/html' href='http://sidecode.blogspot.com/2009/08/insert-picture-into-db-on-vb-60.html' title='Insert Picture into DB on VB 6.0'/><author><name>ewin</name><uri>http://www.blogger.com/profile/05931947000278519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://1.bp.blogspot.com/_MiEUaRgwgVU/SXt85JrzqQI/AAAAAAAAALM/Pvb2FpRNpAY/S220/ewinlogo-colorsketch_out.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_MiEUaRgwgVU/SobBnWA4ZyI/AAAAAAAAAOk/7BFOfzX0wPw/s72-c/untitled.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-54869802565233788.post-6053383309876951355</id><published>2009-07-22T01:25:00.000-07:00</published><updated>2009-08-15T06:32:42.718-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DB'/><category scheme='http://www.blogger.com/atom/ns#' term='.NET'/><title type='text'>DB Connection on VB.NET with</title><content type='html'>&lt;p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_MiEUaRgwgVU/SmbOcXnFKuI/AAAAAAAAAOc/tJEap2sw-HY/s1600-h/dbcon.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 265px;" src="http://3.bp.blogspot.com/_MiEUaRgwgVU/SmbOcXnFKuI/AAAAAAAAAOc/tJEap2sw-HY/s320/dbcon.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5361199393200745186" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;herewith is sample for connection database with oledb. the sample using microsoft access and for connection i using a class. the syntax for connection like below :&lt;/p&gt;&lt;p&gt;&lt;span style="color:#3333ff;"&gt;Imports System.Data.OleDb&lt;br /&gt;&lt;br /&gt;Public Class dbcon&lt;br /&gt;#Region "Variable Declerations"&lt;br /&gt;    Private objConnection As OleDbConnection&lt;br /&gt;    Private objDataTable As DataTable&lt;br /&gt;#End Region&lt;br /&gt;&lt;br /&gt;#Region "Constructors"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    Public Sub New()&lt;br /&gt;        Dim dbpath As String = Application.StartupPath &amp;amp; "\test.mdb "&lt;br /&gt;        objConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source='" &amp;amp; dbpath &amp;amp; "'; Jet OLEDB:database password=")&lt;br /&gt;        objDataTable = New DataTable&lt;br /&gt;    End Sub&lt;br /&gt;#End Region&lt;br /&gt;&lt;br /&gt;#Region "Methods"&lt;br /&gt;    Public Function QueryDatabase(ByVal Query As String) As DataTable&lt;br /&gt;        Try&lt;br /&gt;            Dim objDataSet As New DataSet&lt;br /&gt;            Dim objDataTable As New DataTable&lt;br /&gt;&lt;br /&gt;            Dim objDataAdapter As New OleDbDataAdapter(Query, objConnection)&lt;br /&gt;&lt;br /&gt;            objDataAdapter.Fill(objDataSet, "DefaultTable")&lt;br /&gt;            objDataTable = objDataSet.Tables("DefaultTable")&lt;br /&gt;&lt;br /&gt;            objConnection.Close()&lt;br /&gt;&lt;br /&gt;            Return objDataTable&lt;br /&gt;&lt;br /&gt;        Catch ex As Exception&lt;br /&gt;            Return objDataTable&lt;br /&gt;            MessageBox.Show(ex.Message, "Error.", MessageBoxButtons.OK, MessageBoxIcon.Error)&lt;br /&gt;        End Try&lt;br /&gt;    End Function&lt;br /&gt;&lt;br /&gt;    Public Sub DatabaseCommand(ByVal CommandString As String)&lt;br /&gt;        Try&lt;br /&gt;            Dim objInsert As New OleDbCommand&lt;br /&gt;&lt;br /&gt;            objInsert.CommandText = CommandString&lt;br /&gt;            objInsert.Connection = objConnection&lt;br /&gt;            objInsert.Connection.Open()&lt;br /&gt;            objInsert.ExecuteNonQuery()&lt;br /&gt;            objConnection.Close()&lt;br /&gt;&lt;br /&gt;        Catch ex As Exception&lt;br /&gt;            MessageBox.Show(ex.Message, "Error.", MessageBoxButtons.OK, MessageBoxIcon.Error)&lt;br /&gt;        End Try&lt;br /&gt;    End Sub&lt;br /&gt;#End Region&lt;br /&gt;&lt;br /&gt;End Class&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000000;"&gt;The complete sample you can download in this &lt;a href="http://x-riverside.co.cc/?p=88#more-88"&gt;link&lt;/a&gt;&lt;/span&gt;&lt;span style="color:#3333ff;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/54869802565233788-6053383309876951355?l=sidecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sidecode.blogspot.com/feeds/6053383309876951355/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=54869802565233788&amp;postID=6053383309876951355' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/6053383309876951355'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/6053383309876951355'/><link rel='alternate' type='text/html' href='http://sidecode.blogspot.com/2009/07/db-connection-on-vbnet-with.html' title='DB Connection on VB.NET with'/><author><name>ewin</name><uri>http://www.blogger.com/profile/05931947000278519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://1.bp.blogspot.com/_MiEUaRgwgVU/SXt85JrzqQI/AAAAAAAAALM/Pvb2FpRNpAY/S220/ewinlogo-colorsketch_out.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_MiEUaRgwgVU/SmbOcXnFKuI/AAAAAAAAAOc/tJEap2sw-HY/s72-c/dbcon.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-54869802565233788.post-7749904921651653785</id><published>2009-06-21T21:16:00.000-07:00</published><updated>2009-06-21T23:26:43.151-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vb6.0'/><category scheme='http://www.blogger.com/atom/ns#' term='Misc'/><title type='text'>MS Excell for Reporting On VB 6.0</title><content type='html'>&lt;p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_MiEUaRgwgVU/Sj8dO1MSbOI/AAAAAAAAAOU/2eWMgrVm6Ww/s1600-h/main.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 291px;" src="http://3.bp.blogspot.com/_MiEUaRgwgVU/Sj8dO1MSbOI/AAAAAAAAAOU/2eWMgrVm6Ww/s320/main.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5350027022973431010" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Create Report with Ms excell is alternative way for reporting on Visual Basic 6.0, maybe that is the simple way to create report, we just make reference on project with microsoft data access 2.5 or higher. the code like below;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;Public vExcel As Excel.Application&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#3333ff;"&gt;Public Sub pOpenExcel()&lt;br /&gt;    Set vExcel = Nothing&lt;br /&gt;    Screen.MousePointer = vbHourglass&lt;br /&gt;&lt;br /&gt;    Set vExcel = CreateObject("Excel.Application")&lt;br /&gt;    Screen.MousePointer = vbDefault&lt;br /&gt;End Sub&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#3366ff;"&gt;Private Sub Command1_Click()&lt;br /&gt;Dim nb As Integer, startRow As Integer&lt;br /&gt;Dim rsprint As ADODB.Recordset&lt;br /&gt;&lt;br /&gt;recordset_conn rsprint, "select * from books"&lt;br /&gt;If rsprint.RecordCount = 0 Then Exit Sub&lt;br /&gt;&lt;br /&gt;Call pOpenExcel&lt;br /&gt;vExcel.Workbooks.Add (App.Path &amp;amp; "\report.xlt")&lt;br /&gt;vExcel.WindowState = xlMaximized&lt;br /&gt;vExcel.Visible = True&lt;br /&gt;startRow = 6&lt;br /&gt;&lt;br /&gt;With vExcel.ActiveSheet&lt;br /&gt;    &lt;br /&gt;While Not rsprint.EOF&lt;br /&gt;    nb = nb + 1&lt;br /&gt;    '.cells(startRow + nb, 1).Value = nb&lt;br /&gt;    .Cells(startRow + nb, 1).Value = rsprint.Fields("title")&lt;br /&gt;    .Cells(startRow + nb, 2).Value = rsprint.Fields("author first name")&lt;br /&gt;    .Cells(startRow + nb, 3).Value = rsprint.Fields("category")&lt;br /&gt;    .Cells(startRow + nb, 4).Value = rsprint.Fields("price")&lt;br /&gt;    rsprint.MoveNext&lt;br /&gt;Wend&lt;br /&gt;&lt;br /&gt;End With&lt;br /&gt;&lt;br /&gt;End Sub&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#333333;"&gt;For Complete Code you can download in &lt;a href="http://x-riverside.co.cc/?p=78"&gt;here&lt;/a&gt; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/54869802565233788-7749904921651653785?l=sidecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sidecode.blogspot.com/feeds/7749904921651653785/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=54869802565233788&amp;postID=7749904921651653785' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/7749904921651653785'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/7749904921651653785'/><link rel='alternate' type='text/html' href='http://sidecode.blogspot.com/2009/06/ms-excell-for-reporting-on-vb-60.html' title='MS Excell for Reporting On VB 6.0'/><author><name>ewin</name><uri>http://www.blogger.com/profile/05931947000278519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://1.bp.blogspot.com/_MiEUaRgwgVU/SXt85JrzqQI/AAAAAAAAALM/Pvb2FpRNpAY/S220/ewinlogo-colorsketch_out.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_MiEUaRgwgVU/Sj8dO1MSbOI/AAAAAAAAAOU/2eWMgrVm6Ww/s72-c/main.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-54869802565233788.post-8946685663441427935</id><published>2009-05-20T18:43:00.000-07:00</published><updated>2009-05-20T21:05:07.819-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vb6.0'/><category scheme='http://www.blogger.com/atom/ns#' term='Misc'/><title type='text'>Sending Fax with Vb 60</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_MiEUaRgwgVU/ShS2YQSkIEI/AAAAAAAAAN8/QDxLjLEMwdY/s1600-h/sendfax.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 319px; height: 309px;" src="http://4.bp.blogspot.com/_MiEUaRgwgVU/ShS2YQSkIEI/AAAAAAAAAN8/QDxLjLEMwdY/s320/sendfax.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5338091986146828354" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div align="center"&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;based in this project maybe we can create a Fax Server for Office or we can just add litle this code to your app to gave function for sending FAX message. the program tested on windows XP proffesional, because on on xp proffesional there a FAX service. &lt;/p&gt;&lt;p&gt;For activate FAX service we can add component FAX service from control-panel/Add-remove windows component or from autorun disc windows XP proffesional which there a option for add windows component. after you successed activate Fax service on your computer, you can set your fax like name sender, phone number, modem type and etc. if it all ok, you will find fax icon on your printer and faxs folder.&lt;/p&gt;&lt;p&gt;dont forget to make reference the project with Faxcomm type library or Fax control library. the litle bit code for sending, you can see at below:&lt;/p&gt;&lt;p&gt;&lt;span style="color:#3333ff;"&gt;&lt;em&gt;Dim oFaxServer As FAXCOMLib.FaxServer&lt;br /&gt;    Set oFaxServer = New FAXCOMLib.FaxServer&lt;br /&gt;    Dim oFaxDoc As FAXCOMLib.FaxDoc&lt;br /&gt;    oFaxServer.Connect nameComputer&lt;br /&gt;    oFaxServer.ServerCoverpage = 0&lt;br /&gt;    Set oFaxDoc = oFaxServer.CreateDocument(Text6.Text)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    With oFaxDoc&lt;br /&gt;        .FaxNumber = Text2.Text&lt;br /&gt;        .DisplayName = nameComputer&lt;br /&gt;        .SenderName = Text4.Text&lt;br /&gt;        Dim lngSend As Long&lt;br /&gt;        lngSend = .Send&lt;br /&gt;    End With&lt;br /&gt;    Set oFaxDoc = Nothing&lt;br /&gt;    oFaxServer.Disconnect&lt;br /&gt;    Set oFaxServer = Nothing&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000000;"&gt;for complete code you can download at &lt;a href="http://www.ziddu.com/download/4835050/FaxSenderwithVb60.rar.html"&gt;here&lt;/a&gt; .&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/54869802565233788-8946685663441427935?l=sidecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sidecode.blogspot.com/feeds/8946685663441427935/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=54869802565233788&amp;postID=8946685663441427935' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/8946685663441427935'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/8946685663441427935'/><link rel='alternate' type='text/html' href='http://sidecode.blogspot.com/2009/05/sending-fax-with-vb-60.html' title='Sending Fax with Vb 60'/><author><name>ewin</name><uri>http://www.blogger.com/profile/05931947000278519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://1.bp.blogspot.com/_MiEUaRgwgVU/SXt85JrzqQI/AAAAAAAAALM/Pvb2FpRNpAY/S220/ewinlogo-colorsketch_out.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_MiEUaRgwgVU/ShS2YQSkIEI/AAAAAAAAAN8/QDxLjLEMwdY/s72-c/sendfax.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-54869802565233788.post-2682767484510379427</id><published>2009-03-29T01:15:00.001-07:00</published><updated>2009-04-17T06:12:15.338-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vb6.0'/><category scheme='http://www.blogger.com/atom/ns#' term='MP3'/><title type='text'>Media Player With VB 6.0</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_MiEUaRgwgVU/Sc8zVZJOr_I/AAAAAAAAAMc/e6LPNbRyVtk/s1600-h/untitled.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5318526127567712242" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 286px; CURSOR: hand; HEIGHT: 320px; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_MiEUaRgwgVU/Sc8zVZJOr_I/AAAAAAAAAMc/e6LPNbRyVtk/s320/untitled.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;p&gt;MSDXM is component active-x from microsoft for windows media player. with this active-x we can create a program multimedia player. on this project my friend create a small program with VB 6.0 and Msdxm. this program for a souvenir for every guest when he decided to married. &lt;/p&gt;&lt;p&gt;the program burn to the cd and have autorun, the skin using they photgraph. i think thats is ver nice souvenir. if you want source code and active-x, you can download &lt;a href="http://x-riverside.co.cc/?p=11"&gt;here &lt;/a&gt;  or &lt;a href="http://www.ziddu.com/download/4059446/BOJONGMP3.rar.html"&gt;here&lt;/a&gt; &lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/54869802565233788-2682767484510379427?l=sidecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sidecode.blogspot.com/feeds/2682767484510379427/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=54869802565233788&amp;postID=2682767484510379427' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/2682767484510379427'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/2682767484510379427'/><link rel='alternate' type='text/html' href='http://sidecode.blogspot.com/2009/03/media-player-with-vb-60.html' title='Media Player With VB 6.0'/><author><name>ewin</name><uri>http://www.blogger.com/profile/05931947000278519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://1.bp.blogspot.com/_MiEUaRgwgVU/SXt85JrzqQI/AAAAAAAAALM/Pvb2FpRNpAY/S220/ewinlogo-colorsketch_out.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_MiEUaRgwgVU/Sc8zVZJOr_I/AAAAAAAAAMc/e6LPNbRyVtk/s72-c/untitled.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-54869802565233788.post-74482515717259512</id><published>2009-03-11T08:28:00.000-07:00</published><updated>2009-03-11T08:34:51.108-07:00</updated><title type='text'>X-Riverside Down</title><content type='html'>&lt;p&gt;Hmm.. it bad news for me try to access x-riverside, it seem always be down and cannot be reached. Hmm .. i must decide new hosting for replace x-riverside.co.cc. but that is need time. sorry for this uncomfortable, hope in shortest time, i will have new hosting for x-riverside. &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/54869802565233788-74482515717259512?l=sidecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sidecode.blogspot.com/feeds/74482515717259512/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=54869802565233788&amp;postID=74482515717259512' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/74482515717259512'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/74482515717259512'/><link rel='alternate' type='text/html' href='http://sidecode.blogspot.com/2009/03/x-riverside-down.html' title='X-Riverside Down'/><author><name>ewin</name><uri>http://www.blogger.com/profile/05931947000278519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://1.bp.blogspot.com/_MiEUaRgwgVU/SXt85JrzqQI/AAAAAAAAALM/Pvb2FpRNpAY/S220/ewinlogo-colorsketch_out.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-54869802565233788.post-8166178325216311467</id><published>2009-02-27T19:31:00.000-08:00</published><updated>2009-04-17T03:19:09.117-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='serial'/><title type='text'>Serial Port with VB .NET 2005</title><content type='html'>&lt;a href="http://3.bp.blogspot.com/_MiEUaRgwgVU/Saiz2feDsLI/AAAAAAAAAMM/msaWwmAidLY/s1600-h/RS232.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5307689909598007474" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 320px; CURSOR: hand; HEIGHT: 274px; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_MiEUaRgwgVU/Saiz2feDsLI/AAAAAAAAAMM/msaWwmAidLY/s320/RS232.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;Herewith simple sample to write serial code on microsoft visual basic net 2005. the serial write on a class, sercomm.vb. this sample code, based on my old test app which write on VB 6.0.&lt;br /&gt;serial port routine i put on a class. there some problem when firt time, the error "thread call safe!", always raise, every message on serial port try to show on text box on form. to avoid this i use delegate methode.&lt;br /&gt;&lt;/div&gt;&lt;strong&gt;&lt;span style="color:#330000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color:#330000;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color:#330000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;div&gt;&lt;span style="color:#000000;"&gt;&lt;strong&gt;Complete sample code can be download at &lt;a href="http://www.ziddu.com/download/3839245/Serial.zip.html"&gt;here&lt;/a&gt; &lt;/strong&gt;&lt;strong&gt;.&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/54869802565233788-8166178325216311467?l=sidecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sidecode.blogspot.com/feeds/8166178325216311467/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=54869802565233788&amp;postID=8166178325216311467' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/8166178325216311467'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/8166178325216311467'/><link rel='alternate' type='text/html' href='http://sidecode.blogspot.com/2009/02/serial-port-with-vb-net-2005.html' title='Serial Port with VB .NET 2005'/><author><name>ewin</name><uri>http://www.blogger.com/profile/05931947000278519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://1.bp.blogspot.com/_MiEUaRgwgVU/SXt85JrzqQI/AAAAAAAAALM/Pvb2FpRNpAY/S220/ewinlogo-colorsketch_out.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_MiEUaRgwgVU/Saiz2feDsLI/AAAAAAAAAMM/msaWwmAidLY/s72-c/RS232.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-54869802565233788.post-9173652536929150840</id><published>2009-02-12T00:36:00.000-08:00</published><updated>2009-11-17T06:56:10.556-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vb6.0'/><category scheme='http://www.blogger.com/atom/ns#' term='ATM Machine'/><category scheme='http://www.blogger.com/atom/ns#' term='socket'/><title type='text'>NDC+ Mini Host Simulator with VB 6.0 Winsock</title><content type='html'>Trully I made this application is use for testing the another friend who create a ATM Monitoring Alert System.  The NDC+ Mini Host simulator have 2 Server Socket for ATM connection and 1 client socket to connect ATM monitoring Alert System.&lt;br /&gt;The system work is, every mini host receive error or warning status from ATM machine in solicited or unsolicited, the mini host will pass that error message into client socket for ATM monitoring alert system for processing to get real information about error and delivered SMS or email notification to user or person in charge to handle ATM.&lt;br /&gt;The NDC+ mini host simulator have function command or Load/Send Configuration Data into ATM machine, send Inservice command, Send Out Of Service Command, Get Hardware Fitness and get counter info. You can connect direct into the ATM Machine for test that command, but you cannot do transaction. Because I limited that function. The other the ATM simulator I have add to this project so you can send NDC+ solicited and unsolicited without using the Real ATM machine.&lt;br /&gt;&lt;p&gt;You can get this application in&lt;a href="http://reliez.net/2009/11/14/ndc-atmc-simulator/"&gt; &lt;/a&gt;&lt;a href="http://reliez.net/2009/11/14/ndc-atmc-simulator/"&gt;here&lt;/a&gt;&lt;a href="http://reliez.net/2009/11/14/ndc-atmc-simulator/"&gt; &lt;/a&gt;, the application need VB 6.0 runtime files&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_MiEUaRgwgVU/SZPgiHDLmSI/AAAAAAAAAL0/sJODlSrrdpE/s1600-h/tiga.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 280px; height: 320px;" src="http://1.bp.blogspot.com/_MiEUaRgwgVU/SZPgiHDLmSI/AAAAAAAAAL0/sJODlSrrdpE/s320/tiga.JPG" alt="" id="BLOGGER_PHOTO_ID_5301828062957771042" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_MiEUaRgwgVU/SZPga-bG_AI/AAAAAAAAALs/KEGd3xOlpCw/s1600-h/dua.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 276px;" src="http://3.bp.blogspot.com/_MiEUaRgwgVU/SZPga-bG_AI/AAAAAAAAALs/KEGd3xOlpCw/s320/dua.JPG" alt="" id="BLOGGER_PHOTO_ID_5301827940383128578" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_MiEUaRgwgVU/SZPgRpDU-5I/AAAAAAAAALk/cP34q5yLrb4/s1600-h/satu.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 276px;" src="http://4.bp.blogspot.com/_MiEUaRgwgVU/SZPgRpDU-5I/AAAAAAAAALk/cP34q5yLrb4/s320/satu.JPG" alt="" id="BLOGGER_PHOTO_ID_5301827780027415442" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/54869802565233788-9173652536929150840?l=sidecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sidecode.blogspot.com/feeds/9173652536929150840/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=54869802565233788&amp;postID=9173652536929150840' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/9173652536929150840'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/9173652536929150840'/><link rel='alternate' type='text/html' href='http://sidecode.blogspot.com/2009/02/ndc-mini-host-simulator-with-vb-60.html' title='NDC+ Mini Host Simulator with VB 6.0 Winsock'/><author><name>ewin</name><uri>http://www.blogger.com/profile/05931947000278519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://1.bp.blogspot.com/_MiEUaRgwgVU/SXt85JrzqQI/AAAAAAAAALM/Pvb2FpRNpAY/S220/ewinlogo-colorsketch_out.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_MiEUaRgwgVU/SZPgiHDLmSI/AAAAAAAAAL0/sJODlSrrdpE/s72-c/tiga.JPG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-54869802565233788.post-5831671521742757774</id><published>2009-01-23T21:59:00.000-08:00</published><updated>2009-03-19T09:55:11.464-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vb6.0'/><category scheme='http://www.blogger.com/atom/ns#' term='network'/><category scheme='http://www.blogger.com/atom/ns#' term='socket'/><title type='text'>Snip Network Traffic with Socket VB 6.0</title><content type='html'>&lt;a href="http://4.bp.blogspot.com/_MiEUaRgwgVU/SXquv3GoGDI/AAAAAAAAALE/cHQX02wKLbM/s1600-h/screen.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5294736449196267570" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 320px; CURSOR: hand; HEIGHT: 248px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_MiEUaRgwgVU/SXquv3GoGDI/AAAAAAAAALE/cHQX02wKLbM/s320/screen.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;This project started when i try to capture every trafic on ether card on a pc for some purpose jobs. finally i found on the net article how to sniff data traffic on ether card, with this article i modified the code to suitable my project.&lt;br /&gt;The active-x Kancut, have feature to snap infomation traffic from ether card, such as protocol name, destination address and port number, source address and port, data traffic, and time to live.&lt;br /&gt;The sample code and Kancut active-x i put on &lt;a href="http://www.ziddu.com/download/3927227/NetworkSnif.rar.html"&gt;here&lt;/a&gt; you free to download this application, just need register to enable download. in this sample you will find the ppacket, which the function to print packet to format hexa and asc. hope this sample will help you for your project .&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/54869802565233788-5831671521742757774?l=sidecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sidecode.blogspot.com/feeds/5831671521742757774/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=54869802565233788&amp;postID=5831671521742757774' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/5831671521742757774'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/5831671521742757774'/><link rel='alternate' type='text/html' href='http://sidecode.blogspot.com/2009/01/snip-network-traffic-with-socket-vb-60.html' title='Snip Network Traffic with Socket VB 6.0'/><author><name>ewin</name><uri>http://www.blogger.com/profile/05931947000278519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://1.bp.blogspot.com/_MiEUaRgwgVU/SXt85JrzqQI/AAAAAAAAALM/Pvb2FpRNpAY/S220/ewinlogo-colorsketch_out.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_MiEUaRgwgVU/SXquv3GoGDI/AAAAAAAAALE/cHQX02wKLbM/s72-c/screen.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-54869802565233788.post-4367175302202899431</id><published>2009-01-13T14:55:00.000-08:00</published><updated>2009-03-12T07:00:47.593-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='socket'/><title type='text'>Socket with VB.NET</title><content type='html'>&lt;p&gt;Herewith is a sample write a socket with visual basic.NET 2005,  the application is  chat with multi user.  the socket in VB 6.0 and Visual basic .NET have big diffrent. On .NET we can write socket with thread technique. &lt;/p&gt;&lt;p&gt;In .NET system class library includes a namespace for working with TCP Sockets, the system.net.sockets namespace.  The server application, consist 1 form, and two classes. the socket using TCP listener and code for listener is like below ;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#33ccff;"&gt;&lt;em&gt;Try&lt;br /&gt;            SListener = New TcpListener(Net.IPAddress.Any, SwitchPort)&lt;br /&gt;            SListener.Start()&lt;br /&gt;            Me.IsServerStarted = True&lt;br /&gt;&lt;br /&gt;            Do Until IsServerStarted = False&lt;br /&gt;                'Thread.Sleep(50)&lt;br /&gt;                Dim XClient As New RSockClient(SListener.AcceptSocket)&lt;br /&gt;&lt;br /&gt;                AddHandler XClient.Connected, AddressOf OnConnected&lt;br /&gt;                AddHandler XClient.Disconnected, AddressOf OnDisconnected&lt;br /&gt;                AddHandler XClient.LineReceived, AddressOf OnIncoming&lt;br /&gt;                AddHandler XClient.LineSend, AddressOf OnSend&lt;br /&gt;                SID.Add(XClient.ID, XClient)&lt;br /&gt;                RaiseEvent ServerStatus("Connection Accepted From = " &amp;amp; XClient.ID)&lt;br /&gt;                RaiseEvent Connected(XClient.ID)&lt;br /&gt;&lt;br /&gt;            Loop&lt;br /&gt;&lt;br /&gt;        Catch ex As Exception&lt;br /&gt;            RaiseEvent ServerStatus(ex.Message)&lt;br /&gt;        End Try&lt;br /&gt; &lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#cccccc;"&gt;on .Net if we use thread and want access to the form! like textbox or label, we cannot access directly. the error will be raised and say the thread is not safe. from MSDN if found how to handle error like this. we must use delegate method to avoid non thread safe. you can see at my code sample which i put on&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;a href="http://www.ziddu.com/download/3839171/ReliezChat.rar.html"&gt;here&lt;/a&gt; , &lt;/span&gt;&lt;span style="color:#c0c0c0;"&gt;any comment is welcome.&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_MiEUaRgwgVU/SW0cPh_5R4I/AAAAAAAAAK0/aUFVdhGBvm8/s1600-h/mini+chat.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 196px;" src="http://3.bp.blogspot.com/_MiEUaRgwgVU/SW0cPh_5R4I/AAAAAAAAAK0/aUFVdhGBvm8/s320/mini+chat.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5290916190380181378" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/54869802565233788-4367175302202899431?l=sidecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sidecode.blogspot.com/feeds/4367175302202899431/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=54869802565233788&amp;postID=4367175302202899431' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/4367175302202899431'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/4367175302202899431'/><link rel='alternate' type='text/html' href='http://sidecode.blogspot.com/2009/01/socket-with-vbnet.html' title='Socket with VB.NET'/><author><name>ewin</name><uri>http://www.blogger.com/profile/05931947000278519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://1.bp.blogspot.com/_MiEUaRgwgVU/SXt85JrzqQI/AAAAAAAAALM/Pvb2FpRNpAY/S220/ewinlogo-colorsketch_out.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_MiEUaRgwgVU/SW0cPh_5R4I/AAAAAAAAAK0/aUFVdhGBvm8/s72-c/mini+chat.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-54869802565233788.post-4024722857796235899</id><published>2009-01-10T01:33:00.001-08:00</published><updated>2009-03-19T10:00:14.333-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='webcam'/><category scheme='http://www.blogger.com/atom/ns#' term='vb6.0'/><category scheme='http://www.blogger.com/atom/ns#' term='Picture'/><title type='text'>Capture video and picture with webcam on VB</title><content type='html'>Do you see the application of enrolment for Driver licence or Passport ?, yes the application have capable to capture the registrant via webcam, before produce a card o driver licence or passport book. On Visual basic we can create application similar like that using ezvideo from Ray Mercer.The active-x is create based from VFWDK and VFW API for Windows. With this active-x we can capture the picture or record the video.&lt;br /&gt;&lt;br /&gt;Before started the write code, we must have installed the webcam and ezvideo active-x. To installed ezvideo active-x, just copy file ezvidc60.ocx to the windows\system32\. After all ok you can started with put the ezvideo to your form. For start capture picture, you can add command button ot anything what you like and put the code like below ;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#3366ff;"&gt;Call ezVidCap1.SaveDIB(FileName)&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Filename is the target for saving the result of picture, for comfortable, you can add common dialog to put your file to locate which drive you want store the file.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;&lt;em&gt;With CD1&lt;br /&gt;.FileName = ""&lt;br /&gt;.Filter = "Bitmap files (*.bmp)*.bmp"&lt;br /&gt;.ShowSave&lt;br /&gt;End With&lt;/em&gt;&lt;br /&gt;Call ezVidCap1.SaveDIB(CD1.FileName)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Another feature in ezvideo is you can record the video. the size and compression of video you choose via ezvideo. The sample program and ezvideo active-x I put on &lt;a href="http://www.ziddu.com/download/3927145/CaptureVideoVB6.0.rar.html"&gt;here&lt;/a&gt; , you free to download, but you must register first to able download&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_MiEUaRgwgVU/SWhrqpuTqAI/AAAAAAAAAKE/T1Hwy3hwmMM/s1600-h/Capture+picture.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5289596142845405186" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 284px; CURSOR: hand; HEIGHT: 320px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_MiEUaRgwgVU/SWhrqpuTqAI/AAAAAAAAAKE/T1Hwy3hwmMM/s320/Capture+picture.JPG" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/54869802565233788-4024722857796235899?l=sidecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sidecode.blogspot.com/feeds/4024722857796235899/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=54869802565233788&amp;postID=4024722857796235899' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/4024722857796235899'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/4024722857796235899'/><link rel='alternate' type='text/html' href='http://sidecode.blogspot.com/2009/01/capture-video-and-picture-with-webcam.html' title='Capture video and picture with webcam on VB'/><author><name>ewin</name><uri>http://www.blogger.com/profile/05931947000278519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://1.bp.blogspot.com/_MiEUaRgwgVU/SXt85JrzqQI/AAAAAAAAALM/Pvb2FpRNpAY/S220/ewinlogo-colorsketch_out.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_MiEUaRgwgVU/SWhrqpuTqAI/AAAAAAAAAKE/T1Hwy3hwmMM/s72-c/Capture+picture.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-54869802565233788.post-4870397664980070803</id><published>2009-01-04T05:23:00.000-08:00</published><updated>2009-03-19T10:01:56.516-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vb6.0'/><category scheme='http://www.blogger.com/atom/ns#' term='paralel port'/><category scheme='http://www.blogger.com/atom/ns#' term='SMS'/><title type='text'>Control Paralel Port Via SMS</title><content type='html'>Herewith is another project on visual basic 6.0, the main function this project is to control relay or switch which connected via parallel port and command for activate the relay or switch via Short messaging service .&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_MiEUaRgwgVU/SWC4xd0tkfI/AAAAAAAAAJU/6JIHZgF6FWc/s1600-h/porton.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 240px;" src="http://1.bp.blogspot.com/_MiEUaRgwgVU/SWC4xd0tkfI/AAAAAAAAAJU/6JIHZgF6FWc/s320/porton.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5287429122491781618" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div align="justify"&gt;Sometimes we want remote the peripheral using SMS from faraway location. Start with that, I try utilize my old pc and old nokia to implement this project. the work system on this project is, the first we must have database for store phone number which this database is for verification. If a number try send a sms to pc. The program will search sender number on database. If exist  , the program will continue to parsing the content of message. If message is recognize and match with the list of command on system , the system will execute the message for active the parallel port.&lt;br /&gt; The list of command we must defined first. For example , the command “ON _0”, the meaning this command is for activate parallel port for data line number “0”. On parallel port we only have 8 data line.&lt;br /&gt;You have to think the value you give to the program as a binary number. Every bit of the binary number control one output bit. The following table describes the relation of the bits, parallel port output pins and the value of those bits. &lt;br /&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;Pin     2   3   4   5   6   7   8   9&lt;br /&gt;Bit      D0  D1  D2  D3  D4  D5  D6  D7&lt;br /&gt;Value   1   2   4   8   16  32  64  128&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;For example if you want to set pins 2 and 3 to logic 1 (led on) then you have to output value 1+2=3. If you want to set on pins 3,5 and 6 then you need to output value 2+8+16=26. In this way you can calculate the value for any bit combination you want to output.&lt;br /&gt;For SMS, the program using mfbus15.ocx for handle old nokia. The connection using serial port. Because using the old phone with the low speed The process for retrieve and sending data between phone and PC need a liltle long time. For the solutions we use the time counter to cheking message. Every 30 second program will be cheking the message to the phone.&lt;br /&gt;Some electronic circuit for interface parallel port needed to peripheral in this project. or you can create simple tet device with LED, like picture below.&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_MiEUaRgwgVU/SWC5Q7gYSQI/AAAAAAAAAJc/NYGMPlvGBOs/s1600-h/paralelport.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 214px; height: 151px;" src="http://2.bp.blogspot.com/_MiEUaRgwgVU/SWC5Q7gYSQI/AAAAAAAAAJc/NYGMPlvGBOs/s320/paralelport.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5287429663035508994" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="justify"&gt;The project write using Visual basic 6.0, and use MS Access database for store phone number and message queue. Some active-x  from another resource using in this project, Like ax-form extender for form resize,  Mfbus15.ocx for accesing nokia phone for sms, and DriverLINX Port I/O Driver for Win95 and WinNT from Scientific Software Tools, Inc. all that active-x is freeware and free to use.&lt;br /&gt;All active-x and code I put on  &lt;a href="http://www.ziddu.com/download/3927173/paralelportandsms.rar.html"&gt;here&lt;/a&gt; download section side code and  free to download but need registration first .&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/54869802565233788-4870397664980070803?l=sidecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sidecode.blogspot.com/feeds/4870397664980070803/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=54869802565233788&amp;postID=4870397664980070803' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/4870397664980070803'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/4870397664980070803'/><link rel='alternate' type='text/html' href='http://sidecode.blogspot.com/2009/01/control-paralel-port-via-sms.html' title='Control Paralel Port Via SMS'/><author><name>ewin</name><uri>http://www.blogger.com/profile/05931947000278519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://1.bp.blogspot.com/_MiEUaRgwgVU/SXt85JrzqQI/AAAAAAAAALM/Pvb2FpRNpAY/S220/ewinlogo-colorsketch_out.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_MiEUaRgwgVU/SWC4xd0tkfI/AAAAAAAAAJU/6JIHZgF6FWc/s72-c/porton.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-54869802565233788.post-453727223139800740</id><published>2009-01-01T05:42:00.000-08:00</published><updated>2009-03-19T10:03:31.470-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vb6.0'/><category scheme='http://www.blogger.com/atom/ns#' term='serial'/><category scheme='http://www.blogger.com/atom/ns#' term='SMS'/><title type='text'>Send and Receive SMS on VB with Mobile FBUS ActiveX</title><content type='html'>&lt;p&gt;One way to develop application on visual basic with capable send receive Short message service is using Mobile FBUS Active X. The Mobile FBUS ActiveX Control is a Visual Basic ActiveX control for use in Visual Basic 5.0 and above projects. The Mobile FBUS active-x connected to the serial port on PC through a FBUS  cable.&lt;/p&gt;&lt;p&gt;The Mobile FBUS works with Nokia GSM phones  with Nokia 51xx/61xx and 3210 models. The feature of mobile FBUS active-x is Free,  Send SMS messages, manipulate operator logos, use monitoring, access phonebook and  more.&lt;br /&gt;&lt;/p&gt;To Connecting program and phone device we just define which serial port to be used. And after that we just add line code to connecting. For example we use com1 for connecting ;&lt;br /&gt;&lt;p&gt;MobileFBUSControl1.Connect “COM1”&lt;/p&gt;&lt;p&gt;No Need mscomm to handle serial port, and never worry about PDU (protocol data unit) for messaging for sending and receive message.  For sending Message there a two optional type of message. The first is normal sending and other is Flash, when we use sending with flash message optional , the message will immediately show in main display of the telephone without user confirmation&lt;/p&gt;&lt;p&gt;For installation , you can download Mobile FBUS Active x from  &lt;a href="http://www.ziddu.com/download/3927176/smsvb6.0.rar.html"&gt;here&lt;/a&gt; . You need register for download, after that you can download that active-x.  The file download Consist 3 main file .  gjfbus15.dll ,MFBUS15.ocx,MFBUS15.oca, put all file under  &lt;windir&gt;\SYSTEM (NT users to &lt;windir&gt;\SYSTEM32): The control is shown as "Mobile FBUS control v1.5" in the Visual Basic components list. At  the zip file you can find sample program with Mobile FBUS active-X.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;windir&gt;&lt;windir&gt;I think is easy and very hepfull using Mobile FBUS active-x on my project, but disadvantage this active x is the speed very slow. Maybe, because the mobile FBUS active-x only supported old nokia phone so the active-x running to slow and sometimes can cause the PC to hang. For that case I try put sequence for cheking and sending message in long timer.&lt;br /&gt;&lt;/windir&gt;&lt;/windir&gt;&lt;/p&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_MiEUaRgwgVU/SVzIoAR9A-I/AAAAAAAAAJM/qMJse1s7s8Q/s1600-h/smspic.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 286px;" src="http://4.bp.blogspot.com/_MiEUaRgwgVU/SVzIoAR9A-I/AAAAAAAAAJM/qMJse1s7s8Q/s320/smspic.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5286320652221744098" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/54869802565233788-453727223139800740?l=sidecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sidecode.blogspot.com/feeds/453727223139800740/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=54869802565233788&amp;postID=453727223139800740' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/453727223139800740'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/453727223139800740'/><link rel='alternate' type='text/html' href='http://sidecode.blogspot.com/2009/01/send-and-receive-sms-on-vb-with-mobile.html' title='Send and Receive SMS on VB with Mobile FBUS ActiveX'/><author><name>ewin</name><uri>http://www.blogger.com/profile/05931947000278519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://1.bp.blogspot.com/_MiEUaRgwgVU/SXt85JrzqQI/AAAAAAAAALM/Pvb2FpRNpAY/S220/ewinlogo-colorsketch_out.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_MiEUaRgwgVU/SVzIoAR9A-I/AAAAAAAAAJM/qMJse1s7s8Q/s72-c/smspic.JPG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-54869802565233788.post-8163493931592718652</id><published>2008-12-14T14:42:00.000-08:00</published><updated>2009-03-19T10:05:21.419-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vb6.0'/><category scheme='http://www.blogger.com/atom/ns#' term='socket'/><title type='text'>Simple Programing Socket on Visual Basic 6.0</title><content type='html'>Sometimes we need write program on vb which the program is have capable to connect to the other pc via TCP-IP, such a program chat, billing system on internet café or other. On Visual Basic 6.0, we can write program like that with winsock component, which the default component for visual basic for socket implementation.&lt;br /&gt;On socket programming, there a two type for socket, the first is server socket and the other is Client socket. The server socket is used for server application and accept connection from a client. And the client socket is is used for program who want connect to the server.&lt;br /&gt;For the server socket the most parameter is Port Number , so if the client want connect to the server must connect to that port number.&lt;br /&gt;Is easy when write a socket server on visual basic, the first is add the winsock component to your form.  And activate this socket just like this :&lt;br /&gt;server(0).LocalPort = “5000”&lt;br /&gt;server(0).Listen&lt;br /&gt;with the code your winsock will be listen on your local IP and the port Number is 5000. you can test this socket or not, using command from console NETSTAT –an. If on your IP have port 5000 is listen, the meaning the socket is succefull open.&lt;br /&gt;And for the client, you must set parameter for Server IP and Port Number want to be connected. The code like below.&lt;br /&gt;client.Connect  127.0.0.1, 5000&lt;br /&gt;The meaning this code is your application will be connected to IP 127.0.0.1 on port number 5000.&lt;br /&gt;Simple sample for this socket I put on &lt;a href="http://www.ziddu.com/download/3927177/CHATSocketVB6.0.rar.html"&gt;here&lt;/a&gt; , is easy to understand from this sample.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_MiEUaRgwgVU/SUWMJwVsD2I/AAAAAAAAAHU/7M-qju2wyrE/s1600-h/chat-server1.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 304px;" src="http://3.bp.blogspot.com/_MiEUaRgwgVU/SUWMJwVsD2I/AAAAAAAAAHU/7M-qju2wyrE/s320/chat-server1.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5279780237384355682" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/54869802565233788-8163493931592718652?l=sidecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sidecode.blogspot.com/feeds/8163493931592718652/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=54869802565233788&amp;postID=8163493931592718652' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/8163493931592718652'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/8163493931592718652'/><link rel='alternate' type='text/html' href='http://sidecode.blogspot.com/2008/12/simple-programing-socket-on-visual.html' title='Simple Programing Socket on Visual Basic 6.0'/><author><name>ewin</name><uri>http://www.blogger.com/profile/05931947000278519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://1.bp.blogspot.com/_MiEUaRgwgVU/SXt85JrzqQI/AAAAAAAAALM/Pvb2FpRNpAY/S220/ewinlogo-colorsketch_out.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_MiEUaRgwgVU/SUWMJwVsD2I/AAAAAAAAAHU/7M-qju2wyrE/s72-c/chat-server1.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-54869802565233788.post-2205586060988744361</id><published>2008-12-07T22:16:00.000-08:00</published><updated>2009-03-19T10:07:28.968-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vb6.0'/><category scheme='http://www.blogger.com/atom/ns#' term='serial'/><title type='text'>Serial Port On Visual Basic 6.0</title><content type='html'>Maybe ? now Serial port is not to Popular like 5 years ago, Now USB replace for this port. All computer now equipped with  USB port on Motherboard, Serial port  go to legacy. Many device and peripheral using USB for standard connection to the PC. But not all device using USB, some modem and device still using Serial Port, commonly for device on ATM or on machinery.&lt;br /&gt;&lt;br /&gt;On Visual basic 6.0 , Serial Port handled by MSCOMM component. It’so easy to access serial port  on visual basic. when you starting a program with serial comm., just drag and drop mscomm component to your project. On mscomm now you must set parameter for this mscomm, such baud rate, port number, handshake and other.&lt;br /&gt;After you have set parameter for mscomm, now you can open this mscomm with this command:&lt;br /&gt;Mscomm1.portopen = true&lt;br /&gt;Now you can send the message or command to your device , for commonly if the device is modem ,you can test connection between serial port and modem, with command ATE1, if reply from modem is OK, the meaning connection between  Serial and modem is OK.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_MiEUaRgwgVU/STy8j2bInnI/AAAAAAAAAG0/Zru6EW3OwsM/s1600-h/main.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 261px;" src="http://2.bp.blogspot.com/_MiEUaRgwgVU/STy8j2bInnI/AAAAAAAAAG0/Zru6EW3OwsM/s320/main.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5277300187462147698" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;When I was college I write a simple program using serial port to make connection between 2 computer using serial and laser transceiver. You can have this sample by download on&lt;a href="http://www.ziddu.com/download/3839245/Serial.zip.html"&gt;here &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;the diagram and loopback test connection you can use this drawing.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_MiEUaRgwgVU/STy9Toy4lnI/AAAAAAAAAG8/nl17N9-xm5c/s1600-h/diagram.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 114px;" src="http://1.bp.blogspot.com/_MiEUaRgwgVU/STy9Toy4lnI/AAAAAAAAAG8/nl17N9-xm5c/s320/diagram.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5277301008437384818" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/54869802565233788-2205586060988744361?l=sidecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sidecode.blogspot.com/feeds/2205586060988744361/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=54869802565233788&amp;postID=2205586060988744361' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/2205586060988744361'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/2205586060988744361'/><link rel='alternate' type='text/html' href='http://sidecode.blogspot.com/2008/12/serial-port-on-visual-basic-60.html' title='Serial Port On Visual Basic 6.0'/><author><name>ewin</name><uri>http://www.blogger.com/profile/05931947000278519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://1.bp.blogspot.com/_MiEUaRgwgVU/SXt85JrzqQI/AAAAAAAAALM/Pvb2FpRNpAY/S220/ewinlogo-colorsketch_out.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_MiEUaRgwgVU/STy8j2bInnI/AAAAAAAAAG0/Zru6EW3OwsM/s72-c/main.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-54869802565233788.post-7525904223497984554</id><published>2008-12-06T19:32:00.000-08:00</published><updated>2009-01-23T22:04:55.237-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vb6.0'/><category scheme='http://www.blogger.com/atom/ns#' term='ATM Machine'/><title type='text'>Reliez</title><content type='html'>Relliez is a ATM-C (atm-controller) Simulator. Developed with Microsoft Visual Basic 6.0 and MS SQL Server  for  database. Relliez written for testing  and develop ATM application with TCP-IP protocol,  because on Reliez have many profile configuration for most bank on Indonesian.&lt;br /&gt;Relliez can handle connection until 20 connections of ATM, and on Relliez Built in with Card Management Simulator and profile management configurator.  For TCP-IP communication Relliez have four header type for Cheking the message.&lt;br /&gt;The feature of Reliez 1.0&lt;br /&gt;• Handle Connetion until 20 ATM, which each ATM used own port number, so one atm using one socket on reliez side.&lt;br /&gt;• TCP-IP Communication with 4 type of Header.&lt;br /&gt;• Support NDC and DDC emulation.&lt;br /&gt;• Profile Management, each ATM connected have own profile, so we can set-up the machine can be different with the other terminal on same time.&lt;br /&gt;• Built in with card management simulator&lt;br /&gt;• Built in with Security module simulator, with DES encryption.&lt;br /&gt;• ATM Monitoring, every status and error will displayed on status terminal.&lt;br /&gt;• Customize configuration for each ATM.&lt;br /&gt;• TCP-IP line Comm Monitoring&lt;br /&gt;• Data Traffic Console, for easy to showing the data between ATM And relliez.&lt;br /&gt;• Transaction traffic console.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_MiEUaRgwgVU/STtEmtyH7eI/AAAAAAAAAGs/_vXkVTEpxAo/s1600-h/reliez5.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 238px;" src="http://3.bp.blogspot.com/_MiEUaRgwgVU/STtEmtyH7eI/AAAAAAAAAGs/_vXkVTEpxAo/s320/reliez5.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5276886820310216162" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_MiEUaRgwgVU/STtEmKWmZ3I/AAAAAAAAAGk/aVe9yd7bBrc/s1600-h/reliez4.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 238px;" src="http://4.bp.blogspot.com/_MiEUaRgwgVU/STtEmKWmZ3I/AAAAAAAAAGk/aVe9yd7bBrc/s320/reliez4.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5276886810799531890" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_MiEUaRgwgVU/STtEmNFdh8I/AAAAAAAAAGc/y3KEcMP2stY/s1600-h/reliez3.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 238px;" src="http://3.bp.blogspot.com/_MiEUaRgwgVU/STtEmNFdh8I/AAAAAAAAAGc/y3KEcMP2stY/s320/reliez3.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5276886811532953538" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_MiEUaRgwgVU/STtEl3ppjRI/AAAAAAAAAGU/031_m2Z2-xc/s1600-h/reliez2.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 238px;" src="http://2.bp.blogspot.com/_MiEUaRgwgVU/STtEl3ppjRI/AAAAAAAAAGU/031_m2Z2-xc/s320/reliez2.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5276886805779156242" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_MiEUaRgwgVU/STtEl-4NBNI/AAAAAAAAAGM/KAQGPt_3jgw/s1600-h/reliez1.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 238px;" src="http://2.bp.blogspot.com/_MiEUaRgwgVU/STtEl-4NBNI/AAAAAAAAAGM/KAQGPt_3jgw/s320/reliez1.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5276886807719249106" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/54869802565233788-7525904223497984554?l=sidecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sidecode.blogspot.com/feeds/7525904223497984554/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=54869802565233788&amp;postID=7525904223497984554' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/7525904223497984554'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/7525904223497984554'/><link rel='alternate' type='text/html' href='http://sidecode.blogspot.com/2008/12/reliez.html' title='Reliez'/><author><name>ewin</name><uri>http://www.blogger.com/profile/05931947000278519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://1.bp.blogspot.com/_MiEUaRgwgVU/SXt85JrzqQI/AAAAAAAAALM/Pvb2FpRNpAY/S220/ewinlogo-colorsketch_out.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_MiEUaRgwgVU/STtEmtyH7eI/AAAAAAAAAGs/_vXkVTEpxAo/s72-c/reliez5.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-54869802565233788.post-6673335199932390177</id><published>2008-12-06T19:26:00.000-08:00</published><updated>2009-01-23T22:04:55.238-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vb6.0'/><category scheme='http://www.blogger.com/atom/ns#' term='ATM Machine'/><title type='text'>Reliez WebCam Journal.</title><content type='html'>Every ATM must be equipped with journal printer, which the function of device is to record every transaction and every activity on ATM. For example, when we open the door and brandkast, journal will write this activity on journal including day and time.&lt;br /&gt;On a transaction, journal will write this transaction regarding the command from ATM controller for this transaction. For example a journal record the transaction like below.&lt;br /&gt;936DF9F8&lt;br /&gt;RELIEZ AUTOCASH   &lt;br /&gt;ATM02101                  &lt;br /&gt;25/01/06 12:11:53         &lt;br /&gt;ATM SUNSET MALL           &lt;br /&gt;NO REF. : 870             &lt;br /&gt;BALANCE INQUIRY           &lt;br /&gt;ACC NO.:0214030438       &lt;br /&gt;BALANCE : $. 450,000   &lt;br /&gt;THANK YOU        &lt;br /&gt;FOR USING RELIEZ AUTOCASH  &lt;br /&gt;From that journal we know on 25/01/06 somebody with account 0214030438 have made balance inquiry transaction, but we don’t know somebody that a realy cardholder or not.&lt;br /&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;br /&gt;Beside that I try write small program, which this program capable to capture face of customer via webcam installed on atm and the result of picture integrated with  Journal Data, Like Below;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_MiEUaRgwgVU/STtCz34J_nI/AAAAAAAAAFc/7JYGmnC_1uk/s1600-h/280806-140344.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 240px;" src="http://2.bp.blogspot.com/_MiEUaRgwgVU/STtCz34J_nI/AAAAAAAAAFc/7JYGmnC_1uk/s320/280806-140344.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5276884847334915698" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The program very small and wite with MS Visual Basic 6.0.  The camera can using Standard Webcam which connected to USB Port on computer on ATM. The Application installed together with ATM application on same computer. Because the Reliez Webcam ATM is very small this not to disturb ATM Apllication on running system. When the application active, just running on task-bar.&lt;br /&gt;This is very quick and cheap solution for bank to get rich information from they ATM journal.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_MiEUaRgwgVU/STtDXuiirBI/AAAAAAAAAGE/lkJiOpMJWR0/s1600-h/taskbar.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 187px;" src="http://2.bp.blogspot.com/_MiEUaRgwgVU/STtDXuiirBI/AAAAAAAAAGE/lkJiOpMJWR0/s320/taskbar.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5276885463303629842" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_MiEUaRgwgVU/STtDXf6BEoI/AAAAAAAAAF8/KQI6YVTP7Rc/s1600-h/parameter1.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 246px;" src="http://4.bp.blogspot.com/_MiEUaRgwgVU/STtDXf6BEoI/AAAAAAAAAF8/KQI6YVTP7Rc/s320/parameter1.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5276885459375559298" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_MiEUaRgwgVU/STtDXGwwiHI/AAAAAAAAAF0/eRXkUbwURzM/s1600-h/parameter.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 246px;" src="http://2.bp.blogspot.com/_MiEUaRgwgVU/STtDXGwwiHI/AAAAAAAAAF0/eRXkUbwURzM/s320/parameter.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5276885452625840242" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_MiEUaRgwgVU/STtDXItvoSI/AAAAAAAAAFs/BP96NmRHVts/s1600-h/main2.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 231px; height: 320px;" src="http://1.bp.blogspot.com/_MiEUaRgwgVU/STtDXItvoSI/AAAAAAAAAFs/BP96NmRHVts/s320/main2.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5276885453150069026" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_MiEUaRgwgVU/STtDWvBvj3I/AAAAAAAAAFk/_-V0csssDwg/s1600-h/main1.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 231px; height: 320px;" src="http://3.bp.blogspot.com/_MiEUaRgwgVU/STtDWvBvj3I/AAAAAAAAAFk/_-V0csssDwg/s320/main1.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5276885446254628722" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/54869802565233788-6673335199932390177?l=sidecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sidecode.blogspot.com/feeds/6673335199932390177/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=54869802565233788&amp;postID=6673335199932390177' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/6673335199932390177'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/54869802565233788/posts/default/6673335199932390177'/><link rel='alternate' type='text/html' href='http://sidecode.blogspot.com/2008/12/reliez-webcam-journal.html' title='Reliez WebCam Journal.'/><author><name>ewin</name><uri>http://www.blogger.com/profile/05931947000278519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://1.bp.blogspot.com/_MiEUaRgwgVU/SXt85JrzqQI/AAAAAAAAALM/Pvb2FpRNpAY/S220/ewinlogo-colorsketch_out.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_MiEUaRgwgVU/STtCz34J_nI/AAAAAAAAAFc/7JYGmnC_1uk/s72-c/280806-140344.jpg' height='72' width='72'/><thr:total>1</thr:total></entry></feed>
