<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:series="http://unfoldingneurons.com/"
		>
<channel>
	<title>Comments on: Accessing MySQL on VB.NET using MySQL Connector/Net, Part VIII: Display Result on GUI</title>
	<atom:link href="http://www.linglom.com/2009/05/29/accessing-mysql-on-vbnet-using-mysql-connectornet-part-viii-display-result-on-gui/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linglom.com/2009/05/29/accessing-mysql-on-vbnet-using-mysql-connectornet-part-viii-display-result-on-gui/</link>
	<description>Just another IT weblog</description>
	<lastBuildDate>Fri, 30 Jul 2010 22:18:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: linglom</title>
		<link>http://www.linglom.com/2009/05/29/accessing-mysql-on-vbnet-using-mysql-connectornet-part-viii-display-result-on-gui/comment-page-1/#comment-6534</link>
		<dc:creator>linglom</dc:creator>
		<pubDate>Mon, 07 Jun 2010 03:53:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.linglom.com/?p=797#comment-6534</guid>
		<description>Hi, Dipta
You are a good observer. This post was added to the series later. And my testing environment has changed so I&#039;ve added another connection string to make the code work. 
For the second question, I have comment out those codes which are added on the previous part because I want you to see only the result from this part.

Hi, Sabuj and Dipta
Can you show more detail of the error message?</description>
		<content:encoded><![CDATA[<p>Hi, Dipta<br />
You are a good observer. This post was added to the series later. And my testing environment has changed so I&#8217;ve added another connection string to make the code work.<br />
For the second question, I have comment out those codes which are added on the previous part because I want you to see only the result from this part.</p>
<p>Hi, Sabuj and Dipta<br />
Can you show more detail of the error message?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: linglom fan</title>
		<link>http://www.linglom.com/2009/05/29/accessing-mysql-on-vbnet-using-mysql-connectornet-part-viii-display-result-on-gui/comment-page-1/#comment-6506</link>
		<dc:creator>linglom fan</dc:creator>
		<pubDate>Thu, 27 May 2010 07:18:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.linglom.com/?p=797#comment-6506</guid>
		<description>...please help me, i have a big problem...urgent!!!</description>
		<content:encoded><![CDATA[<p>&#8230;please help me, i have a big problem&#8230;urgent!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sabuj and dipta</title>
		<link>http://www.linglom.com/2009/05/29/accessing-mysql-on-vbnet-using-mysql-connectornet-part-viii-display-result-on-gui/comment-page-1/#comment-6487</link>
		<dc:creator>sabuj and dipta</dc:creator>
		<pubDate>Fri, 21 May 2010 05:50:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.linglom.com/?p=797#comment-6487</guid>
		<description>HELLO SIR;
i am using mysql sever 5.1 and visual studio 2010 express edition n working on VB
i stucked to a problem at the stage of &quot;Retrieve data from database&quot;
i.e 
Imports MySql.Data.MySqlClient

Public Class Form1

    Private connStr As String = &quot;Database=abc;&quot; &amp; _
                    &quot;Data Source=169.254.248.27;&quot; &amp; _
                    &quot;User Id=sd;Password=123;&quot; &amp; _
                    &quot;Connection Timeout=20&quot;

    Private Sub Form1_Load(ByVal sender As System.Object, _
            ByVal e As System.EventArgs) Handles MyBase.Load

        retriveData()

    End Sub

    Public Sub retriveData()
        Try
            Dim query As String = &quot;SELECT * FROM stock_sale&quot;
            Dim connection As New MySqlConnection(connStr)
            Dim cmd As New MySqlCommand(query, connection)

            connection.Open()

            Dim reader As MySqlDataReader
            reader = cmd.ExecuteReader()

            While reader.Read()
                Console.WriteLine((reader.GetString(0) &amp; &quot;, &quot; &amp; _
                    reader.GetString(1)))
            End While

            reader.Close()
            connection.Close()
        Catch ex As Exception
            Console.WriteLine(ex.Message)
        End Try
    End Sub
End Class

after doing all these the output is not showing according to you
it&#039;s showing:

A first chance exception of type &#039;MySql.Data.MySqlClient.MySqlException&#039; occurred in MySql.Data.dll
A first chance exception of type &#039;MySql.Data.MySqlClient.MySqlException&#039; occurred in MySql.Data.dll

After running the code it&#039;s not retrieving data from the Mysql server where i had created a directory &quot;abc&quot; and table &quot;stock_sale&quot;.

PLZZZZ SIR HELP US OUT AS WE R BEGINNERS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</description>
		<content:encoded><![CDATA[<p>HELLO SIR;<br />
i am using mysql sever 5.1 and visual studio 2010 express edition n working on VB<br />
i stucked to a problem at the stage of &#8220;Retrieve data from database&#8221;<br />
i.e<br />
Imports MySql.Data.MySqlClient</p>
<p>Public Class Form1</p>
<p>    Private connStr As String = &#8220;Database=abc;&#8221; &amp; _<br />
                    &#8220;Data Source=169.254.248.27;&#8221; &amp; _<br />
                    &#8220;User Id=sd;Password=123;&#8221; &amp; _<br />
                    &#8220;Connection Timeout=20&#8243;</p>
<p>    Private Sub Form1_Load(ByVal sender As System.Object, _<br />
            ByVal e As System.EventArgs) Handles MyBase.Load</p>
<p>        retriveData()</p>
<p>    End Sub</p>
<p>    Public Sub retriveData()<br />
        Try<br />
            Dim query As String = &#8220;SELECT * FROM stock_sale&#8221;<br />
            Dim connection As New MySqlConnection(connStr)<br />
            Dim cmd As New MySqlCommand(query, connection)</p>
<p>            connection.Open()</p>
<p>            Dim reader As MySqlDataReader<br />
            reader = cmd.ExecuteReader()</p>
<p>            While reader.Read()<br />
                Console.WriteLine((reader.GetString(0) &amp; &#8220;, &#8221; &amp; _<br />
                    reader.GetString(1)))<br />
            End While</p>
<p>            reader.Close()<br />
            connection.Close()<br />
        Catch ex As Exception<br />
            Console.WriteLine(ex.Message)<br />
        End Try<br />
    End Sub<br />
End Class</p>
<p>after doing all these the output is not showing according to you<br />
it&#8217;s showing:</p>
<p>A first chance exception of type &#8216;MySql.Data.MySqlClient.MySqlException&#8217; occurred in MySql.Data.dll<br />
A first chance exception of type &#8216;MySql.Data.MySqlClient.MySqlException&#8217; occurred in MySql.Data.dll</p>
<p>After running the code it&#8217;s not retrieving data from the Mysql server where i had created a directory &#8220;abc&#8221; and table &#8220;stock_sale&#8221;.</p>
<p>PLZZZZ SIR HELP US OUT AS WE R BEGINNERS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dipta</title>
		<link>http://www.linglom.com/2009/05/29/accessing-mysql-on-vbnet-using-mysql-connectornet-part-viii-display-result-on-gui/comment-page-1/#comment-6478</link>
		<dc:creator>Dipta</dc:creator>
		<pubDate>Thu, 20 May 2010 16:18:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.linglom.com/?p=797#comment-6478</guid>
		<description>Sir,
 May I ask u that,
   At 5th step u&#039;ve declared,&#039;Private connStr as string ....&#039; But at 7th step u&#039;ve added another one &#039;Private connStr2 as string ...&#039;, Why?
   At 5th step you&#039;ve made some &#039;code&#039; to &#039;comment&#039;.Then what is the use of &#039;Function ...&#039; procedure?
   I need your help.</description>
		<content:encoded><![CDATA[<p>Sir,<br />
 May I ask u that,<br />
   At 5th step u&#8217;ve declared,&#8217;Private connStr as string &#8230;.&#8217; But at 7th step u&#8217;ve added another one &#8216;Private connStr2 as string &#8230;&#8217;, Why?<br />
   At 5th step you&#8217;ve made some &#8216;code&#8217; to &#8216;comment&#8217;.Then what is the use of &#8216;Function &#8230;&#8217; procedure?<br />
   I need your help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: linglom</title>
		<link>http://www.linglom.com/2009/05/29/accessing-mysql-on-vbnet-using-mysql-connectornet-part-viii-display-result-on-gui/comment-page-1/#comment-6473</link>
		<dc:creator>linglom</dc:creator>
		<pubDate>Thu, 20 May 2010 14:02:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.linglom.com/?p=797#comment-6473</guid>
		<description>Hi, Doug
If there is nothing shows on the datagrid, you should check if there is any exception show on the output console window.</description>
		<content:encoded><![CDATA[<p>Hi, Doug<br />
If there is nothing shows on the datagrid, you should check if there is any exception show on the output console window.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dipta</title>
		<link>http://www.linglom.com/2009/05/29/accessing-mysql-on-vbnet-using-mysql-connectornet-part-viii-display-result-on-gui/comment-page-1/#comment-6468</link>
		<dc:creator>Dipta</dc:creator>
		<pubDate>Wed, 19 May 2010 15:58:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.linglom.com/?p=797#comment-6468</guid>
		<description>Thank you TEACHER.</description>
		<content:encoded><![CDATA[<p>Thank you TEACHER.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug</title>
		<link>http://www.linglom.com/2009/05/29/accessing-mysql-on-vbnet-using-mysql-connectornet-part-viii-display-result-on-gui/comment-page-1/#comment-6458</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Mon, 17 May 2010 04:48:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.linglom.com/?p=797#comment-6458</guid>
		<description>Hi I tried this in vb2010 express and nothing pops up in datagridview any suggestions??</description>
		<content:encoded><![CDATA[<p>Hi I tried this in vb2010 express and nothing pops up in datagridview any suggestions??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bernard</title>
		<link>http://www.linglom.com/2009/05/29/accessing-mysql-on-vbnet-using-mysql-connectornet-part-viii-display-result-on-gui/comment-page-1/#comment-6306</link>
		<dc:creator>Bernard</dc:creator>
		<pubDate>Wed, 21 Apr 2010 22:39:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.linglom.com/?p=797#comment-6306</guid>
		<description>Thanks Man, Good work.....</description>
		<content:encoded><![CDATA[<p>Thanks Man, Good work&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nono</title>
		<link>http://www.linglom.com/2009/05/29/accessing-mysql-on-vbnet-using-mysql-connectornet-part-viii-display-result-on-gui/comment-page-1/#comment-6003</link>
		<dc:creator>nono</dc:creator>
		<pubDate>Tue, 16 Feb 2010 10:24:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.linglom.com/?p=797#comment-6003</guid>
		<description>That is great help, it does the trick,
I&#039;ve added :

Chart1.Series.Clear()

in oder to get read of the &quot;Series1&quot; which was defaulting.

Thank very much for this, very usefull.</description>
		<content:encoded><![CDATA[<p>That is great help, it does the trick,<br />
I&#8217;ve added :</p>
<p>Chart1.Series.Clear()</p>
<p>in oder to get read of the &#8220;Series1&#8243; which was defaulting.</p>
<p>Thank very much for this, very usefull.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: linglom</title>
		<link>http://www.linglom.com/2009/05/29/accessing-mysql-on-vbnet-using-mysql-connectornet-part-viii-display-result-on-gui/comment-page-1/#comment-5997</link>
		<dc:creator>linglom</dc:creator>
		<pubDate>Tue, 16 Feb 2010 02:46:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.linglom.com/?p=797#comment-5997</guid>
		<description>Hi, Haxorz
The error message should tells exactly which namespace is not valid. It could be MySQL.Data, have you add the reference?</description>
		<content:encoded><![CDATA[<p>Hi, Haxorz<br />
The error message should tells exactly which namespace is not valid. It could be MySQL.Data, have you add the reference?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
