<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>IT Answers &#187; VB.NET</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/tag/vbnet/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers</link>
	<description></description>
	<lastBuildDate>Thu, 20 Jun 2013 02:09:04 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Arithmetic Overflow when manipulating as400 data using vb.net 2008</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/arithmetic-overflow-when-manipulating-as400-data-using-vbnet-2008/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/arithmetic-overflow-when-manipulating-as400-data-using-vbnet-2008/#comments</comments>
		<pubDate>Wed, 25 Apr 2012 16:44:10 +0000</pubDate>
		<dc:creator>Smccoy</dc:creator>
				<category><![CDATA[AS/400]]></category>
		<category><![CDATA[VB.NET]]></category>
		<category><![CDATA[Visual Basic]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I will include the code so you can see what I am talking about at the end. I have a vb.net 2008 app that I am writing. Everything seems to go fine until I add/edit/delete a record. I am getting the following error: Arithmetic Operation resulted in an overflow. If I ignore the error everything [...]]]></description>
				<content:encoded><![CDATA[<p>I will include the code so you can see what I am talking about at the end. I have a vb.net 2008 app that I am writing. Everything seems to go fine until I add/edit/delete a record. I am getting the following error: Arithmetic Operation resulted in an overflow. If I ignore the error everything runs as I expect it to. However, I cannot have an application with an error. To give you a better idea of what is going on, I will give an example. My app allows me to select a client and choose a product that the client offers. After choosing the product I am taken to a screen that will allow me to add/delete/edit the images and image info for that product. The data is displayed using a datagridview. At first I thought it might be a timestamp issue, but I am getting this error even when doing a simple delete. Below is the code where the error occurs.</p>
<div></div>
<div>
<pre></div>
<div>
<div>Try</div>
<div>                    If conn.State = ConnectionState.Open Then</div>
<div>                        conn.Close()</div>
<div>                    End If</div>
<div>                    ds3.Clear()</div>
<div>                    conn.Open()</div>
<div>                    'create new command variable</div>
<div>                    Dim cmdDelete As New OdbcCommand</div>
<div>                    Dim x As Integer</div>
<div>                    cmdDelete = conn.CreateCommand</div>
<div>                    'set the command text to the sql delete statement</div>
<div>                    cmdDelete.CommandText = "DELETE FROM " &#038; companyInfo &#038; ".ORPMIMGX WHERE " &#038; companyInfo &#038; ".ORPMIMGX.ORIMGNAME LIKE '" &#038; imgName.Trim() &#038; "'"</div>
<div>                    'executes the delete command</div>
<div>                    x = cmdDelete.ExecuteNonQuery()</div>
<div>                    pbImage.Image = Nothing</div>
<div>                    'deletes the image from the server</div>
<div>                    IO.File.Delete(tbImageLocation.Text &#038; imgName)</div>
<div>                    MsgBox("Image Deleted")</div>
<div>                    'reloads the datagridview with the new data</div>
<div>                Catch ex As Exception</div>
<div>                    'If there is an error above, display the error message</div>
<div>                    MsgBox("Error: " &#038; ex.Source &#038; ": " &#038; ex.Message, MsgBoxStyle.OkOnly, "Connection Error !!")</div>
<div>                Finally</div>
<div>                    reloadDG()</div>
<div>                    conn.Close()</div>
<div>                End Try</div>
</div>
<div></pre>
</div>
<div></div>
<div>If there is a better way for me to do this I am all ears. I just have to get this taken care off asap. I appreciate any help I can get on this. Thanks!</div>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/arithmetic-overflow-when-manipulating-as400-data-using-vbnet-2008/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>condition based color changing of labels</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/condition-based-color-changing-of-labels/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/condition-based-color-changing-of-labels/#comments</comments>
		<pubDate>Sat, 07 Apr 2012 05:52:16 +0000</pubDate>
		<dc:creator>Mahaveer</dc:creator>
				<category><![CDATA[VB.NET]]></category>
		<category><![CDATA[Visual Studio 2008 Professional]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Imports System.Data.OleDb Imports System.Data Imports System.Threading Imports System.Data.SqlClient Public Class Form1     Dim bm As BindingManagerBase     Dim ds As New DataSet     Dim adp As OleDb.OleDbDataAdapter     Sub showrecord(ByVal pos As Integer)         Button1.Text = ds.Tables(0).Rows(pos)("Question")         Button2.Text = ds.Tables(0).Rows(pos)("Option1")         [...]]]></description>
				<content:encoded><![CDATA[<div>
<pre></div>
<div>Imports System.Data.OleDb</div>
<div>Imports System.Data</div>
<div>Imports System.Threading</div>
<div>Imports System.Data.SqlClient</div>
<div>Public Class Form1</div>
<div>    Dim bm As BindingManagerBase</div>
<div>    Dim ds As New DataSet</div>
<div>    Dim adp As OleDb.OleDbDataAdapter</div>
<div></div>
<div>    Sub showrecord(ByVal pos As Integer)</div>
<div>        Button1.Text = ds.Tables(0).Rows(pos)("Question")</div>
<div>        Button2.Text = ds.Tables(0).Rows(pos)("Option1")</div>
<div>        Button3.Text = ds.Tables(0).Rows(pos)("Option2")</div>
<div>        Button4.Text = ds.Tables(0).Rows(pos)("Option3")</div>
<div>        Button5.Text = ds.Tables(0).Rows(pos)("Option4")</div>
<div>    End Sub</div>
<div></div>
<div>    Private Sub ButtonX1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonX1.Click</div>
<div>        LabelX1.BackColor = Color.White</div>
<div>		ds = New DataSet</div>
<div>        Dim dt As New DataTable</div>
<div>        Dim con As New OleDb.OleDbConnection("provider=sqloledb; server=MICROSOF-AE7D21SQLEXPRESS; database=mahaveer; userid=; password=;Trusted_Connection=yes;")</div>
<div>        con.Open()</div>
<div>        adp = New OleDb.OleDbDataAdapter("SELECT TOP 10 * FROM kbc ORDER By NEWID()", con)</div>
<div>        adp.Fill(ds, "kbc")</div>
<div>        bm = Me.BindingContext(ds, "kbc")</div>
<div>        bm.Position = 0</div>
<div>        showrecord(bm.Position)</div>
<div>    End Sub</div>
<div></div>
<div>    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click</div>
<div>        Dim result As DialogResult = MessageBox.Show("Are You Sure", "Millionaire", MessageBoxButtons.OKCancel, MessageBoxIcon.Question)</div>
<div>        If result = Windows.Forms.DialogResult.OK Then</div>
<div>            If Button2.Text = Button6.Text Then</div>
<div>                bm.Position += 1</div>
<div>                showrecord(bm.Position)</div>
<div>            Else</div>
<div>                Label2.Text = "Sorry Wrong Answer"</div>
<div>            End If</div>
<div>        End If</div>
<div>    End Sub</div>
<div></div>
<div>    Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click</div>
<div>       Dim result As DialogResult = MessageBox.Show("Are You Sure", "Millionaire", MessageBoxButtons.OKCancel, MessageBoxIcon.Question)</div>
<div>        If result = Windows.Forms.DialogResult.OK Then</div>
<div>            If Button3.Text = Button6.Text Then</div>
<div>                bm.Position += 1</div>
<div>                showrecord(bm.Position)</div>
<div>            Else</div>
<div>                Label2.Text = "Sorry Wrong Answer"</div>
<div>            End If</div>
<div>        End If</div>
<div>    End Sub</div>
<div></div>
<div>    Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click</div>
<div>        Dim result As DialogResult = MessageBox.Show("Are You Sure", "Millionaire", MessageBoxButtons.OKCancel, MessageBoxIcon.Question)</div>
<div>        If result = Windows.Forms.DialogResult.OK Then</div>
<div>            If Button4.Text = Button6.Text Then</div>
<div>                bm.Position += 1</div>
<div>                showrecord(bm.Position)</div>
<div>            Else</div>
<div>                Label2.Text = "Sorry Wrong Answer"</div>
<div>            End If</div>
<div>        End If</div>
<div>    End Sub</div>
<div></div>
<div>    Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click</div>
<div>         Dim result As DialogResult = MessageBox.Show("Are You Sure", "Millionaire", MessageBoxButtons.OKCancel, MessageBoxIcon.Question)</div>
<div>        If result = Windows.Forms.DialogResult.OK Then</div>
<div>            If Button5.Text = Button6.Text Then</div>
<div>                bm.Position += 1</div>
<div>                showrecord(bm.Position)</div>
<div>            Else</div>
<div>                Label2.Text = "Sorry Wrong Answer"</div>
<div>            End If</div>
<div>        End If</div>
<div>    End Sub</div>
<div>End Class</div>
<div></pre>
</div>
<div>i have written a quiz game in this code. i have 12 labels from LabelX1 to LabelX12.</div>
<div>here i want their background color white one by one when a user click on the correct answer.</div>
<div>how can i do that ?</div>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/condition-based-color-changing-of-labels/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Insert values into database from form VB.NET</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/insert-values-into-database-from-form-vbnet/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/insert-values-into-database-from-form-vbnet/#comments</comments>
		<pubDate>Sat, 24 Mar 2012 09:52:40 +0000</pubDate>
		<dc:creator>Darthswift00</dc:creator>
				<category><![CDATA[SQL Database]]></category>
		<category><![CDATA[VB.NET]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hi guys, Having abit of trouble with inserting values that i have in my form into my sql database. Basically it supposed to calculate a customer who borrowed a DVD or CD. I select the date that the customer brings the returned item by selecting a datepicker. The calculation works fine, but i want to [...]]]></description>
				<content:encoded><![CDATA[<p>Hi guys, Having abit of trouble with inserting values that i have in my form into my sql database.<br />
Basically it supposed to calculate a customer who borrowed a DVD or CD. I select the date that the customer brings the returned item by selecting a datepicker. The calculation works fine, but i want to insert 3 values into my database under column names that i already have. The table name is Trnsaction. it has the following coloumn names:<br />
Trnsaction_id<br />
Member_id<br />
Album_id<br />
issue_date<br />
return_date<br />
members_date<br />
days_delayed<br />
fine<br />
The last 3 coloumns(members_date ,days_delayed ,fine) are values i wish to add to my database. The values days_delayed and fine only pop up when i have selected my date (thats members_date) form the datepicker and selected the calculate button<br />
How can i insert these values to my existing database?<br />
Thanks</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/insert-values-into-database-from-form-vbnet/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>DPI settings different on user machines</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/dpi-settings-different-on-user-machines/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/dpi-settings-different-on-user-machines/#comments</comments>
		<pubDate>Wed, 14 Mar 2012 15:16:05 +0000</pubDate>
		<dc:creator>Cevonne</dc:creator>
				<category><![CDATA[DPI]]></category>
		<category><![CDATA[VB.NET]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[How do I fix my VB.Net application to handle different DPI settings on the users machine?]]></description>
				<content:encoded><![CDATA[<p>How do I fix my VB.Net application to handle different DPI settings on the users machine?</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/dpi-settings-different-on-user-machines/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vb.net telnet</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/vbnet-telnet/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/vbnet-telnet/#comments</comments>
		<pubDate>Wed, 29 Feb 2012 08:41:42 +0000</pubDate>
		<dc:creator>Hil</dc:creator>
				<category><![CDATA[Cisco router]]></category>
		<category><![CDATA[VB.NET]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[my job is to telnet a cisco router, pass the credentiials and build configuration. after building the same, i have to search for a line in the config. i want to automate this whole pocess with vb.net. help me]]></description>
				<content:encoded><![CDATA[<p>my job is to telnet a cisco router, pass the credentiials and build configuration. after building the same, i have to search for a line in the config. i want to automate this whole pocess with vb.net.</p>
<p>help me</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/vbnet-telnet/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Need a little VB.Net help -2</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/need-a-little-vbnet-help-2/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/need-a-little-vbnet-help-2/#comments</comments>
		<pubDate>Sat, 28 Jan 2012 23:36:54 +0000</pubDate>
		<dc:creator>philpl1jb</dc:creator>
				<category><![CDATA[Random]]></category>
		<category><![CDATA[Random Number Generator]]></category>
		<category><![CDATA[VB Functions]]></category>
		<category><![CDATA[VB.NET]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[New Answer by]]></description>
				<content:encoded><![CDATA[New Answer by ]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/need-a-little-vbnet-help-2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to make my VB.Net application communicate with a barcode scanner</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-make-my-vbnet-application-communicate-with-a-barcode-scanner/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/how-to-make-my-vbnet-application-communicate-with-a-barcode-scanner/#comments</comments>
		<pubDate>Fri, 20 Jan 2012 11:47:46 +0000</pubDate>
		<dc:creator>BrownAsakpa</dc:creator>
				<category><![CDATA[VB.NET]]></category>
		<category><![CDATA[VB.NET 2008]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Question Edited by deanco]]></description>
				<content:encoded><![CDATA[Question Edited by deanco]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/how-to-make-my-vbnet-application-communicate-with-a-barcode-scanner/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Need a little VB.Net help</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/need-a-little-vbnet-help/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/need-a-little-vbnet-help/#comments</comments>
		<pubDate>Mon, 16 Jan 2012 02:57:17 +0000</pubDate>
		<dc:creator>philpl1jb</dc:creator>
				<category><![CDATA[Random]]></category>
		<category><![CDATA[VB.NET]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[New Answer by]]></description>
				<content:encoded><![CDATA[New Answer by ]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/need-a-little-vbnet-help/feed/</wfw:commentRss>
		<slash:comments>50</slash:comments>
		</item>
		<item>
		<title>Visual Basic and SQL database design</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/database-design-3/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/database-design-3/#comments</comments>
		<pubDate>Sat, 10 Sep 2011 06:56:27 +0000</pubDate>
		<dc:creator>msmj86</dc:creator>
				<category><![CDATA[Database design]]></category>
		<category><![CDATA[SQL Database]]></category>
		<category><![CDATA[VB.NET]]></category>
		<category><![CDATA[Visual Basic]]></category>
		<category><![CDATA[Visual Basic .NET]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[i have vb.net &#038; sql  application sql database have one tabe with 37 column (there is no normalization) after runing the application more than three million of rows will enterd by users . I&#8217;m afraid  it Will give a bad performance  or have (out of memory massge) so i Made a solution (i make [strong]Queries(with vb.net  wich [...]]]></description>
				<content:encoded><![CDATA[<p>i have vb.net &#038; sql  application<br/><br/> sql database have one tabe with 37 column (there is no normalization)<br/><br/> after runing the application more than three million of rows will enterd by users .<br/><br/> I&#8217;m afraid  it Will give a bad performance  or have (out of memory massge)<br/><br/> so i Made a solution (i make [strong]Queries(with vb.net  wich will returnd only 800 row of data at atime[/strong])(max row size 1200)  <br/><br/>  is that the perfect solution .<br/><br/> plz  heeeeeeeeeeeeeeeelp<br/><br/>  <br/><br/></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/database-design-3/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>How to use an object to travel data from one form to another</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-use-an-object-to-travel-data-from-one-form-to-another/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/how-to-use-an-object-to-travel-data-from-one-form-to-another/#comments</comments>
		<pubDate>Wed, 07 Sep 2011 07:18:32 +0000</pubDate>
		<dc:creator>EhteshamSiddiqui</dc:creator>
				<category><![CDATA[DataGrid]]></category>
		<category><![CDATA[DataGridView]]></category>
		<category><![CDATA[VB DataGrid]]></category>
		<category><![CDATA[VB.NET]]></category>
		<category><![CDATA[Visual Basic .NET]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hi, I have two forms.Both having DatagridView.There are two comboboxes to filter the record from Database and fill in Datagridview.My requirement is when all the data is populated in DataGrid after selecting the comboboxes and when the user clicks on Delete. The comboboxes and Datagrid on second form should have the same values as that [...]]]></description>
				<content:encoded><![CDATA[<div>Hi,</div>
<div>I have two forms.Both having DatagridView.There are two comboboxes to filter the record from Database and fill in Datagridview.My requirement is when all the data is populated in DataGrid after selecting the comboboxes and when the user clicks on Delete.</div>
<div>The comboboxes and Datagrid on second form should have the same values as that was on first form.The names of my Comboboxes and Datagridview are same on both the forms</div>
<div>Below is the code my Datagrid view getting populated in First Form.</div>
<div>
<pre>Sub GetData(ByVal StrQuery As String)</div>
<div>        If CBMedium.Text &lt;&gt; "" And CBClass.Text &lt;&gt; "" Then</div>
<div>            DGVStudRecord.Rows.Clear()</div>
<div>            con = DBConnect()</div>
<div>            cmd = New SqlCommand(StrQuery, con)</div>
<div>            dr = cmd.ExecuteReader</div>
<div>            If dr.HasRows Then</div>
<div>                While dr.Read</div>
<div>                  </div>
<div>                    DGVStudRecord.Rows.Add(dr(0), dr(1), dr(2), dr(3), dr(4), dr(5))</div>
<div>                End While</div>
<div>            End If</div>
<div>            con.Close()</div>
<div>        </div>
<div>        End If</div>
<div>    End Sub</pre>
</div>
<div>Please suggest how can i populate my datagrid in second form by using the Data populated in Datagrid of Firrt Form</div>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/how-to-use-an-object-to-travel-data-from-one-form-to-another/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/20 queries in 0.025 seconds using memcached
Object Caching 895/984 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-06-20 05:05:51 -->