<?xml version="1.0" encoding="utf-8"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>DaniWeb IT Discussion Community - VB.NET</title>
		<link>http://www.daniweb.com/forums/</link>
		<description><![CDATA[Our VB.NET forum is the place for Q&A-style discussions related to this language. Note that we also have a VB 6 forum within the Software Development category in addition to an ASP.NET forum within the Web Development category.]]></description>
		<language>en-US</language>
		<lastBuildDate>Thu, 10 Dec 2009 06:26:53 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.daniweb.com/alphaimages/misc/rss.jpg</url>
			<title>DaniWeb IT Discussion Community - VB.NET</title>
			<link>http://www.daniweb.com/forums/</link>
		</image>
		<item>
			<title>set object to instance type</title>
			<link>http://www.daniweb.com/forums/thread245185.html</link>
			<pubDate>Thu, 10 Dec 2009 02:41:58 GMT</pubDate>
			<description>any one knows how to set an excel object to instance type....thanks</description>
			<content:encoded><![CDATA[<div>any one knows how to set an excel object to instance type....thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>wiss.dev</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread245185.html</guid>
		</item>
		<item>
			<title>How to RegEx 20 real numbers separated with commas?</title>
			<link>http://www.daniweb.com/forums/thread245168.html</link>
			<pubDate>Wed, 09 Dec 2009 23:37:53 GMT</pubDate>
			<description><![CDATA[hi, 
 
I worked around to modifying regular expression below but i could't get what I need. I google it, many things found but not for what i want. 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>hi,<br />
<br />
I worked around to modifying regular expression below but i could't get what I need. I google it, many things found but not for what i want.<br />
<br />
 <pre style="margin:20px; line-height:13px">Dim valid AS Boolean = Regex.IsMatch(TextBox1.Text, &quot;^(,?\d+){0,20}$&quot;)</pre>Allow numbers exactly like 32,1,6,32,12,21,21,54,675,8,4,3,2,9,0,21,21,21,43,744 in TextBox1. Perfect.<br />
<br />
NOW i want 20 numbers as but this time &quot;real numbers&quot; (of type double), separated by commas in TextBox2 like<br />
(32.43343,1.43,6.0,32.434334,12.43432,21.8776,21.89,54.22,675.1232,8.453,4.5454,3.87,2.00,9.65,0.0,21.12,21.2,21.1,43.5,744.3633).<br />
<br />
Please help me out.<br />
<br />
thanks ...</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>ntagrafix</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread245168.html</guid>
		</item>
		<item>
			<title>SOmeone PLSSS help me on thiss vb question..</title>
			<link>http://www.daniweb.com/forums/thread245101.html</link>
			<pubDate>Wed, 09 Dec 2009 18:15:45 GMT</pubDate>
			<description>You are required to create a Windows Application to identify the occurrence of character of an input string.   
 
  
 
For example,  
 
  
 
I love vb.</description>
			<content:encoded><![CDATA[<div>You are required to create a Windows Application to identify the occurrence of character of an input string.  <br />
<br />
 <br />
<br />
For example, <br />
<br />
 <br />
<br />
I love vb.<br />
<br />
 <br />
<br />
I = 1<br />
<br />
l = 1<br />
<br />
o = 1<br />
<br />
v = 2<br />
<br />
e = 1<br />
<br />
b = 1<br />
<br />
 <br />
<br />
The result should be display on a listbox.<br />
<br />
 <br />
<br />
Note: The program are case sensitive, ie. ‘E’ is different with character ‘e’<br />
<br />
p/s: i really need someone to help me settle this..plisss</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>namazee</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread245101.html</guid>
		</item>
		<item>
			<title>Input Help, please?</title>
			<link>http://www.daniweb.com/forums/thread245075.html</link>
			<pubDate>Wed, 09 Dec 2009 16:42:11 GMT</pubDate>
			<description><![CDATA[I posted a question yesterday for the beginning of this code and I'm not exactly sure what it is I'm doing wrong. 
Just a quick summary- I'm trying to make a zodiac calculator, well five of them, but the formatting will be similar, so if I get one right, then the rest should be easy. 
But I keep...]]></description>
			<content:encoded><![CDATA[<div>I posted a question yesterday for the beginning of this code and I'm not exactly sure what it is I'm doing wrong.<br />
Just a quick summary- I'm trying to make a zodiac calculator, well five of them, but the formatting will be similar, so if I get one right, then the rest should be easy.<br />
But I keep getting the error message <br />
'A just chance exception of type &quot;System.FormatException' occured in mscorlib.dll'<br />
'FormatException was unhandled.' - InputString was not in a correct format.<br />
What other format could I use instead?<br />
Here's what I have:<br />
 <pre style="margin:20px; line-height:13px">&nbsp;  Sub DayYearTextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtDayC.TextChanged, txtYearC.TextChanged<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim day As Integer = 1 &lt;= 31<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim year As Integer = 1900 &lt;= 2015<br />
&nbsp; &nbsp; &nbsp; &nbsp; day = Convert.ToInt32(txtDayC.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; year = Convert.ToInt32(txtYearC.Text)<br />
'It hightlights the year as being the error, but I don't know how else to declare it.'<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Sub cboMonthC_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cboMonthC.SelectedIndexChanged<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim strMonth As String = &quot;&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; strMonth = cboMonthC.Items(0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; strMonth = cboMonthC.Items(1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; strMonth = cboMonthC.Items(2)<br />
&nbsp; &nbsp; &nbsp; &nbsp; strMonth = cboMonthC.Items(3)<br />
&nbsp; &nbsp; &nbsp; &nbsp; strMonth = cboMonthC.Items(4)<br />
&nbsp; &nbsp; &nbsp; &nbsp; strMonth = cboMonthC.Items(5)<br />
&nbsp; &nbsp; &nbsp; &nbsp; strMonth = cboMonthC.Items(6)<br />
&nbsp; &nbsp; &nbsp; &nbsp; strMonth = cboMonthC.Items(7)<br />
&nbsp; &nbsp; &nbsp; &nbsp; strMonth = cboMonthC.Items(8)<br />
&nbsp; &nbsp; &nbsp; &nbsp; strMonth = cboMonthC.Items(9)<br />
&nbsp; &nbsp; &nbsp; &nbsp; strMonth = cboMonthC.Items(10)<br />
&nbsp; &nbsp; &nbsp; &nbsp; strMonth = cboMonthC.Items(11)<br />
<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Private Sub btnCalC_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalC.Click<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; If cboMonthC.Items(0) AndAlso txtDayC.Text &gt;= 21 OrElse cboMonthC.Items(1) AndAlso txtDayC.Text &lt;= 17 Then lblOutC.Text = (&quot;Green Dragon.&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; If cboMonthC.Items(1) AndAlso txtDayC.Text &gt;= 18 OrElse cboMonthC.Items(2) AndAlso txtDayC.Text &lt;= 17 Then lblOutC.Text = (&quot;Sea Horse.&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; If cboMonthC.Items(2) AndAlso txtDayC.Text &gt;= 18 OrElse cboMonthC.Items(3) AndAlso txtDayC.Text &lt;= 14 Then lblOutC.Text = (&quot;Hawk.&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; If cboMonthC.Items(3) AndAlso txtDayC.Text &gt;= 15 OrElse cboMonthC.Items(4) AndAlso txtDayC.Text &lt;= 12 Then lblOutC.Text = (&quot;Sea Serpent.&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; If cboMonthC.Items(4) AndAlso txtDayC.Text &gt;= 13 OrElse cboMonthC.Items(5) AndAlso txtDayC.Text &lt;= 9 Then lblOutC.Text = (&quot;Chalice.&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; If cboMonthC.Items(5) AndAlso txtDayC.Text &gt;= 10 OrElse cboMonthC.Items(6) AndAlso txtDayC.Text &lt;= 7 Then lblOutC.Text = (&quot;Golden Wheel.&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; If cboMonthC.Items(6) AndAlso txtDayC.Text &gt;= 8 OrElse cboMonthC.Items(7) AndAlso txtDayC.Text &lt;= 4 Then lblOutC.Text = (&quot;Flaming Spear.&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; If cboMonthC.Items(7) AndAlso txtDayC.Text &gt;= 5 OrElse cboMonthC.Items(8) AndAlso txtDayC.Text &lt;= 1 Then lblOutC.Text = (&quot;Rainbow Salmon.&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; If cboMonthC.Items(8) AndAlso txtDayC.Text &gt;= 2 OrElse cboMonthC.Items(8) AndAlso txtDayC.Text &lt;= 29 Then lblOutC.Text = (&quot;White Swan.&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; If cboMonthC.Items(8) AndAlso txtDayC.Text &gt;= 30 OrElse cboMonthC.Items(9) AndAlso txtDayC.Text &lt;= 27 Then lblOutC.Text = (&quot;Butterfly.&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; If cboMonthC.Items(9) AndAlso txtDayC.Text &gt;= 28 OrElse cboMonthC.Items(10) AndAlso txtDayC.Text &lt;= 24 Then lblOutC.Text = (&quot;White Hound.&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; If cboMonthC.Items(10) AndAlso txtDayC.Text &gt;= 25 OrElse cboMonthC.Items(11) AndAlso txtDayC.Text &lt;= 23 Then lblOutC.Text = (&quot;Raven.&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; If cboMonthC.Items(11) AndAlso txtDayC.Text &gt;= 24 OrElse cboMonthC.Items(0) AndAlso txtDayC.Text &lt;= 21 Then lblOutC.Text = (&quot;White Stag.&quot;)<br />
<br />
<br />
&nbsp; &nbsp; End Sub<br />
&nbsp; &nbsp; Sub Output(ByVal day As Integer, ByVal strMonth As String, ByVal year As Integer)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; lblBdayC.Text = &quot;The birthday entered is:&quot;(txtDayC.Text) &amp; (cboMonthC.Items(&quot;&quot;)) &amp; (txtYearC.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; lblOutC.Text = &quot;Your celtic zodiac sign is:&quot;<br />
&nbsp; &nbsp; End Sub<br />
&nbsp; &nbsp; Private Sub linkClearC_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles linkClearC.LinkClicked<br />
&nbsp; &nbsp; &nbsp; &nbsp; txtDayC.Text = &quot;&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; txtYearC.Text = &quot;&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; lblOutC.Text = &quot;&quot;<br />
<br />
&nbsp; &nbsp; End Sub</pre>I haven't been able to test any of the other things, so I don't know if something else is wrong.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>Ryveris</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread245075.html</guid>
		</item>
		<item>
			<title>global mouse over event</title>
			<link>http://www.daniweb.com/forums/thread245055.html</link>
			<pubDate>Wed, 09 Dec 2009 15:31:46 GMT</pubDate>
			<description><![CDATA[i have context menus & want the menu items font style to change to bold whenever the mouse moves over, and return to regular when it leaves. 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>i have context menus &amp; want the menu items font style to change to bold whenever the mouse moves over, and return to regular when it leaves.<br />
<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; Private Sub EmnuExitMenu_MouseLeave(ByVal sender As Object, ByVal e As System.EventArgs) Handles EmnuExitMenu.MouseLeave<br />
&nbsp; &nbsp; &nbsp; &nbsp; Me.EmnuExitMenu.Font = New Font(Me.EmnuExitMenu.Font, FontStyle.Regular)<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Private Sub EmnuExitMenu_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles EmnuExitMenu.MouseMove<br />
&nbsp; &nbsp; &nbsp; &nbsp; Me.EmnuExitMenu.Font = New Font(Me.EmnuExitMenu.Font, FontStyle.Bold)<br />
&nbsp; &nbsp; End Sub</pre><br />
work fine, however<br />
is there a way to define this globaly for all menus through out the entire applications.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>jlego</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread245055.html</guid>
		</item>
		<item>
			<title>Code Snippet Button Array</title>
			<link>http://www.daniweb.com/code/snippet244987.html</link>
			<pubDate>Wed, 09 Dec 2009 11:25:27 GMT</pubDate>
			<description><![CDATA[Regards 
Michael O'Rourke]]></description>
			<content:encoded><![CDATA[<div>Regards<br />
Michael O'Rourke</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>morke</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread244987.html</guid>
		</item>
		<item>
			<title>Datagridview Checkbox</title>
			<link>http://www.daniweb.com/forums/thread244944.html</link>
			<pubDate>Wed, 09 Dec 2009 07:56:29 GMT</pubDate>
			<description>is there anybody know how to indicate the checkedbox inside the datagrid is ticked. should i put all the code inside the control something like DataGridView1.CellValueChanged or any other control? 
 
any help will be appreciated.</description>
			<content:encoded><![CDATA[<div>is there anybody know how to indicate the checkedbox inside the datagrid is ticked. should i put all the code inside the control something like DataGridView1.CellValueChanged or any other control?<br />
<br />
any help will be appreciated.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>wish4129</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread244944.html</guid>
		</item>
		<item>
			<title>How to display Text in selected text boxes in vb.net?</title>
			<link>http://www.daniweb.com/forums/thread244988.html</link>
			<pubDate>Wed, 09 Dec 2009 07:35:58 GMT</pubDate>
			<description>Sir, I would like to salve my problem . 
I have Three text Boxes and i want to use Cut, copy, paste method. 
But the problem is when i copy one text box matter and then apply Paste option through menu control ,then matter is displayed all three text boxes. 
But I want that  matter is displayed only...</description>
			<content:encoded><![CDATA[<div>Sir, I would like to salve my problem .<br />
I have Three text Boxes and i want to use Cut, copy, paste method.<br />
But the problem is when i copy one text box matter and then apply Paste option through menu control ,then matter is displayed all three text boxes.<br />
But I want that  matter is displayed only selected text box.<br />
What is the solutions.  <br />
Kindly tell to me.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>Usha Kumari</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread244988.html</guid>
		</item>
		<item>
			<title>Need some guidance on a translation program</title>
			<link>http://www.daniweb.com/forums/thread244926.html</link>
			<pubDate>Wed, 09 Dec 2009 06:48:38 GMT</pubDate>
			<description>I have a program in which a user enters a sentence in English into a text box, then the sentence is translated into French and German based on words in an array of structures that gets its values from a text file. I have almost all of the program written, but I am a bit confused on how to get VB to...</description>
			<content:encoded><![CDATA[<div>I have a program in which a user enters a sentence in English into a text box, then the sentence is translated into French and German based on words in an array of structures that gets its values from a text file. I have almost all of the program written, but I am a bit confused on how to get VB to get the English words that are entered into the text box separately so they can be translated individually and the value returned. I need help with this last part. I need to use a Sub Procedure to get the English Words and to Translate them. Any help would be appreciated.<br />
<br />
Here is what I have so far.<br />
<br />
 <pre style="margin:20px; line-height:13px">Public Class frmTranslate<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; ' Create Structure with a member for each language<br />
&nbsp; &nbsp; Structure Translator<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim english As String<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim french As String<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim german As String<br />
&nbsp; &nbsp; End Structure<br />
<br />
&nbsp; &nbsp; ' Create array of structures<br />
&nbsp; &nbsp; Dim trans(15) As Translator<br />
<br />
&nbsp; &nbsp; Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'Add words to array of structures trans().<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim temp As Translator<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim sr As IO.StreamReader = IO.File.OpenText(&quot;words.TXT&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; For i As Integer = 0 To 15<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; trans(i).english = sr.ReadLine<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; trans(i).french = sr.ReadLine<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; trans(i).german = sr.ReadLine<br />
&nbsp; &nbsp; &nbsp; &nbsp; Next<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'Close the reader<br />
&nbsp; &nbsp; &nbsp; &nbsp; sr.Close()<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'Perform bubble sort by English word.<br />
&nbsp; &nbsp; &nbsp; &nbsp; For i As Integer = 1 To 15<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; For j As Integer = 1 To 16 - i<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If Trans(j - 1).english &gt; Trans(j).english Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; temp = Trans(j - 1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Trans(j - 1) = Trans(j)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Trans(j) = temp<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Next<br />
&nbsp; &nbsp; &nbsp; &nbsp; Next<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lblFrench.Click<br />
<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Private Sub btnTranslate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnTranslate.Click<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'Translate English sentence to French and German.<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim english() As String<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'Hold results<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim sentence As Translator<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'Ensure the sentence ends with a period, get English words<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim line As String = tbxEnterSentence.Text.Trim.ToUpper<br />
&nbsp; &nbsp; &nbsp; &nbsp; If line.Substring(line.Length - 1) &lt;&gt; &quot;.&quot; Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; line &amp;= &quot;.&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; english = GetWords(line)<br />
&nbsp; &nbsp; &nbsp; &nbsp; sentence = Translate(english)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'Display the results, format sentence to have period at the end<br />
&nbsp; &nbsp; &nbsp; &nbsp; tbxFrench.Text = sentence.french.Trim &amp; &quot;.&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; tbxGerman.Text = sentence.german.Trim &amp; &quot;.&quot;<br />
<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Sub GetWords(ByVal line As String)<br />
<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Sub Translate(ByVal english As String)<br />
<br />
<br />
<br />
<br />
&nbsp; &nbsp; End Sub<br />
<br />
End Class</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>CarlMartin10</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread244926.html</guid>
		</item>
		<item>
			<title>export datatable to excel sheet</title>
			<link>http://www.daniweb.com/forums/thread244910.html</link>
			<pubDate>Wed, 09 Dec 2009 05:33:49 GMT</pubDate>
			<description>hi 
im creating an application that query data from fox pro, manipulate it and export it to excel. 
here is the code im using to creat excel object: 
 
 Dim oExcel As New Excel.Application 
Dim obook As Excel.Workbook = oExcel.Workbooks.Add  
 
im getting excell.application underlined(error msg:new...</description>
			<content:encoded><![CDATA[<div>hi<br />
im creating an application that query data from fox pro, manipulate it and export it to excel.<br />
here is the code im using to creat excel object:<br />
<br />
 Dim oExcel As New Excel.Application<br />
Dim obook As Excel.Workbook = oExcel.Workbooks.Add <br />
<br />
im getting excell.application underlined(error msg:new cannot be used on an interface)<br />
it get fixed when i remove New, but now im getting oExcel in second line wiggly underlined(er msg;variable oExcel is used before its been assigned a value) <br />
can anyone help plzzz??<br />
thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>wiss.dev</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread244910.html</guid>
		</item>
		<item>
			<title><![CDATA["resource" parameter]]></title>
			<link>http://www.daniweb.com/forums/thread244805.html</link>
			<pubDate>Tue, 08 Dec 2009 20:30:22 GMT</pubDate>
			<description><![CDATA[in vb.net 2008, i have no idea what this means 
 
error: the item "obj\debug\associateassist.frmdbsetup.resources" was specified more than once in the "resourceS" parameter. duplicate items are not support by the "resources" parameter. 
 
does anyone know what might cause this error / how to go...]]></description>
			<content:encoded><![CDATA[<div>in vb.net 2008, i have no idea what this means<br />
<br />
error: the item &quot;obj\debug\associateassist.frmdbsetup.resources&quot; was specified more than once in the &quot;resourceS&quot; parameter. duplicate items are not support by the &quot;resources&quot; parameter.<br />
<br />
does anyone know what might cause this error / how to go about fixing it.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>jlego</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread244805.html</guid>
		</item>
		<item>
			<title>Student with a quick question</title>
			<link>http://www.daniweb.com/forums/thread244782.html</link>
			<pubDate>Tue, 08 Dec 2009 19:03:53 GMT</pubDate>
			<description><![CDATA[I know there have been posts in the past where some were asking about "how to make a zodiac calculator," and I kind of have the same question, but I've done the research and wrote most of the code out, so it's nothing like that. I didn't quite understand how to post the code, so I'm just going to...]]></description>
			<content:encoded><![CDATA[<div>I know there have been posts in the past where some were asking about &quot;how to make a zodiac calculator,&quot; and I kind of have the same question, but I've done the research and wrote most of the code out, so it's nothing like that. I didn't quite understand how to post the code, so I'm just going to give a quick description.<br />
I know the basic codes that I need to insert, but I'm creating it in a windows application. The day and year are text boxes that the user can input that particular information, but the month is a drop-down box. <br />
<br />
My two questions are: Is it okay to delete the private sub of the day and year so I can combine them into one sub?<br />
<br />
And how do I get the months to show up individually in the code area? Or would I have to delete the drop-down box completely and make it like the day and year text boxes where the user can input the information themselves?<br />
<br />
Thanks in advance!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>Ryveris</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread244782.html</guid>
		</item>
		<item>
			<title>PLEASE HELP!! ListBox Contol keeps adding duplicate entries!</title>
			<link>http://www.daniweb.com/forums/thread244764.html</link>
			<pubDate>Tue, 08 Dec 2009 18:12:04 GMT</pubDate>
			<description><![CDATA[Ok, I have been working on this for months now, and I am so close to having it work the way I want, but it's just not happening.  Here's what I am trying to do: 
 
My program is half a formulator, and half ordering system.  Where I get stuck is the ordering system part.  In one screen I have 5...]]></description>
			<content:encoded><![CDATA[<div>Ok, I have been working on this for months now, and I am so close to having it work the way I want, but it's just not happening.  Here's what I am trying to do:<br />
<br />
My program is half a formulator, and half ordering system.  Where I get stuck is the ordering system part.  In one screen I have 5 check boxes that you can check for which products you want to order.  The products you checked then get sent to another screen and put into a list box with a quantity variable that starts at 1 attached to it.  Now, if you check the same product again, another time through the program, as of now, quantity accumulates to 2, which is good, that's what I want.  My problem is I want quantity to keep accumulating, right now it accumulates to 2, then on a third pass through the program, it duplicates the entry, so now in the list box has the original product and quantity of 2, and another entry that has the product with quantity of 2. I'm about ready to pull my hair out on this one.  PLEASE HELP! I'm so close, yet so far! I would much rather use a ListView, but I don't quite understand how they work.  Here's the code:<br />
<br />
 <pre style="margin:20px; line-height:13px">Option Explicit On<br />
Option Strict On<br />
<br />
Public Class OrderRequest<br />
<br />
&nbsp; &nbsp; Private Sub submitButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles submitButton.Click<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim quantity As Integer = 1<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'add selected products to CompletedOrderForm.<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; If color1CheckBox.Checked Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim index As Integer = My.Forms.CompletedOrderForm.productListBox.FindString(color1CheckBox.Text)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If index &lt; 0 Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; My.Forms.CompletedOrderForm.productListBox.Items.Add(color1CheckBox.Text &amp; &quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot; &amp; quantity)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; My.Forms.CompletedOrderForm.productListBox.Items.Remove(color1CheckBox.Text &amp; &quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot; &amp; quantity)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; quantity = quantity + 1<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; My.Forms.CompletedOrderForm.productListBox.Items.Add(color1CheckBox.Text &amp; &quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot; &amp; quantity)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  End If<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; My.Forms.ConfirmationDialog.ShowDialog()<br />
&nbsp; &nbsp; End Sub</pre><br />
Thank You!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>hwlibra083</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread244764.html</guid>
		</item>
		<item>
			<title>vb.net  miniproject</title>
			<link>http://www.daniweb.com/forums/thread244746.html</link>
			<pubDate>Tue, 08 Dec 2009 16:57:28 GMT</pubDate>
			<description>hi, i am doing btech. can anyone please suggest miniproject in vb.net based on database</description>
			<content:encoded><![CDATA[<div>hi, i am doing btech. can anyone please suggest miniproject in vb.net based on database</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>achu236</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread244746.html</guid>
		</item>
		<item>
			<title>How to create table dynamically..</title>
			<link>http://www.daniweb.com/forums/thread244714.html</link>
			<pubDate>Tue, 08 Dec 2009 14:54:41 GMT</pubDate>
			<description><![CDATA[[code]  
i am using oracle as database. i want to create table at run time that will remains in database to store info permanatly later.. 
plz.. anyone can tell me.. how to do this? 
 
[icode]]]></description>
			<content:encoded><![CDATA[<div>[code] <br />
i am using oracle as database. i want to create table at run time that will remains in database to store info permanatly later..<br />
plz.. anyone can tell me.. how to do this?<br />
<br />
[icode]</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>pratidnya</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread244714.html</guid>
		</item>
		<item>
			<title>copying complex form</title>
			<link>http://www.daniweb.com/forums/thread244686.html</link>
			<pubDate>Tue, 08 Dec 2009 04:51:51 GMT</pubDate>
			<description><![CDATA[I have a form in VB2008 with 3 panels, each containing panels.  How can I copy the formatting to create similar forms to it? 
 
<a href="http://mcatprep.yolasite.com/">My site</a>]]></description>
			<content:encoded><![CDATA[<div>I have a form in VB2008 with 3 panels, each containing panels.  How can I copy the formatting to create similar forms to it?<br />
<br />
&lt;a href=&quot;http://mcatprep.yolasite.com/&quot;&gt;My site&lt;/a&gt;</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>mcatest</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread244686.html</guid>
		</item>
		<item>
			<title>Student needing help please...</title>
			<link>http://www.daniweb.com/forums/thread244540.html</link>
			<pubDate>Tue, 08 Dec 2009 01:16:32 GMT</pubDate>
			<description><![CDATA[I am learning vb and one of my projects is to make a price schedule using full day and half day rates as well as adding a deposit, etc. I don't want you to tell me what to do just please what I am missing. I haven't been able to get it to run but if I can I can salvage some points. Thank you in...]]></description>
			<content:encoded><![CDATA[<div>I am learning vb and one of my projects is to make a price schedule using full day and half day rates as well as adding a deposit, etc. I don't want you to tell me what to do just please what I am missing. I haven't been able to get it to run but if I can I can salvage some points. Thank you in advance..<br />
 <pre style="margin:20px; line-height:13px">Public Class frmEddies<br />
<br />
&nbsp; &nbsp; Private Sub Label2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lblDuration.Click<br />
<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br />
<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Private Sub btnRates_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnRates.Click<br />
<br />
&nbsp; &nbsp; &nbsp; <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'Display rates for given items per length of time rented.<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim item, duration As String<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim deposit As String<br />
&nbsp; &nbsp; &nbsp; &nbsp; item = txtItem.Text<br />
&nbsp; &nbsp; &nbsp; &nbsp; duration = txtDuration.Text<br />
&nbsp; &nbsp; &nbsp; &nbsp; deposit = CStr(30.0)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim fmtStr As String = &quot;{0,-22}{1,12} {2,12}&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; lstRates.Items.Clear()<br />
&nbsp; &nbsp; &nbsp; &nbsp; lstRates.Items.Add(String.Format(fmtStr, &quot;Price of Equipment&quot;, &quot;Half-day&quot;, &quot;Full-day&quot;))<br />
&nbsp; &nbsp; &nbsp; &nbsp; lstRates.Items.Add(String.Format(fmtStr, &quot;1. Rug cleaner&quot;, &quot;$16.00&quot;, &quot;$24.00&quot;))<br />
&nbsp; &nbsp; &nbsp; &nbsp; lstRates.Items.Add(String.Format(fmtStr, &quot;2. Lawn mower&quot;, &quot;$12.00&quot;, &quot;$18.00&quot;))<br />
&nbsp; &nbsp; &nbsp; &nbsp; lstRates.Items.Add(String.Format(fmtStr, &quot;3. Paint Sprayer&quot;, &quot;$20.00&quot;, &quot;$30.00&quot;))<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Private Sub btnBill_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnBill.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'Shows total bill.<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim item, duration, deposit As String<br />
&nbsp; &nbsp; &nbsp; &nbsp; item = txtItem.Text<br />
&nbsp; &nbsp; &nbsp; &nbsp; duration = txtDuration.Text<br />
&nbsp; &nbsp; &nbsp; &nbsp; deposit = CStr(30.0)<br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim fmtStr As String = &quot;{0,-20}{1, 10}{2, 10} &quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; lstBill.Items.Clear()<br />
&nbsp; &nbsp; &nbsp; &nbsp; lstBill.Items.Add(&quot;Receipt from Eddie's Equipment Rental&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'Program will not run past this point....<br />
&nbsp; &nbsp; &nbsp; &nbsp; Select Case duration + deposit + item<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Case &quot;1H&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lstBill.Items.Add(&quot;Rug cleaner&quot; &amp; &quot;$16.00 &quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lstBill.Items.Add(&quot;Deposit&quot; &amp; &quot;$30.00&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lstBill.Items.Add(&quot;Total&quot; = duration + item)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Case &quot;1F&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lstBill.Items.Add(&quot;Rug cleaner&quot; &amp; &quot;$24.00 &quot; &amp; &quot;Deposit&quot; &amp; &quot;$30.00&quot; &amp; &quot;Total&quot; = duration + item)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Case &quot;2H&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lstBill.Items.Add(&quot;Lawn mower&quot; &amp; &quot;$12.00 &quot; &amp; &quot;Deposit&quot; &amp; &quot;$30.00&quot; &amp; &quot;Total&quot; = duration + item)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Case &quot;2F&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lstBill.Items.Add(&quot;Lawn mower&quot; &amp; &quot;$18.00 &quot; &amp; &quot;Deposit&quot; &amp; &quot;$30.00&quot; &amp; &quot;Total&quot; = duration + item)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Case &quot;3H&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lstBill.Items.Add(&quot;Paint sprayer&quot; &amp; &quot;$20.00 &quot; &amp; &quot;Deposit&quot; &amp; &quot;$30.00&quot; &amp; &quot;Total&quot; = duration + item)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Case &quot;3F&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lstBill.Items.Add(&quot;Paint sprayer&quot; &amp; &quot;$30.00 &quot; &amp; &quot;Deposit&quot; &amp; &quot;$30.00&quot; &amp; &quot;Total&quot; = duration + item)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Select<br />
&nbsp; &nbsp; End Sub<br />
End Class</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>MWillis09</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread244540.html</guid>
		</item>
		<item>
			<title>Listview .TAG issue</title>
			<link>http://www.daniweb.com/forums/thread244483.html</link>
			<pubDate>Mon, 07 Dec 2009 20:08:26 GMT</pubDate>
			<description><![CDATA[Sorry if there is a topic on this somewhere - i have been searching for awhile now no dice. 
 
 
I'm upgrading a VB6 application to a vb.net 2008 application. 
 
problem that's driving me nuts: 
 
I fill a listview with a list of customer first & last names + number from a sql database, setting the...]]></description>
			<content:encoded><![CDATA[<div>Sorry if there is a topic on this somewhere - i have been searching for awhile now no dice.<br />
<br />
<br />
I'm upgrading a VB6 application to a vb.net 2008 application.<br />
<br />
problem that's driving me nuts:<br />
<br />
I fill a listview with a list of customer first &amp; last names + number from a sql database, setting the listviews .tag as the customers id in the table.<br />
<br />
in vb6 i did as follows:<br />
<br />
if db_connect(&quot;select concat(first, ' ', last) as name, number from customer&quot;) = true then<br />
do until adors.eof = true<br />
 with lstresults.listitems.add(,, adors.fields(&quot;name&quot;))<br />
     .listsubitems.add,, adors.fields(&quot;number&quot;)<br />
    <span style="color:red"> .tag = adors.fields(&quot;ID&quot;)</span><br />
 end with<br />
 adors.movenext<br />
loop<br />
end if<br />
db_disconnect<br />
<br />
then i would use the tag in various other areas if the customer was selected in the list view.<br />
<br />
example: delete from customer where customer.ID = &quot; &amp; me.lstresults.selecteditem.tag<br />
<br />
<br />
in .net 08 im doing the following:<br />
<br />
        Dim strInfo(1) As String<br />
        Dim lstNewItem As New ListViewItem<br />
        if DB_connect(&quot;select ID, concat(first, ' ', last) as name, number from customer&quot;) = true then<br />
            do until adors.eof = true<br />
                strinfo(0) = adors.fields(&quot;name&quot;).value<br />
                strinfo(1) = adors.fields(&quot;number&quot;).value<br />
                lstnewitem = new listviewitem(strinfo)<br />
<span style="color:red">lstnewitem.tag = adors.fields(&quot;ID&quot;)</span><br />
                me.lstresults.items.add(lstnewitem)<br />
                adors.movenext<br />
            loop<br />
         end if<br />
         db_disconnect<br />
<br />
<br />
i then try to call it as follows:<br />
       DELETE FROM customer where customer.ID = &quot; &amp; Me.lstResults.SelectedItems.Item(0).Tag<br />
<br />
and i get an error that the tag can't be converted to a string, which i dont want it as a string and cdbl(.tag) says it cant be converted to a double..<br />
<br />
basically its not pulling the ID for the .tag..<br />
<br />
any help is appreciated, thanks!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>jlego</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread244483.html</guid>
		</item>
		<item>
			<title>Debugging objects from dot net plugin DLLs</title>
			<link>http://www.daniweb.com/forums/thread244392.html</link>
			<pubDate>Mon, 07 Dec 2009 13:37:46 GMT</pubDate>
			<description>For a long time, we have used VB6 activex dlls as our plugin strategy for our application. Works great. Now we want to include dotnet assemblys. We are working on the strategy to create objects for the plugins (late-binding-esk). I have the file path of each plugin, and have figured out how to...</description>
			<content:encoded><![CDATA[<div>For a long time, we have used VB6 activex dlls as our plugin strategy for our application. Works great. Now we want to include dotnet assemblys. We are working on the strategy to create objects for the plugins (late-binding-esk). I have the file path of each plugin, and have figured out how to create an assembly object, look for the correct interface, instantiate and run. All works fine.<br />
<br />
My problem is how to develop and debug these DotNet plugins. In the past, we ran the application on our development machines, started VB6, opened the plugin's project file and started the debugger. Since COM used the programid, VB6's IDE overrides any plugin DLL installed on the machine. When the application does a CreateObject(progid), it jumps right to the IDE in debug mode, instead of creating an object from the classes in the DLL.<br />
<br />
I would like a similar 'convenience' for plugin developers using dot net. The problem is that the dot net object creation scheme outlined above involves going right to the files in the plugin folder. I can open the IDE, open the plugin project, attach to the main application's process. But when the application creates the object from the type found in the files, of course, the IDE does not intercept it, and the DLL provides the class instead of the debugger.<br />
<br />
Anyone have a suggestion?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>Contensive</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread244392.html</guid>
		</item>
		<item>
			<title>Textboxes data validation</title>
			<link>http://www.daniweb.com/forums/thread244332.html</link>
			<pubDate>Mon, 07 Dec 2009 10:36:50 GMT</pubDate>
			<description>Dear Experts 
 
I Have four textboxes,  
 
I want textbox1 to accept only char data. 
I want textbox2 to accept only numeric data. 
I want textbox3 to accept only alphanumeric data. 
I want textbox4 to accept only bolean data. 
 
Please help</description>
			<content:encoded><![CDATA[<div>Dear Experts<br />
<br />
I Have four textboxes, <br />
<br />
I want textbox1 to accept only char data.<br />
I want textbox2 to accept only numeric data.<br />
I want textbox3 to accept only alphanumeric data.<br />
I want textbox4 to accept only bolean data.<br />
<br />
Please help</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>tqmd1</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread244332.html</guid>
		</item>
		<item>
			<title>how to delete all character from file</title>
			<link>http://www.daniweb.com/forums/thread244327.html</link>
			<pubDate>Mon, 07 Dec 2009 10:20:14 GMT</pubDate>
			<description><![CDATA[hi guys please help me.i have confusion for file handling. 
i am developing a application that uses one txt file. now i want to find a particular word from file and replace it as space. i don't how to do this. 
please help me]]></description>
			<content:encoded><![CDATA[<div>hi guys please help me.i have confusion for file handling.<br />
i am developing a application that uses one txt file. now i want to find a particular word from file and replace it as space. i don't how to do this.<br />
please help me</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>ujjval dave</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread244327.html</guid>
		</item>
		<item>
			<title>How do i give a pagefeed to the printer</title>
			<link>http://www.daniweb.com/forums/thread244323.html</link>
			<pubDate>Mon, 07 Dec 2009 10:02:31 GMT</pubDate>
			<description><![CDATA[:idea:I'm a bit stuck  
I wrote a printing part. 
But cant find how to preform a pagefeed 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with...]]></description>
			<content:encoded><![CDATA[<div>:idea:I'm a bit stuck <br />
I wrote a printing part.<br />
But cant find how to preform a pagefeed<br />
<br />
 <pre style="margin:20px; line-height:13px">Private Sub PrintBTN_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PrintBTN.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; copieen = 1<br />
&nbsp; &nbsp; &nbsp; &nbsp; PrintDocument1.PrinterSettings.Copies = copieen<br />
&nbsp; &nbsp; &nbsp; &nbsp; PrintDocument1.Print()<br />
end Sub<br />
&nbsp;Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage<br />
&nbsp; &nbsp; &nbsp; &nbsp; data = &quot;this is a test&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim xx = 2<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim y = 0<br />
&nbsp; &nbsp; &nbsp; &nbsp; For x = 1 To 40<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If Len(machin(xx)) &gt; 0 Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; e.Graphics.DrawString(machin(xx), New Font(&quot;Arial&quot;, 10, FontStyle.Bold), Brushes.Black, 0, y)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; y = y + 14<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; For u = 1 To 10<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; e.Graphics.DrawString(data, New Font(&quot;Arial&quot;, 10), Brushes.Black, 10, y)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; y = y + 14<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Next u<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; y = y + 14<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If y = 1008 Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; REM Here i need to give the printer a pagefeed and start on a new page<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; y = 0<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xx = xx + 16<br />
&nbsp; &nbsp; &nbsp; &nbsp; Next x<br />
End Sub</pre><br />
Can someone Plzzzzz help me</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>Ulukay</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread244323.html</guid>
		</item>
		<item>
			<title>login roles</title>
			<link>http://www.daniweb.com/forums/thread244320.html</link>
			<pubDate>Mon, 07 Dec 2009 09:49:05 GMT</pubDate>
			<description><![CDATA[Please i'm  developing an application with vb.net and mysql. I want to add additional users to the application but with different access levels. this is my original code 
sql = "select username, password from users where (username = '" & UsernameTextBox.Text & "') and (password = '" &...]]></description>
			<content:encoded><![CDATA[<div>Please i'm  developing an application with vb.net and mysql. I want to add additional users to the application but with different access levels. this is my original code<br />
 <pre style="margin:20px; line-height:13px">sql = &quot;select username, password from users where (username = '&quot; &amp; UsernameTextBox.Text &amp; &quot;') and (password = '&quot; &amp; PasswordTextBox.Text &amp; &quot;')&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; conn.ConnectionString = &quot;server=localhost;&quot; _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &amp; &quot;database=cargomanager;&quot; _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &amp; &quot;userid=root;&quot; _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &amp; &quot;password=admin;&quot;<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; conn.Open()<br />
&nbsp; &nbsp; &nbsp; &nbsp; Catch myerror As MySqlException<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MsgBox(&quot;sorry connection failed&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Try<br />
&nbsp; &nbsp; &nbsp; &nbsp; command.Connection = conn<br />
&nbsp; &nbsp; &nbsp; &nbsp; command.CommandText = Sql<br />
&nbsp; &nbsp; &nbsp; &nbsp; adapter.SelectCommand = command<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim mydata As MySqlDataReader<br />
&nbsp; &nbsp; &nbsp; &nbsp; mydata = command.ExecuteReader()<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; If mydata.HasRows = 0 Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MsgBox(&quot;Invalid username/password&quot;, MsgBoxStyle.Information)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Form1.Show()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.Close()<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If.</pre>If i add a third parameter  named level to the sql statement, how do i determine which form shows???</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>azdonald</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread244320.html</guid>
		</item>
		<item>
			<title>working with text files problem</title>
			<link>http://www.daniweb.com/forums/thread244249.html</link>
			<pubDate>Mon, 07 Dec 2009 03:09:58 GMT</pubDate>
			<description><![CDATA[Below is a sample of my text: 
 
01"111111","2345678","7891090","M0000023" 
02"111111","2345678","7891090","M0000023" 
03"111111","2345678","7891090","M0000023" 
01"111111","2345678", 
"7891090","M0000023" 
02"111111","2345678",7891090","M0000023" 
03"111111","2345678",7891090","M0000023" 
etc.]]></description>
			<content:encoded><![CDATA[<div>Below is a sample of my text:<br />
<br />
01&quot;111111&quot;,&quot;2345678&quot;,&quot;7891090&quot;,&quot;M0000023&quot;<br />
02&quot;111111&quot;,&quot;2345678&quot;,&quot;7891090&quot;,&quot;M0000023&quot;<br />
03&quot;111111&quot;,&quot;2345678&quot;,&quot;7891090&quot;,&quot;M0000023&quot;<br />
01&quot;111111&quot;,&quot;2345678&quot;,<br />
&quot;7891090&quot;,&quot;M0000023&quot;<br />
02&quot;111111&quot;,&quot;2345678&quot;,7891090&quot;,&quot;M0000023&quot;<br />
03&quot;111111&quot;,&quot;2345678&quot;,7891090&quot;,&quot;M0000023&quot;<br />
etc.<br />
<br />
Sometime the input file has lines that wrapped and sometimes it does not.  I need to read the text file line by line and then if the line does not begin with &quot;01&quot; or &quot;02&quot; or &quot;03&quot; join it to the line above it and write the fixed file to a new text file.<br />
<br />
 <pre style="margin:20px; line-height:13px">Imports System.IO<br />
<br />
Public Class Form1<br />
<br />
&nbsp; &nbsp; Private Sub OpenFileDialog1_FileOk(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles OpenFileDialog1.FileOk<br />
<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim LineReader As StreamReader<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim results As DialogResult<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; results = OpenFileDialog1.ShowDialog<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; If results = DialogResult.OK Then<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineReader = New StreamReader(OpenFileDialog1.FileName)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TextBox1.Text = LineReader.ReadLine()<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineReader.Close()<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim FileWriter As StreamWriter<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim results As DialogResult<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; results = SaveFileDialog1.ShowDialog<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; If results = DialogResult.OK Then<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FileWriter = New StreamWriter(SaveFileDialog1.FileName, False)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FileWriter.Write(TextBox1.Text)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FileWriter.Close()<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; End Class</pre><br />
How can I do this with the code I have so far?<br />
<br />
Thanks.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>dwisely</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread244249.html</guid>
		</item>
		<item>
			<title>Help with Project</title>
			<link>http://www.daniweb.com/forums/thread244190.html</link>
			<pubDate>Sun, 06 Dec 2009 21:52:52 GMT</pubDate>
			<description>*For school, using Visual Basic 9.0 (2008)* 
 
Write a program called Histogram that reads data from a file (allow the user to input the file name) and produces a horizontal histogram. The first line of the file should contain he title of the histogram, and each subsequent line should contain a...</description>
			<content:encoded><![CDATA[<div><span style="font-weight:bold">For school, using Visual Basic 9.0 (2008)</span><br />
<br />
Write a program called Histogram that reads data from a file (allow the user to input the file name) and produces a horizontal histogram. The first line of the file should contain he title of the histogram, and each subsequent line should contain a year, followed by a number. Your program should use a Do-While loop to be able to read an arbitrary number of lines from the file (use the Peek method). Each line in the histogram should consist of a number of asterisks equal to the data point. Your program should also use a flag variable to determine if the data are increasing (whether each data point is greater than the last). <br />
<br />
Can you guys write some code for me to try? I have no idea on how to approach this project and it's due for school tomorrow. Thanks so much.<br />
<br />
--<br />
John Kane</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>emerituspundit</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread244190.html</guid>
		</item>
		<item>
			<title>Working with listview and database.</title>
			<link>http://www.daniweb.com/forums/thread244233.html</link>
			<pubDate>Sun, 06 Dec 2009 21:13:46 GMT</pubDate>
			<description>Hi All 
 
I have a listview attached to a dbase app I am working on, the last column has a price value and I would like to create a total value for this column in a label or text box below the listview control.  
 
I was searching back the old posts looking for some pointers or a code snippet that...</description>
			<content:encoded><![CDATA[<div>Hi All<br />
<br />
I have a listview attached to a dbase app I am working on, the last column has a price value and I would like to create a total value for this column in a label or text box below the listview control. <br />
<br />
I was searching back the old posts looking for some pointers or a code snippet that would do this, but was unable to find anything. i'm using vb 2008.<br />
<br />
Any help appreciated<br />
<br />
Thanks<br />
<br />
kanababa</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>kanababa</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread244233.html</guid>
		</item>
		<item>
			<title>Billing project</title>
			<link>http://www.daniweb.com/forums/thread244104.html</link>
			<pubDate>Sun, 06 Dec 2009 14:08:28 GMT</pubDate>
			<description><![CDATA[Hello friend's, i'm beginner in vb.net and creating a billing project. In that i have two forms : Customer List and Customer Bill. In Customer List i added a listbox Control and a button, when the form loads it's display the customer list from the database. so i want that when i double click on the...]]></description>
			<content:encoded><![CDATA[<div>Hello friend's, i'm beginner in vb.net and creating a billing project. In that i have two forms : Customer List and Customer Bill. In Customer List i added a listbox Control and a button, when the form loads it's display the customer list from the database. so i want that when i double click on the listbox or click on the show cust. details button after selecting customer. it's display the customer bill with all relevant field in the database in the bill table. the code of Customer List Load event are: <br />
Code:<br />
 <pre style="margin:20px; line-height:13px">Private Sub LoadListBox() <br />
Dim custAdaptor As New MemorialDataSetTableAdapters.BillTableAdapter <br />
Dim CustTable As New MemorialDataSet.BillDataTable custAdaptor.Fill(CustTable) <br />
With lstCustomer <br />
.Items.Clear() <br />
.DisplayMember = &quot;Display Name&quot; <br />
For Each CurrentRow As MemorialDataSet.BillRow In CustTable.Rows .Items.Add(CurrentRow.Name) <br />
Next <br />
End With <br />
End Sub <br />
Private Sub CustomerList_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load <br />
LoadListBox() <br />
End Sub<br />
nd show details button code are:<br />
Code:<br />
Private Sub btnShowDetails_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnShowDetails.Click <br />
If lstCustomer.SelectedItems.Count = 1 Then <br />
'confusion here how to load the details in bill form. <br />
Else If lstCustomer.SelectedItems.Count = 0 Then <br />
MessageBox.Show(&quot;You have to Select a Customer to display the details&quot;) Else <br />
MessageBox.Show(&quot;You have Selected too many Customers&quot;) <br />
End If <br />
End If <br />
CustomerBill.Show() <br />
End Sub</pre>so when i click on show details button it redirect to bill form and display the result. but in vb only event and raiseEvent work not redirection. so plz help me. to solve this. or plz give me a link that have solution for this. thank you</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>saquib189</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread244104.html</guid>
		</item>
		<item>
			<title>VB.NET equivalent of following inline function in C#</title>
			<link>http://www.daniweb.com/forums/thread244077.html</link>
			<pubDate>Sun, 06 Dec 2009 10:50:19 GMT</pubDate>
			<description>Hi 
Please tell vb.net equivalent of following method: 
 
 private void LookForUpdates() 
        { 
            System.Threading.ThreadStart timerThreadStart = new System.Threading.ThreadStart(delegate() 
            { 
 
                sua = new ShowUpdatAvailable(); 
               ...</description>
			<content:encoded><![CDATA[<div>Hi<br />
Please tell vb.net equivalent of following method:<br />
<br />
 <pre style="margin:20px; line-height:13px"> private void LookForUpdates()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.Threading.ThreadStart timerThreadStart = new System.Threading.ThreadStart(delegate()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sua = new ShowUpdatAvailable();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DelGetUpdateArgs delGetUpdateArgs = new DelGetUpdateArgs(this.GetUpdateArgs);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sua.GetUpdateArgs = delGetUpdateArgs;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sua.StartLookingForUpdate();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; timerThread = new System.Threading.Thread(timerThreadStart);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; timerThread.Start();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }</pre>I tried using C# to VB.NET code converter which gave me this:<br />
<br />
 <pre style="margin:20px; line-height:13px">Private Sub LookForUpdates()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim timerThreadStart As New System.Threading.ThreadStart(Function() Do<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; sua = New My.ShowUpdatAvailable()<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim delGetUpdateArgs As New DelGetUpdateArgs(AddressOf Me.GetUpdateArgs)<br />
&nbsp; &nbsp; &nbsp; &nbsp; sua.GetUpdateArgs = delGetUpdateArgs<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; sua.StartLookingForUpdate()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End Function)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; timerThread = New System.Threading.Thread(timerThreadStart)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; timerThread.Start()<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Sub</pre><br />
Which on build in visual studio 2005 gives an error.<br />
<br />
Please help</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>nccsbim071</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread244077.html</guid>
		</item>
		<item>
			<title>Message</title>
			<link>http://www.daniweb.com/forums/thread244056.html</link>
			<pubDate>Sun, 06 Dec 2009 08:54:29 GMT</pubDate>
			<description>If i want to pop out a message to user 
eg, please enter number only. 
Do i need to declare? If need, how do i declare. 
URGENT!!! 
My test is in 2 days time. 
Thanks in advance.</description>
			<content:encoded><![CDATA[<div>If i want to pop out a message to user<br />
eg, please enter number only.<br />
Do i need to declare? If need, how do i declare.<br />
URGENT!!!<br />
My test is in 2 days time.<br />
Thanks in advance.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>fairy1992224</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread244056.html</guid>
		</item>
		<item>
			<title>Syntax Error in Udate Statement</title>
			<link>http://www.daniweb.com/forums/thread244032.html</link>
			<pubDate>Sun, 06 Dec 2009 05:11:38 GMT</pubDate>
			<description><![CDATA[I usually feel pretty bad asking simple questions like this, but I've a deadline that's fast approaching. What, if anything, is wrong with this Update statement? 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>I usually feel pretty bad asking simple questions like this, but I've a deadline that's fast approaching. What, if anything, is wrong with this Update statement?<br />
<br />
 <pre style="margin:20px; line-height:13px">&quot;Update ScoutInfo Set YearID = 20092010, GSUSAID = 1, FName = 'Jacob', LName = 'Lowe', DoB = '10/16/1989', Grade = '12', Level = 'Ambassador', School = 'Jacob Memorial', YearsIn = 12, NutsOwed = 0, CookiesOwed = 0, MiscOwed = 0 Where ScoutID = 10000&quot;</pre><br />
The datatypes are all either Text or Number (in Access). The double quotes are only for readability in VB syntax.<br />
<br />
Visual Studio keeps telling me there's a syntax error hanging out, but I'm just not seeing it. :\<br />
<br />
EDIT: Nevermind, just realized that I made the same mistake as I had done previously (Level being a keyword in Access.)</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>phatJacob07</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread244032.html</guid>
		</item>
		<item>
			<title>connect SQL Server 2005 to VB.Net</title>
			<link>http://www.daniweb.com/forums/thread244128.html</link>
			<pubDate>Sat, 05 Dec 2009 18:20:53 GMT</pubDate>
			<description>How to connect queries from SQL Server 2005 to VB.Net Windows application</description>
			<content:encoded><![CDATA[<div>How to connect queries from SQL Server 2005 to VB.Net Windows application</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>jayanthsept5</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread244128.html</guid>
		</item>
		<item>
			<title>Two questions/problems with crystal report</title>
			<link>http://www.daniweb.com/forums/thread243903.html</link>
			<pubDate>Sat, 05 Dec 2009 13:08:09 GMT</pubDate>
			<description>first of all, two images: 
 
1 - http://img46.imageshack.us/img46/2875/bezzz.jpg 
2 - http://img692.imageshack.us/img692/9595/saa.jpg 
 
My first problem... 
As you can see it on first image, there are certain number of records/pages and you can print only all pages at once (that icon for every...</description>
			<content:encoded><![CDATA[<div>first of all, two images:<br />
<br />
1 - <a rel="nofollow" class="t" href="http://img46.imageshack.us/img46/2875/bezzz.jpg" target="_blank">http://img46.imageshack.us/img46/2875/bezzz.jpg</a><br />
2 - <a rel="nofollow" class="t" href="http://img692.imageshack.us/img692/9595/saa.jpg" target="_blank">http://img692.imageshack.us/img692/9595/saa.jpg</a><br />
<br />
My first problem...<br />
As you can see it on first image, there are certain number of records/pages and you can print only all pages at once (that icon for every record is like &quot;blank document&quot;).<br />
On second image, again, I have certain number of records, but when i click on each one, it opens new tab (you can see two tabs on top, &quot;Main Report&quot; and &quot;BAF&quot;) and then, you have option to print each page particularly, or all pages at once. I want to know...what do I need to enable to have that option, so I can print all pages at once, and also each page particularly??<br />
<br />
Second...<br />
I have problem with total page count. In first image example I'm selecting records from few tables and some of records that i select are having the same value (we can say like that)...so, on the bottom of the page you can see &quot;Total Page No.&quot; field...it says 46 although I have 43 pages in that report (as I said...my total page no. gives all the records that exist in that selection, and my report gives distinct values). How can i real total page number, not number of records from that selection?? <br />
<br />
Hope you understand me and I hope someone could help me... thank you.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>Peric</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243903.html</guid>
		</item>
		<item>
			<title>Help closing forms !</title>
			<link>http://www.daniweb.com/forums/thread243901.html</link>
			<pubDate>Sat, 05 Dec 2009 13:01:43 GMT</pubDate>
			<description>im making a tool for a gamer to help others but it has 3 forms 
1 appear - 2 and 3 are hide they can change but how i do that when 1 form closes all close ? no only form 1 to close cuz if others close they are hide and the program still running but hide.</description>
			<content:encoded><![CDATA[<div>im making a tool for a gamer to help others but it has 3 forms<br />
1 appear - 2 and 3 are hide they can change but how i do that when 1 form closes all close ? no only form 1 to close cuz if others close they are hide and the program still running but hide.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>xfrolox</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243901.html</guid>
		</item>
		<item>
			<title>Comment in VB.net</title>
			<link>http://www.daniweb.com/forums/thread243847.html</link>
			<pubDate>Sat, 05 Dec 2009 07:30:16 GMT</pubDate>
			<description>what is comment in VB.Net and how to comment. 
I having a test in 3 days time. Urgent!!!! 
Thanks in advance.</description>
			<content:encoded><![CDATA[<div>what is comment in VB.Net and how to comment.<br />
I having a test in 3 days time. Urgent!!!!<br />
Thanks in advance.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>fairy1992224</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243847.html</guid>
		</item>
		<item>
			<title>Server/Client</title>
			<link>http://www.daniweb.com/forums/thread243789.html</link>
			<pubDate>Fri, 04 Dec 2009 23:16:38 GMT</pubDate>
			<description>I want to make something to read the text/strings sent to a server and maybe detect if the server is crashed or not and something to and some thing to send text/strings to a server maybe using winsock 
P.S. I also want to make something to crash my server.</description>
			<content:encoded><![CDATA[<div>I want to make something to read the text/strings sent to a server and maybe detect if the server is crashed or not and something to and some thing to send text/strings to a server maybe using winsock<br />
P.S. I also want to make something to crash my server.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>Progr4mmer</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243789.html</guid>
		</item>
		<item>
			<title>Problem loading MS Access Database information in a list view</title>
			<link>http://www.daniweb.com/forums/thread243768.html</link>
			<pubDate>Fri, 04 Dec 2009 21:10:31 GMT</pubDate>
			<description><![CDATA[I'm having a problem with loading my MS Access Database. I can get it to load but it won't load in a row. My friend told me to try this but it puts all the information in a column instead of putting all the information spread out accross the row. 
 
Here's my code: 
  <div class="codeblock"> <div...]]></description>
			<content:encoded><![CDATA[<div>I'm having a problem with loading my MS Access Database. I can get it to load but it won't load in a row. My friend told me to try this but it puts all the information in a column instead of putting all the information spread out accross the row.<br />
<br />
Here's my code:<br />
 <pre style="margin:20px; line-height:13px">Dim lb_Connection As New OleDb.OleDbConnection<br />
&nbsp; &nbsp; &nbsp; &nbsp; lb_Connection.ConnectionString = &quot;PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE = pass_database.mdb&quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim lb_SelectCommand As New OleDb.OleDbCommand<br />
&nbsp; &nbsp; &nbsp; &nbsp; lb_SelectCommand.CommandText = &quot;SELECT Title, Username, Password, URL, Notes FROM password_info&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; lb_SelectCommand.Connection = lb_Connection<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim lb_DataAdapter As New OleDb.OleDbDataAdapter<br />
&nbsp; &nbsp; &nbsp; &nbsp; lb_DataAdapter.SelectCommand = lb_SelectCommand<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim lb_DataSet As New DataSet<br />
&nbsp; &nbsp; &nbsp; &nbsp; CType(lb_DataSet, System.ComponentModel.ISupportInitialize).BeginInit()<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; lb_DataAdapter.Fill(lb_DataSet)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim lb_DataTable As New DataTable<br />
&nbsp; &nbsp; &nbsp; &nbsp; lb_DataTable = lb_DataSet.Tables(0)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; For Each db_name In lb_DataTable.Rows<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; frmMainPage.lvPasswordInfo.Items.Add(lb_DataTable.Rows(0).Item(0).ToString)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; frmMainPage.lvPasswordInfo.Items.Add(lb_DataTable.Rows(0).Item(1).ToString)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; frmMainPage.lvPasswordInfo.Items.Add(lb_DataTable.Rows(0).Item(2).ToString)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; frmMainPage.lvPasswordInfo.Items.Add(lb_DataTable.Rows(0).Item(3).ToString)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; frmMainPage.lvPasswordInfo.Items.Add(lb_DataTable.Rows(0).Item(4).ToString)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Next</pre><br />
Also I'll attach an image of what the program does when I load it.<br />
<br />
Please help and many thanks in advance.</div>  <br /> <div style="padding:5px">    <fieldset class="fieldset"> <legend>Attached Images</legend> <table cellpadding="0" cellspacing="5" border="0"> <tr> <td><img class="inlineimg" src="http://www.daniweb.com/forums/images/attach/bmp.gif" alt="File Type: bmp" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12841&amp;d=1259960929" target="_blank">vb.net_problem.bmp</a> (854.5 KB)</td> </tr> </table> </fieldset>   </div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>zoidmaster</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243768.html</guid>
		</item>
		<item>
			<title>OpenFileDialog code help</title>
			<link>http://www.daniweb.com/forums/thread243762.html</link>
			<pubDate>Fri, 04 Dec 2009 20:27:35 GMT</pubDate>
			<description>I am useing the OpenFileDialog component with a Button Sub to use the text file that the user selects (it can change everyday) in the next part of my program that will read that file and then covert it into an xml format.  How do I get the second part of my program to use the file selected? 
 
 ...</description>
			<content:encoded><![CDATA[<div>I am useing the OpenFileDialog component with a Button Sub to use the text file that the user selects (it can change everyday) in the next part of my program that will read that file and then covert it into an xml format.  How do I get the second part of my program to use the file selected?<br />
<br />
 <pre style="margin:20px; line-height:13px">Private Sub Button1_Click(ByVal sender As System.Object, _<br />
&nbsp;  ByVal e As System.EventArgs) Handles Button1.Click<br />
&nbsp;  If OpenFileDialog1.ShowDialog() = DialogResult.OK Then<br />
&nbsp; &nbsp;  Dim sr As New System.IO.StreamReader(OpenFileDialog1.FileName)<br />
&nbsp; &nbsp;  MessageBox.Show(sr.ReadToEnd)<br />
&nbsp; &nbsp;  sr.Close()<br />
&nbsp;  End If<br />
End Sub</pre><br />
thanks.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>dwisely</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243762.html</guid>
		</item>
		<item>
			<title>Problem with class</title>
			<link>http://www.daniweb.com/forums/thread243738.html</link>
			<pubDate>Fri, 04 Dec 2009 18:59:05 GMT</pubDate>
			<description><![CDATA[Hey guys, I'm trying to get this form to display in the listbox the address from the info from the textboxes, I followed an example that uses a class to do it, but it seems I am going wrong somewhere and I don't know where. Here is the code for the class: 
 
  <div class="codeblock"> <div...]]></description>
			<content:encoded><![CDATA[<div>Hey guys, I'm trying to get this form to display in the listbox the address from the info from the textboxes, I followed an example that uses a class to do it, but it seems I am going wrong somewhere and I don't know where. Here is the code for the class:<br />
<br />
 <pre style="margin:20px; line-height:13px">Public Class CLCustomer<br />
&nbsp; &nbsp; Private pName As String<br />
&nbsp; &nbsp; Private pAddress As String<br />
&nbsp; &nbsp; Private pState As String<br />
&nbsp; &nbsp; Private pCity As String<br />
&nbsp; &nbsp; Private pZip As String<br />
&nbsp; &nbsp; Public Property Name() As String<br />
&nbsp; &nbsp; &nbsp; &nbsp; Get<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Return pName<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Get<br />
&nbsp; &nbsp; &nbsp; &nbsp; Set(ByVal value As String)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pName = value<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Set<br />
&nbsp; &nbsp; End Property<br />
<br />
&nbsp; &nbsp; Public Property Address() As String<br />
&nbsp; &nbsp; &nbsp; &nbsp; Get<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Return pAddress<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Get<br />
&nbsp; &nbsp; &nbsp; &nbsp; Set(ByVal value As String)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pAddress = value<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Set<br />
&nbsp; &nbsp; End Property<br />
<br />
&nbsp; &nbsp; Public Property City() As String<br />
&nbsp; &nbsp; &nbsp; &nbsp; Get<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Return pCity<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Get<br />
&nbsp; &nbsp; &nbsp; &nbsp; Set(ByVal value As String)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pCity = value<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Set<br />
&nbsp; &nbsp; End Property<br />
<br />
&nbsp; &nbsp; Public Property State() As String<br />
&nbsp; &nbsp; &nbsp; &nbsp; Get<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Return pState<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Get<br />
&nbsp; &nbsp; &nbsp; &nbsp; Set(ByVal value As String)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pState = value<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Set<br />
&nbsp; &nbsp; End Property<br />
<br />
&nbsp; &nbsp; Public Property Zip() As String<br />
&nbsp; &nbsp; &nbsp; &nbsp; Get<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Return pZip<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Get<br />
&nbsp; &nbsp; &nbsp; &nbsp; Set(ByVal value As String)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pZip = value<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Set<br />
&nbsp; &nbsp; End Property<br />
&nbsp; &nbsp; Public Function DisplayAddress(ByVal sep As String)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim strTemp As String = pName.ToString() &amp; sep<br />
&nbsp; &nbsp; &nbsp; &nbsp; strTemp &amp;= pAddress.ToString() &amp; sep<br />
&nbsp; &nbsp; &nbsp; &nbsp; strTemp &amp;= pCity.ToString() &amp; &quot;, &quot; &amp; pState.ToString() &amp; pZip.ToString()<br />
&nbsp; &nbsp; &nbsp; &nbsp; Return strTemp<br />
&nbsp; &nbsp; End Function<br />
&nbsp; &nbsp; Public Sub New()<br />
<br />
&nbsp; &nbsp; End Sub<br />
&nbsp; &nbsp; Public Sub New(ByVal vpName As String, ByVal vpAddress As String, ByVal vpState As String, ByVal vpCity As String, ByVal vpZip As String)<br />
&nbsp; &nbsp; &nbsp; &nbsp; pName = vpName<br />
&nbsp; &nbsp; &nbsp; &nbsp; pAddress = vpAddress<br />
&nbsp; &nbsp; &nbsp; &nbsp; pState = vpState<br />
&nbsp; &nbsp; &nbsp; &nbsp; pCity = vpCity<br />
&nbsp; &nbsp; &nbsp; &nbsp; pZip = vpZip<br />
&nbsp; &nbsp; End Sub<br />
End Class</pre><br />
Here is the form code:<br />
<br />
 <pre style="margin:20px; line-height:13px">Public Class Form1<br />
<br />
&nbsp; &nbsp; Private Sub btnShow_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnShow.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim strName As String = txtName.Text<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim strAddress As String = txtAddress.Text<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim strState As String = cboState.Text<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim strCity As String = txtCity.Text<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim strZipCode As String = txtZip.Text<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim showAddress As New CLCustomer(strName, strAddress, strState, strCity, strZipCode)<br />
&nbsp; &nbsp; &nbsp; &nbsp; txtList.Text = showAddress.DisplayAddress(vbCrLf)<br />
&nbsp; &nbsp; End Sub<br />
<br />
<br />
End Class</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>songweaver</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243738.html</guid>
		</item>
		<item>
			<title>Aarggh!  Cookies!</title>
			<link>http://www.daniweb.com/forums/thread243725.html</link>
			<pubDate>Fri, 04 Dec 2009 18:05:32 GMT</pubDate>
			<description><![CDATA[Hi Folks, 
 
Really desperate for help here as I've spent days trying to resolve this one. 
 
We have a VB 2008 web browser app using a webbrowser control on our Kiosks at our uni - it works very well and locks down the workstation so teh students can only use it for the intended purpose. 
 
As it...]]></description>
			<content:encoded><![CDATA[<div>Hi Folks,<br />
<br />
Really desperate for help here as I've spent days trying to resolve this one.<br />
<br />
We have a VB 2008 web browser app using a webbrowser control on our Kiosks at our uni - it works very well and locks down the workstation so teh students can only use it for the intended purpose.<br />
<br />
As it never closes we need to kill the session cookies between users.<br />
<br />
We can run this via the auto-homepage routine we have but nothing we've tried will kill them.<br />
<br />
I've searched doezens of forums and tried the most common:<br />
webbrowser1.Document.Cookie.Remove(0, (webbrowser1.Document.Cookie.Count - 1))<br />
Also some java script that clears cookies for the current page but isn't usable as it means users would need to log in every time they click an internal link.<br />
Other code suggests changing the dates so the cookies are expired but the code has a type used that doesn't seem to work with any 2008 namespace.<br />
<br />
If anyone has a module or code that works with 2008, or can offer any advice  that will kill or expire all cookies I would be very, very grateful.<br />
<br />
Many thanks in advance - Adam.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>adamwilden</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243725.html</guid>
		</item>
		<item>
			<title>How to use comboBox to display data on Gridview?</title>
			<link>http://www.daniweb.com/forums/thread243702.html</link>
			<pubDate>Fri, 04 Dec 2009 16:00:24 GMT</pubDate>
			<description>I need to use comboBox to store the months then when i select a particular month. I need to display out the data onto a gridview for that selected month.</description>
			<content:encoded><![CDATA[<div>I need to use comboBox to store the months then when i select a particular month. I need to display out the data onto a gridview for that selected month.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>Redi_2008</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243702.html</guid>
		</item>
		<item>
			<title>Converting CSV to Excel should be easy but....</title>
			<link>http://www.daniweb.com/forums/thread243654.html</link>
			<pubDate>Fri, 04 Dec 2009 12:24:46 GMT</pubDate>
			<description><![CDATA[Hi Guys, 
 
I'm obviously missing something here. 
 
Basically I'm writing a program that will read in a csv file or excel file,  and allows the user to pick which fields thay wish to use for what line of an address, and then import all the addresses to a SQL table for later processing. 
 
I got...]]></description>
			<content:encoded><![CDATA[<div>Hi Guys,<br />
<br />
I'm obviously missing something here.<br />
<br />
Basically I'm writing a program that will read in a csv file or excel file,  and allows the user to pick which fields thay wish to use for what line of an address, and then import all the addresses to a SQL table for later processing.<br />
<br />
I got the excel import working by opening it through ODBC as a database and reading it in and I thought that I'd save time by  just converting the csv to excel and reusing the Excel routine on my new Excel file but I'm having difficulty with the csv conversion.<br />
<br />
Here is what I'm using:<br />
 <pre style="margin:20px; line-height:13px">private sub ConvertCSV(OldName, NewName)<br />
Try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; XL = New Excel.Application<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; XL.Visible = False<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; XL.Workbooks.OpenText(OldName)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; XL.DisplayAlerts = False<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; XL.ActiveWorkbook.SaveAs(NewName, Excel.XlFileFormat.xlExcel9795, , , , False)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; XL.ActiveWorkbook.Close(False)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; XL.Quit()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; XL = Nothing<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Catch ex As Exception<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sError = ex.ToString ' Returns error details <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MsgBox(sError, MsgBoxStyle.OkOnly)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Debug.WriteLine(ex.ToString)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End Try<br />
<br />
end sub</pre>The trouble is that when it then goes into my Excel Address routine, the new excel file appears to be empty.<br />
<br />
I see an excel file outputted to where I want it on the computer but it will not open for me (no errors given excel just hangs)<br />
<br />
Any ideas or will I have to parse the CSV file line by line into Excel?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>G_Waddell</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243654.html</guid>
		</item>
		<item>
			<title>Line Breaks In Crystal Report</title>
			<link>http://www.daniweb.com/forums/thread243635.html</link>
			<pubDate>Fri, 04 Dec 2009 10:30:43 GMT</pubDate>
			<description>hi guys, 
 
i have a problem in crystal report when i am getting a data from database field that field  has 30 words i want that in my report that field should be broke in 10 words each line so how can i do this please help me.</description>
			<content:encoded><![CDATA[<div>hi guys,<br />
<br />
i have a problem in crystal report when i am getting a data from database field that field  has 30 words i want that in my report that field should be broke in 10 words each line so how can i do this please help me.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>saj_amo</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243635.html</guid>
		</item>
		<item>
			<title>Find word From Ritch Text Box</title>
			<link>http://www.daniweb.com/forums/thread243611.html</link>
			<pubDate>Fri, 04 Dec 2009 08:42:22 GMT</pubDate>
			<description><![CDATA[*i am able to print all file line in to rich text box but i have a problem to find a specific word from the rich text box.please help me to solve this trouble. 
here is my code for taking input from file and print into rich text box * 
  <div class="codeblock"> <div class="spaced"> <div...]]></description>
			<content:encoded><![CDATA[<div><span style="font-weight:bold">i am able to print all file line in to rich text box but i have a problem to find a specific word from the rich text box.please help me to solve this trouble.<br />
here is my code for taking input from file and print into rich text box </span><br />
 <pre style="margin:20px; line-height:13px">Dim path2 As [String] = &quot;file path&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim d As New StreamReader(path2)<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'creating a new StreamReader and passing the filestream object fs as argument<br />
&nbsp; &nbsp; &nbsp; &nbsp; d.BaseStream.Seek(0, SeekOrigin.Begin)<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'Seek method is used to move the cursor to different positions in a file, in this code, to <br />
&nbsp; &nbsp; &nbsp; &nbsp; 'the beginning<br />
&nbsp; &nbsp; &nbsp; &nbsp; While d.Peek() &gt; -1<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'peek method of StreamReader object tells how much more data is left in the file<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RichTextBox1.Text &amp;= d.ReadLine()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'displaying text from txt file in the RichTextBox<br />
&nbsp; &nbsp; &nbsp; &nbsp; End While<br />
&nbsp; &nbsp; &nbsp; &nbsp; d.Close()</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>ujjval dave</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243611.html</guid>
		</item>
		<item>
			<title>textbox.mask</title>
			<link>http://www.daniweb.com/forums/thread243552.html</link>
			<pubDate>Fri, 04 Dec 2009 04:01:51 GMT</pubDate>
			<description><![CDATA[[QUOTE]Hi all 
I have been straggling to mask a text box. 
I searched for the Mask property I could not find it. 
I have also tried to use textbox.mask it tells me that mask is not a member. 
I'm trying to enter currency in The text box ($1000.000) 
I'm using Visual Studio 2010 
thank you/QUOTE]]]></description>
			<content:encoded><![CDATA[<div>[QUOTE]Hi all<br />
I have been straggling to mask a text box.<br />
I searched for the Mask property I could not find it.<br />
I have also tried to use textbox.mask it tells me that mask is not a member.<br />
I'm trying to enter currency in The text box ($1000.000)<br />
I'm using Visual Studio 2010<br />
thank you/QUOTE]</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>VIPER5646</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243552.html</guid>
		</item>
		<item>
			<title>Error when trying to store value</title>
			<link>http://www.daniweb.com/forums/thread243534.html</link>
			<pubDate>Fri, 04 Dec 2009 02:12:16 GMT</pubDate>
			<description><![CDATA[Im trying to set one variable equal to another but it says "No default member found for type 'Decimal'"  what does that mean? 
 
Both the varuables are deciamls,  one is a regular decimal that I declare in the sub and another is an array that I declare in the class.  The line is: 
tempx = xo(i)...]]></description>
			<content:encoded><![CDATA[<div>Im trying to set one variable equal to another but it says &quot;No default member found for type 'Decimal'&quot;  what does that mean?<br />
<br />
Both the varuables are deciamls,  one is a regular decimal that I declare in the sub and another is an array that I declare in the class.  The line is:<br />
tempx = xo(i)<br />
this is in a for loop with i as the variable.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>Chris11246</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243534.html</guid>
		</item>
		<item>
			<title>Need help - Login Client!</title>
			<link>http://www.daniweb.com/forums/thread243469.html</link>
			<pubDate>Thu, 03 Dec 2009 20:52:08 GMT</pubDate>
			<description>First off, i would like to introduce myself. My name is Ryan, im 18 and a professional gamer. 
 
About the client! 
Well this client is for my clan members, they can login and retrieve updates, news, ect through a webbrowser 
 
Help! 
 
Okay, so i have set a webbrowser, two texboxes and a command...</description>
			<content:encoded><![CDATA[<div>First off, i would like to introduce myself. My name is Ryan, im 18 and a professional gamer.<br />
<br />
About the client!<br />
Well this client is for my clan members, they can login and retrieve updates, news, ect through a webbrowser<br />
<br />
Help!<br />
<br />
Okay, so i have set a webbrowser, two texboxes and a command button. The Form_Load is where i filled the navigate ( the online login form). So, it will basically type whatever you typed on the applications textboxes onto the online forms two textboxes and then it will hit click on the submit button on the online form to login.<br />
Now heres the part where im having trouble, what i want to do is that when you type the information it will verify if that information is correct or incorrect and if it his correct it will show the form and if its not it will show an error message.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>xcarbon</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243469.html</guid>
		</item>
		<item>
			<title>Filling an .net form thru script from text file</title>
			<link>http://www.daniweb.com/forums/thread243399.html</link>
			<pubDate>Thu, 03 Dec 2009 16:38:19 GMT</pubDate>
			<description>Someone is building an application for me in VB.NET. 
I want to be able to check out their work. 
I want a way to fill up the form, by drawing values from a text file that contains sample values, as soon as I click a button (outside the application window). 
Whats the best way to do this ? 
 
More...</description>
			<content:encoded><![CDATA[<div>Someone is building an application for me in VB.NET.<br />
I want to be able to check out their work.<br />
I want a way to fill up the form, by drawing values from a text file that contains sample values, as soon as I click a button (outside the application window).<br />
Whats the best way to do this ?<br />
<br />
More details :<br />
Its like this. The form is open, say Page1.aspx. I am supposed to enter data in the form and check it and click the submit button. I dont want to enter values in different fields manually. <br />
<br />
Assume, I have a set of sample values in a text file. Assume I can build this text file in whichever format to be read.<br />
<br />
I should have another application running (call it Filler application), (I am ready to write this in VB6). I will click a &quot;Fetch and Fill&quot; button. It will ask for, say, record serial number. Then based on that, it will read the text file , read the values for the different fields, and FILL them one by one automatically into the different controls in Page1.aspx (okay wherever it is able to find matching controls).<br />
<br />
Then I will lazily click the Submit button.<br />
<br />
How to accomplish this ?<br />
<br />
For writing the filler application, I am ready with VB6, but I want to know how to access a particular window, then a particular aspx form, then how to identify the controls and how to do the filling.<br />
<br />
If VB6, is not okay, I can explore VB.NET too.<br />
<br />
Instead of text file, I can use html or xml files.<br />
<br />
What is the best way to achieve this ?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>sri_sssitc</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243399.html</guid>
		</item>
		<item>
			<title>Proglem with for loop</title>
			<link>http://www.daniweb.com/forums/thread243390.html</link>
			<pubDate>Thu, 03 Dec 2009 15:32:51 GMT</pubDate>
			<description><![CDATA[<div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with Code Tags</a> </div> <div> <strong>VB.NET Syntax</strong>...]]></description>
			<content:encoded><![CDATA[<div> <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; &nbsp; &nbsp; Dim name1(100) As String<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim Cal1(100) As String<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim i As Integer<br />
&nbsp; &nbsp; &nbsp; &nbsp; For i = 0 To 10 Step 1<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; name1(i) = GridView1.SelectedDataKey.Item(1)<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Next i</pre><br />
i want to store the selected value into an array<br />
then display the array in a text box<br />
<br />
 <pre style="margin:20px; line-height:13px">Label5.Text = name1(0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Label6.Text = name1(1)</pre><br />
it woirks however it shows the same array contents for both<br />
<br />
eg picke coke for array 1<br />
and pepsi array 2<br />
<br />
 label5.text will show coke <br />
as will label6.text<br />
<br />
i want 5 to eqaul first array<br />
6 to show second array</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>osirion666</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243390.html</guid>
		</item>
		<item>
			<title>Can the code in a VB executable file be viewed?</title>
			<link>http://www.daniweb.com/forums/thread243324.html</link>
			<pubDate>Thu, 03 Dec 2009 10:57:59 GMT</pubDate>
			<description><![CDATA[Part of the app I am writing allows users to create an encrypted, password-protected output file that they can email safely to a central store. I can't have the users choose their own password for the encryption as the central store needs to access the contents of all the output files emailed to...]]></description>
			<content:encoded><![CDATA[<div>Part of the app I am writing allows users to create an encrypted, password-protected output file that they can email safely to a central store. I can't have the users choose their own password for the encryption as the central store needs to access the contents of all the output files emailed to it. So there is one password that gets set within my vb app.<br />
<br />
I am worried that security will be compromised if the vb executable is somehow deconstructed? Is it possible to read the contents of an exe file (and thus find out the password)?<br />
<br />
If so, any suggestions as to how I can get around this problem?<br />
<br />
Many thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>JohnDove</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243324.html</guid>
		</item>
		<item>
			<title>Silent close of MS Word in VB.NET</title>
			<link>http://www.daniweb.com/forums/thread243319.html</link>
			<pubDate>Thu, 03 Dec 2009 10:16:34 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I'm writing a function that takes a word doc and returns the number of pages in it.  I have the function working and returning pages except that it opens a Word dialog asking if I want to save changes - does anyone know how to stop this? I have the document running "silently" in the...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I'm writing a function that takes a word doc and returns the number of pages in it.  I have the function working and returning pages except that it opens a Word dialog asking if I want to save changes - does anyone know how to stop this? I have the document running &quot;silently&quot; in the background so I don't want to spoil the feel by prompting for saves.<br />
Here is my code:<br />
 <pre style="margin:20px; line-height:13px">Private Function CountWordPages(ByRef Doc As String) As Integer<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim oWord As Object<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim WD_Doc As Word.Document<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim intCount As Integer = 0<br />
&nbsp; &nbsp; &nbsp; &nbsp; On Error GoTo ErrorHandler<br />
&nbsp; &nbsp; &nbsp; &nbsp; oWord = CreateObject(&quot;Word.Application&quot;) 'late bind for differing versions of word<br />
&nbsp; &nbsp; &nbsp; &nbsp; WD_Doc = oWord.Documents.Open(Doc, True, True, False, , , , , , , , False) 'open silently in background<br />
&nbsp; &nbsp; &nbsp; &nbsp; intCount = WD_Doc.ComputeStatistics(Word.WdStatistic.wdStatisticPages) 'get count<br />
&nbsp; &nbsp; &nbsp; &nbsp; WD_Doc = Nothing 'done with the doc<br />
&nbsp; &nbsp; &nbsp; &nbsp; oWord.Application.Quit() ' close the app<br />
&nbsp; &nbsp; &nbsp; &nbsp; oWord = Nothing 'tidy up<br />
&nbsp; &nbsp; &nbsp; &nbsp; CountWordPages = intCount 'return count<br />
&nbsp; &nbsp; &nbsp; &nbsp; Exit Function<br />
ErrorHandler:<br />
&nbsp; &nbsp; &nbsp; &nbsp; DisplayError(Err.Number, Err.Description)<br />
&nbsp; &nbsp; End Function</pre>Thanks in advance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>G_Waddell</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243319.html</guid>
		</item>
		<item>
			<title>Can eclipse compile and debug vb.net projects?</title>
			<link>http://www.daniweb.com/forums/thread243310.html</link>
			<pubDate>Thu, 03 Dec 2009 09:38:53 GMT</pubDate>
			<description>Simple question one would think, but I am having trouble finding the answer. Eclipse.org promotes eclipse as being a Java IDE, but has many plugins and extensions.  
I was wondering if maybe there is a plugin or extension that would allow me to compile/debug vb.net projects in eclipse?</description>
			<content:encoded><![CDATA[<div>Simple question one would think, but I am having trouble finding the answer. Eclipse.org promotes eclipse as being a Java IDE, but has many plugins and extensions. <br />
I was wondering if maybe there is a plugin or extension that would allow me to compile/debug vb.net projects in eclipse?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>GL.Za</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243310.html</guid>
		</item>
		<item>
			<title>I need help about dynamicli changing tab page text</title>
			<link>http://www.daniweb.com/forums/thread243185.html</link>
			<pubDate>Wed, 02 Dec 2009 23:11:34 GMT</pubDate>
			<description><![CDATA[Hi, i have a project to generate code for TabControl. 
I'm doing 1 form whit textbox-es to enter the tabcontrol properties (name, size, pozition ...) For the number of the tab pages in the control i'm generating dynamicly another tab control with the number of tab pages entered in the tab control...]]></description>
			<content:encoded><![CDATA[<div>Hi, i have a project to generate code for TabControl.<br />
I'm doing 1 form whit textbox-es to enter the tabcontrol properties (name, size, pozition ...) For the number of the tab pages in the control i'm generating dynamicly another tab control with the number of tab pages entered in the tab control tab pages field <br />
<br />
 <pre style="margin:20px; line-height:13px">Public Sub TextBox_number_pages_TextChanged.....<br />
Dim tab_pages As TabPage<br />
Dim n As Integer = Convert.ToInt32(TextBox_number_pages.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; For i As Integer = 0 To n<br />
<br />
Dim TextBox_tp_name As New TextBox<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TextBox_tp_name.Text = &quot;&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TextBox_tp_name.Location = New Point(220, 30)<br />
tab_pages = New TabPage()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tab_pages.Parent = TabControl1<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tab_pages.Name = &quot;TabPage &quot; + Convert.ToString(i + 1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tab_pages.Text = tab_pages.Name<br />
tab_pages.Controls.Add(TextBox_tp_name)<br />
TabControl1.Controls.Add(tab_pages)</pre><br />
this is the part of the code, i have more fields. <br />
What i'm trying to do is when i enter the tab name in theTextBox_tp_name field in the generated dynamicly tab pages, the tab_pages.Text have to change when i enter a new name in the theTextBox_tp_name<br />
<br />
I thing that i can't explain exactly what i'm trying to do but i can't explain it without posting the whole code.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>ykornx</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243185.html</guid>
		</item>
		<item>
			<title>Get Outlook Email Address not in a Group</title>
			<link>http://www.daniweb.com/forums/thread243103.html</link>
			<pubDate>Wed, 02 Dec 2009 17:48:05 GMT</pubDate>
			<description><![CDATA[My first post here and I have a strange one.  I have a vb.net 2008 form that sends and email along with an attachment.   
 
I want to offer up a list of available email address to choose so my user doesn't make a typo. 
 
Problem is the email addresses are not part of any GAL / group because they...]]></description>
			<content:encoded><![CDATA[<div>My first post here and I have a strange one.  I have a vb.net 2008 form that sends and email along with an attachment.  <br />
<br />
I want to offer up a list of available email address to choose so my user doesn't make a typo.<br />
<br />
Problem is the email addresses are not part of any GAL / group because they are from outside the company.  However if my user begins to type the email address such as xyz outlook begins to make suggestions such as <a href="mailto:xyz@anothercompany.com">xyz@anothercompany.com</a>; <a href="mailto:xyz@noinagroup.com">xyz@noinagroup.com</a> because my user has either sent them an email in the past or recieved one.  Or if the user types a name outlook will suggest.<br />
Jon Doe &lt;jdoe@mycompany.com&gt;<br />
Jon D. Doe &lt;jondoe@hiscompany.com&gt;<br />
<br />
My question, where does outlook keep this list and how can I retreive it using vb.  I know how to get the Global Address book and the other contacts but I need the list of emails that are not associated with any groups but are in outlook.<br />
<br />
Hope this makes sense.<br />
<br />
Thanks in Advance.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>spxChrome</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243103.html</guid>
		</item>
		<item>
			<title>Change config file location</title>
			<link>http://www.daniweb.com/forums/thread243093.html</link>
			<pubDate>Wed, 02 Dec 2009 17:10:56 GMT</pubDate>
			<description><![CDATA[Hi Folks, 
 
I've just upgraded an old VB6 app to VB2008 - all has gone well and I'm pleased with the new .net features. 
 
However I need to  holds the common settings for all of the apps ona server (UNC path).  Previously I used an ini file on the server and the application was told to look there...]]></description>
			<content:encoded><![CDATA[<div>Hi Folks,<br />
<br />
I've just upgraded an old VB6 app to VB2008 - all has gone well and I'm pleased with the new .net features.<br />
<br />
However I need to  holds the common settings for all of the apps ona server (UNC path).  Previously I used an ini file on the server and the application was told to look there via a command switch.<br />
<br />
I understand that I'm trying to use .net in an old fashioned way by not packaging it for web update &amp;  delivery but that's a contraint of the architecture I need to work with.<br />
<br />
Is there any way to force my application to use the application.exe.config  file from a set location rather than the user data area that .net automatically writes it to?  Even if not on a server path, then in the application directory where we can push update it?<br />
<br />
Otherwise I'll need to rewrite it all again using ini files and losing the ease of the built in application settings...<br />
<br />
Many thanks for any help.<br />
<br />
Adam.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>adamwilden</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243093.html</guid>
		</item>
		<item>
			<title>how do i declare an array as a class</title>
			<link>http://www.daniweb.com/forums/thread243086.html</link>
			<pubDate>Wed, 02 Dec 2009 16:58:54 GMT</pubDate>
			<description>Im making a sim of a robocup for a project and it would really help make the code easier to read if I could have an array of players but I cant dim and array as new and my players are all a class I made called gameobject.   
How do I make an array of players as my class gameobject?</description>
			<content:encoded><![CDATA[<div>Im making a sim of a robocup for a project and it would really help make the code easier to read if I could have an array of players but I cant dim and array as new and my players are all a class I made called gameobject.  <br />
How do I make an array of players as my class gameobject?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>Chris11246</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243086.html</guid>
		</item>
		<item>
			<title>Read data from SQL</title>
			<link>http://www.daniweb.com/forums/thread243081.html</link>
			<pubDate>Wed, 02 Dec 2009 16:43:40 GMT</pubDate>
			<description><![CDATA[I am trying to read data from remote SQL base. I have written the function that works great if you need to get 1 Value , but when I want to read 2 or more value at from one query it doesn't work 
 
how can I fix it? 
 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right;...]]></description>
			<content:encoded><![CDATA[<div>I am trying to read data from remote SQL base. I have written the function that works great if you need to get 1 Value , but when I want to read 2 or more value at from one query it doesn't work<br />
<br />
how can I fix it?<br />
<br />
<br />
 <pre style="margin:20px; line-height:13px">Imports System.Data.SqlClient<br />
Public Class SQL<br />
&nbsp; &nbsp; Public MySQLconnection As SqlConnection<br />
&nbsp; &nbsp; Public MySQLcommand As SqlCommand<br />
&nbsp; &nbsp; Dim MySQLreader As SqlDataReader<br />
<br />
&nbsp; &nbsp; Public Function connectToSQL(ByVal ConnectionString As String) As String<br />
&nbsp; &nbsp; &nbsp; &nbsp; Try<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MySQLconnection = New SqlConnection(&quot;Data Source=mysource;Initial Catalog=testbase;User ID=MYuser;password=MyPass&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MySQLconnection.Open()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MySQLcommand = New SqlCommand(ConnectionString, MySQLconnection)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If ConnectionState.Open Then<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MySQLreader = MySQLcommand.ExecuteReader()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Catch ex As SqlException<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MsgBox(&quot;Connection Eror&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MsgBox(ex.Message)<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Try<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim ReadData As String<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim i As Integer = -1<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; While MySQLreader.Read<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; i += 1<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ReadData += MySQLreader.GetValue(i).ToString<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; End While<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Return ReadData<br />
&nbsp; &nbsp; &nbsp; &nbsp; MySQLconnection.Close()<br />
<br />
<br />
<br />
&nbsp; &nbsp; End Function<br />
&nbsp;  <br />
End Class</pre><br />
<br />
<br />
I am using this function like this:<br />
<br />
 <pre style="margin:20px; line-height:13px"><br />
&nbsp;Dim connectionstring As String<br />
&nbsp; &nbsp; &nbsp; &nbsp; connectionstring = (&quot;SELECT ID, username&nbsp; FROM [mybase].[myuser].[users] where username ='&quot; &amp; DataGridView1.SelectedCells(0).Value &amp; &quot;'&quot;)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim GetVaule As New SQL<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; MsgBox(GetVaule.connectToSQL(connectionstring))</pre>I want to get from this query both ID and username - but I receive only ID<br />
<br />
Please help me to fix it.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>ShemoPT</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243081.html</guid>
		</item>
		<item>
			<title>Best Book</title>
			<link>http://www.daniweb.com/forums/thread243063.html</link>
			<pubDate>Wed, 02 Dec 2009 15:29:00 GMT</pubDate>
			<description>Can anyone please send me the ebook for VB.NET 2005. 
Thank you</description>
			<content:encoded><![CDATA[<div>Can anyone please send me the ebook for VB.NET 2005.<br />
Thank you</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>pardeep3dec</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243063.html</guid>
		</item>
		<item>
			<title>Adding sql 2005 database entry in a text box</title>
			<link>http://www.daniweb.com/forums/thread242995.html</link>
			<pubDate>Wed, 02 Dec 2009 10:59:59 GMT</pubDate>
			<description><![CDATA[i was able to successfully connect my database using connection string, i am having a hard time finding tutorials on how to add the items in a textbox.  
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>i was able to successfully connect my database using connection string, i am having a hard time finding tutorials on how to add the items in a textbox. <br />
<br />
 <pre style="margin:20px; line-height:13px">Imports System.Data.SqlClient<br />
Public Class FrmMain<br />
&nbsp; &nbsp; Private Sub FrmMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim sqlconnection As New SqlConnection<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; sqlconnection.ConnectionString = &quot;server = PAL\SQLEXPRESS; Database=BESdb ; integrated security=true&quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sqlconnection.Open()<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Catch ex As Exception<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MsgBox(&quot;Connection to SQL Server Failed&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; End Try<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; End Sub</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>morph214</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242995.html</guid>
		</item>
		<item>
			<title><![CDATA[Working With Excel & Having Issues]]></title>
			<link>http://www.daniweb.com/forums/thread242924.html</link>
			<pubDate>Wed, 02 Dec 2009 03:43:53 GMT</pubDate>
			<description>First off, let me be honest in saying that this is homework.  I am not asking for it to be done for me, merely some help in figuring out what I have messed up.  Secondly, I am not good with VB, nor do I particularly care for it, but seeing as it is one of the languages being utilized in my...</description>
			<content:encoded><![CDATA[<div>First off, let me be honest in saying that this is homework.  I am not asking for it to be done for me, merely some help in figuring out what I have messed up.  Secondly, I am not good with VB, nor do I particularly care for it, but seeing as it is one of the languages being utilized in my Comparative Programming Languages class, I have one final assignment to complete with VB.  I cannot get this fundamental portion to work correctly to finish this assignment.  This is what I have for code so far:<br />
<br />
 <pre style="margin:20px; line-height:13px">Imports Microsoft.Office.Interop<br />
Imports System.IO<br />
<br />
Public Class Form1<br />
&nbsp; &nbsp; 'declare workbook variable<br />
&nbsp; &nbsp; Dim wb As Excel.Windows<br />
<br />
&nbsp; &nbsp; Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles buttonListGenerator.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim ex As New Excel.Application<br />
&nbsp; &nbsp; &nbsp; &nbsp; wb = ex.Workbooks.Add<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'confirm/deny existance of directory<br />
&nbsp; &nbsp; &nbsp; &nbsp; If Directory.Exists(Me.textPath.Text) Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'prompt user of where to save file<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim dialog As New SaveFileDialog<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim result As DialogResult = dialog.ShowDialog<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'do this if user clicks 'cancel' <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If result = Windows.Forms.DialogResult.OK Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'build folder structure<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.BuildFolder(New DirectoryInfo(Me.textPath.Text))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wb.SaveAs(dialog.FileName)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'show spreadsheet<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ex.Visible = True<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'enable workbook<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wb.Activate()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; 'function that creates a worksheet with file names <br />
&nbsp; &nbsp; Protected Sub BuildFolder(ByVal Directory As DirectoryInfo)<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'confirm/deny existance of files in directory<br />
&nbsp; &nbsp; &nbsp; &nbsp; If Directory.GetFiles.Length &gt; 0 Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'create new sheet and set its name in directory<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim sheet As Excel.Worksheet = wb.Worksheets.Add<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sheet.Name = CheckName(Directory.Name)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim files As FileInfo() = Directory.GetFiles<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim f As FileInfo<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'create int used to navigate cells &amp; set its value to 1<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim i As Integer = 1<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; For Each f In files<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'write the file name to the cell<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sheet.Cells(i, 1) = f.Name<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; i += 1<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Next<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim dirs As DirectoryInfo() = Directory.GetDirectories<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim d As DirectoryInfo<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'Recurse subfolders<br />
&nbsp; &nbsp; &nbsp; &nbsp; For Each d In dirs<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BuildFolder(d)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Next<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; 'function that confirms/denies prior existance of sheet in book<br />
&nbsp; &nbsp; Protected Function CheckName(ByVal Name As String) As String<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim s As Excel.Worksheet<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim exists As Boolean = False<br />
&nbsp; &nbsp; &nbsp; &nbsp; For Each s In wb.Worksheets<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If UCase(s.Name) = UCase(Name) Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'append a 1 to name's end &amp; recheck<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Name = CheckName(Name &amp; &quot;(1)&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; Next<br />
&nbsp; &nbsp; &nbsp; &nbsp; Return Name<br />
&nbsp; &nbsp; End Function<br />
End Class</pre><br />
Line 1 ( <pre style="margin:20px; line-height:13px">Imports Microsoft.Office.Interop</pre>) says that it cannot be found.  <br />
<br />
Upon attempting to debug, and clicking the button, it tells me, &quot;InvalidCastException was unhandled&quot; for the line  <pre style="margin:20px; line-height:13px">wb = ex.Workbooks.Add</pre>.  <br />
<br />
Someone, PLEASE help me suffer through this so that I can focus on getting better with the languages I actually enjoy.  Thanks in advance for any tips you have.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>kahaj</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242924.html</guid>
		</item>
		<item>
			<title>Calling a public sub... Nothing happens?</title>
			<link>http://www.daniweb.com/forums/thread242886.html</link>
			<pubDate>Wed, 02 Dec 2009 00:20:13 GMT</pubDate>
			<description><![CDATA[Hi guys, 
 
Im having trouble with this code, when i had it working with static variables set, it was fine, now i am using a passed variable, its not working... Might not be anything to do with it, anyhow... 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right;...]]></description>
			<content:encoded><![CDATA[<div>Hi guys,<br />
<br />
Im having trouble with this code, when i had it working with static variables set, it was fine, now i am using a passed variable, its not working... Might not be anything to do with it, anyhow...<br />
<br />
 <pre style="margin:20px; line-height:13px">Public Class frmContacts<br />
&nbsp; &nbsp; Dim con As New OleDb.OleDbConnection<br />
&nbsp; &nbsp; Dim ds As New DataSet<br />
&nbsp; &nbsp; Dim da As OleDb.OleDbDataAdapter<br />
&nbsp; &nbsp; Dim sql As String<br />
&nbsp; &nbsp; Dim projectid As Integer<br />
&nbsp; &nbsp; Private Sub frmContacts_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Call reload()<br />
<br />
&nbsp; &nbsp; End Sub<br />
&nbsp; &nbsp; Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click<br />
<br />
&nbsp; &nbsp; End Sub<br />
&nbsp; &nbsp; Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClose.Click<br />
<br />
&nbsp; &nbsp; End Sub<br />
&nbsp; &nbsp; Public Sub clear()<br />
&nbsp; &nbsp; &nbsp; &nbsp; ds.Tables(&quot;contacts&quot;).Clear()<br />
<br />
&nbsp; &nbsp; End Sub<br />
&nbsp; &nbsp; Public Sub reload()<br />
&nbsp; &nbsp; &nbsp; &nbsp; con.ConnectionString = &quot;PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source = C:\EZaudit.mdb&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; con.Open()<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; sql = &quot;SELECT id As pk, contacts.p_id As id, contacts.con_name as Name, contacts.con_position AS JobTitle, contacts.con_email AS Email, contacts.con_phone AS PhoneNo FROM contacts WHERE contacts.p_id=&quot; &amp; projectid &amp; &quot;&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; da = New OleDb.OleDbDataAdapter(sql, con)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; da.Fill(ds, &quot;contacts&quot;)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; con.Close()<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; dgCon.DataSource = ds.Tables(&quot;contacts&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; dgCon.Visible = True<br />
&nbsp; &nbsp; &nbsp; &nbsp; dgCon.Columns(&quot;id&quot;).Visible = False<br />
&nbsp; &nbsp; &nbsp; &nbsp; dgCon.Columns(&quot;pk&quot;).Visible = False<br />
&nbsp; &nbsp; &nbsp; &nbsp; dgCon.Columns(&quot;Name&quot;).Width = 100<br />
&nbsp; &nbsp; &nbsp; &nbsp; dgCon.Columns(&quot;JobTitle&quot;).Width = 100<br />
&nbsp; &nbsp; &nbsp; &nbsp; dgCon.Columns(&quot;Email&quot;).Width = 145<br />
&nbsp; &nbsp; &nbsp; &nbsp; dgCon.Columns(&quot;PhoneNo&quot;).Width = 120<br />
&nbsp; &nbsp; End Sub<br />
&nbsp; &nbsp; Private Sub btnCreate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCreate.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim entry As New frmConEntry()<br />
&nbsp; &nbsp; &nbsp; &nbsp; entry.ProjectId3 = projectid<br />
&nbsp; &nbsp; &nbsp; &nbsp; entry.Show()<br />
&nbsp; &nbsp; End Sub<br />
&nbsp; &nbsp; Private Sub btnUpdate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnUpdate.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim cb As New OleDb.OleDbCommandBuilder(da)<br />
&nbsp; &nbsp; &nbsp; &nbsp; da.Update(ds, &quot;contacts&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; MsgBox(&quot;Records Updated&quot;)<br />
&nbsp; &nbsp; End Sub<br />
&nbsp; &nbsp; Public Property ProjectId5() As String<br />
&nbsp; &nbsp; &nbsp; &nbsp; Get<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Return projectid<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Get<br />
&nbsp; &nbsp; &nbsp; &nbsp; Set(ByVal Value As String)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; projectid = Value<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Set<br />
&nbsp; &nbsp; End Property<br />
<br />
&nbsp; &nbsp; Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; Me.clear()<br />
&nbsp; &nbsp; &nbsp; &nbsp; Me.reload()<br />
<br />
&nbsp; &nbsp; End Sub<br />
End Class</pre><br />
The 2 public subs being clear, and reload.<br />
<br />
If i call them within the same form - with button2.click, then it works as it should... but the following code in another form...<br />
<br />
 <pre style="margin:20px; line-height:13px">Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim cb As New OleDb.OleDbCommandBuilder(da)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim dsNewRow As DataRow<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; dsNewRow = ds.Tables(&quot;contacts&quot;).NewRow()<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; dsNewRow.Item(&quot;id&quot;) = projectid<br />
&nbsp; &nbsp; &nbsp; &nbsp; dsNewRow.Item(&quot;Name&quot;) = txtName.Text<br />
&nbsp; &nbsp; &nbsp; &nbsp; dsNewRow.Item(&quot;JobTitle&quot;) = txtJTitle.Text<br />
&nbsp; &nbsp; &nbsp; &nbsp; dsNewRow.Item(&quot;Email&quot;) = txtEmail.Text<br />
&nbsp; &nbsp; &nbsp; &nbsp; dsNewRow.Item(&quot;PhoneNo&quot;) = txtPhoneNo.Text<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; ds.Tables(&quot;contacts&quot;).Rows.Add(dsNewRow)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; da.Update(ds, &quot;contacts&quot;)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; MsgBox(&quot;New Record added to the Database&quot;)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; txtName.Text = &quot;&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; txtJTitle.Text = &quot;&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; txtEmail.Text = &quot;&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; txtPhoneNo.Text = &quot;&quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; frmContacts.clear()<br />
&nbsp; &nbsp; &nbsp; &nbsp; frmContacts.reload()<br />
&nbsp; &nbsp; End Sub</pre><br />
frmContacts.clear(), just does not clear, it gives a &quot;NullReferenceException - Object reference not set to an instance of an object&quot; and the reload doesn't seem to reload the set of data which was loaded the first time round...<br />
<br />
Very Confusing... Any ideas? Everything else is working fine, but i dont want to have to click a button to refresh the table every time i add a contact in a seperate form...<br />
<br />
Any ideas?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>ineedalotohelp</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242886.html</guid>
		</item>
		<item>
			<title>how to copy random records from one table to another table</title>
			<link>http://www.daniweb.com/forums/thread242882.html</link>
			<pubDate>Tue, 01 Dec 2009 23:30:58 GMT</pubDate>
			<description>hi i m using Asp.net and i want copy random 20 records from one table to another table in ms access database using Asp.net. 
 
and also i want have My primary key 1 to 20 in new table . if any one can help that would be really helpful thx</description>
			<content:encoded><![CDATA[<div>hi i m using Asp.net and i want copy random 20 records from one table to another table in ms access database using Asp.net.<br />
<br />
and also i want have My primary key 1 to 20 in new table . if any one can help that would be really helpful thx</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>emint</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242882.html</guid>
		</item>
		<item>
			<title>VB 2008- Populating a checked List box</title>
			<link>http://www.daniweb.com/forums/thread242876.html</link>
			<pubDate>Tue, 01 Dec 2009 23:03:16 GMT</pubDate>
			<description><![CDATA[Hi I'm new to VB and was working on a small app that needs to populat or update a checked listbox. I have the code written it copiles without error. No syntax errors. But it does not execute the way expected. So there is probably some simple logic error that I am missing.  Once th update button is...]]></description>
			<content:encoded><![CDATA[<div>Hi I'm new to VB and was working on a small app that needs to populat or update a checked listbox. I have the code written it copiles without error. No syntax errors. But it does not execute the way expected. So there is probably some simple logic error that I am missing.  Once th update button is chosen the user should be able to add to the items hit update and the checked list box be refreshed. Any help will be greatly appreciated.<br />
<br />
Thanks<br />
[code=vb]<br />
 <pre style="margin:20px; line-height:13px">Public Class FrmThird<br />
&nbsp; &nbsp; 'Dim SecondForm As New frmSecond<br />
&nbsp; &nbsp; 'Dim ThirdForm3 As New FrmThird<br />
&nbsp; &nbsp; Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.Click<br />
<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; If TextBox1.Text &lt;&gt; &quot;&quot; Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If frmSecond.CheckedListBox1.CheckedItems.Contains(TextBox1.Text) = True Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; frmSecond.CheckedListBox1.Items.Add(CType(TextBox1.Text, String), CheckState.Checked)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'TextBox1.Text = &quot;&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'End If<br />
&nbsp; &nbsp; End Sub 'button1_Click<br />
<br />
&nbsp; &nbsp; 'End Sub<br />
<br />
&nbsp; &nbsp; Private Sub FrmThird_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br />
<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; 'Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged<br />
<br />
&nbsp; &nbsp; 'End Sub<br />
End Class</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>smccrary123</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242876.html</guid>
		</item>
		<item>
			<title>Compile problem, cannot run .exe on some machines</title>
			<link>http://www.daniweb.com/forums/thread242875.html</link>
			<pubDate>Tue, 01 Dec 2009 22:51:29 GMT</pubDate>
			<description>I had a fair amount of experience with much older versions of VB, but recently made the switch to VB.net and am trying to figure my way out through the changes. 
I have a small form program that is basically an interface for installing different software packages so that we can distribute a CD with...</description>
			<content:encoded><![CDATA[<div>I had a fair amount of experience with much older versions of VB, but recently made the switch to VB.net and am trying to figure my way out through the changes.<br />
I have a small form program that is basically an interface for installing different software packages so that we can distribute a CD with our products that our customers can just pop in the drive, autorun, and click the button to install what they need.  The problem that I am running into is unlike when I had built this same program in VB6, the program rewritten in VB.net will not run on some machines, and shows me an error:<br />
<br />
.net Framework initialization error<br />
required version of .net framework v2.0.50727<br />
<br />
I realize that it is asking for that version of .net framework in order to run, but what I would really like to know is if there is a way to make my exe non-dependant on this so that it will run on any machine.  Requiring my customers to install .net framework in order to access an interface designed just to idiotproof the installation of some setup files and provide easy access to a few pdf's really would just defeat the purpose.<br />
<br />
Any help on this would be greatly appreciated... it's really giving me a headache.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>shorty1523</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242875.html</guid>
		</item>
		<item>
			<title>adding to list box</title>
			<link>http://www.daniweb.com/forums/thread242861.html</link>
			<pubDate>Tue, 01 Dec 2009 21:08:16 GMT</pubDate>
			<description>Hey guys, 
 
The idea with this form is to add the futures which is calculated when the button is pushed but I need the list to update every time and show the values each time to which the previous value is added to the new calculation, e.g. of what it should look like in listbox: 
 
Year 1:...</description>
			<content:encoded><![CDATA[<div>Hey guys,<br />
<br />
The idea with this form is to add the futures which is calculated when the button is pushed but I need the list to update every time and show the values each time to which the previous value is added to the new calculation, e.g. of what it should look like in listbox:<br />
<br />
Year 1: $1,290.93<br />
Year 2: $2,724.32<br />
Year 3: $4,350.76<br />
etc....<br />
<br />
I have been working on this a while and I am at a standstill, I was given a function to clear the form everytime it calculates but I don't know how to implement it, I am new to VB. Here is what I have so far:<br />
<br />
 <pre style="margin:20px; line-height:13px">Public Class frmFutureValue<br />
<br />
&nbsp; &nbsp; Private Sub btnCalculate_Click(ByVal sender As System.Object, _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ByVal e As System.EventArgs) Handles btnCalculate.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; Try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If IsValidData() Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim monthlyInvestment As Decimal _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = Convert.ToDecimal(txtMonthlyInvestment.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim yearlyInterestRate As Decimal _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = Convert.ToDecimal(txtInterestRate.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim years As Integer = Convert.ToInt32(cmbYears)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim monthlyInterestRate As Decimal = yearlyInterestRate / 12 / 100<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim months As Integer = years * 12<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim futureValue As Decimal = Me.FutureValue( _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; monthlyInvestment, monthlyInterestRate, months)<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lstFuture.Text = FormatCurrency(futureValue)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; txtMonthlyInvestment.Select()<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; Catch ex As Exception<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.Show(ex.Message &amp; vbCrLf &amp; vbCrLf _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &amp; ex.GetType.ToString &amp; vbCrLf &amp; vbCrLf _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &amp; ex.StackTrace, &quot;Exception&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Try<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Private Function IsValidData() As Boolean<br />
&nbsp; &nbsp; &nbsp; &nbsp; Return _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IsPresent(txtMonthlyInvestment, &quot;Monthly Investment&quot;) AndAlso _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IsDecimal(txtMonthlyInvestment, &quot;Monthly Investment&quot;) AndAlso _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IsWithinRange(txtMonthlyInvestment, &quot;Monthly Investment&quot;, 1, 1000) AndAlso _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IsPresent(txtInterestRate, &quot;Yearly Interest Rate&quot;) AndAlso _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IsDecimal(txtInterestRate, &quot;Yearly Interest Rate&quot;) AndAlso _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IsWithinRange(txtInterestRate, &quot;Yearly Interest Rate&quot;, 1, 15)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; End Function<br />
<br />
&nbsp; &nbsp; Private Function IsPresent(ByVal textBox As TextBox, ByVal name As String) _<br />
&nbsp; &nbsp; &nbsp; &nbsp; As Boolean<br />
&nbsp; &nbsp; &nbsp; &nbsp; If textBox.Text = &quot;&quot; Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.Show(name &amp; &quot; is a required field.&quot;, &quot;Entry Error&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; textBox.Select()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Return False<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; Return True<br />
&nbsp; &nbsp; End Function<br />
<br />
&nbsp; &nbsp; Private Function IsDecimal(ByVal textBox As TextBox, ByVal name As String) _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; As Boolean<br />
&nbsp; &nbsp; &nbsp; &nbsp; Try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Convert.ToDecimal(textBox.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Return True<br />
&nbsp; &nbsp; &nbsp; &nbsp; Catch ex As FormatException<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.Show(name &amp; &quot; must be a decimal value.&quot;, &quot;Entry Error&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; textBox.Select()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; textBox.SelectAll()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Return False<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Try<br />
<br />
&nbsp; &nbsp; End Function<br />
<br />
&nbsp; &nbsp; Private Function IsInt32(ByVal textBox As TextBox, ByVal name As String) _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; As Boolean<br />
&nbsp; &nbsp; &nbsp; &nbsp; Try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Convert.ToInt32(textBox.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Return True<br />
&nbsp; &nbsp; &nbsp; &nbsp; Catch ex As FormatException<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.Show(name &amp; &quot; must be an integer value.&quot;, &quot;Entry Error&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; textBox.Select()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; textBox.SelectAll()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Return False<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Try<br />
&nbsp; &nbsp; End Function<br />
<br />
&nbsp; &nbsp; Private Function IsWithinRange(ByVal textBox As TextBox, _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ByVal name As String, ByVal min As Decimal, _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ByVal max As Decimal) As Boolean<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim number As Decimal = CDec(textBox.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; If number &lt; min Or number &gt; max Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.Show(name &amp; &quot; must be between &quot; &amp; min &amp; &quot; and &quot; _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &amp; max &amp; &quot;.&quot;, &quot;Entry Error&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; textBox.Select()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; textBox.SelectAll()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Return False<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; Return True<br />
&nbsp; &nbsp; End Function<br />
<br />
&nbsp; &nbsp; Private Function FutureValue(ByVal monthlyInvestment As Decimal, _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ByVal monthlyInterestRate As Decimal, ByVal months As Integer) _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; As Decimal<br />
&nbsp; &nbsp; &nbsp; &nbsp; For i As Integer = 1 To months<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FutureValue = (FutureValue + monthlyInvestment) _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; * (1 + monthlyInterestRate)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Next<br />
&nbsp; &nbsp; End Function<br />
<br />
&nbsp; &nbsp; Private Sub ClearFutureValue(ByVal sender As System.Object, _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ByVal e As System.EventArgs) Handles txtMonthlyInvestment.TextChanged, _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  txtInterestRate.TextChanged<br />
&nbsp; &nbsp; &nbsp; &nbsp; lstFuture.Text = &quot;&quot;<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Private Sub btnExit_Click(ByVal sender As System.Object, _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ByVal e As System.EventArgs) Handles btnExit.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; Me.Close()<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Private Sub frmFutureValue_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br />
&nbsp; &nbsp; &nbsp; &nbsp; cmbYears.Items.Add(&quot;1&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; cmbYears.Items.Add(&quot;2&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; cmbYears.Items.Add(&quot;3&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; cmbYears.Items.Add(&quot;4&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; cmbYears.Items.Add(&quot;5&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; cmbYears.Items.Add(&quot;6&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; cmbYears.Items.Add(&quot;7&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; cmbYears.Items.Add(&quot;8&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; cmbYears.Items.Add(&quot;9&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; cmbYears.Items.Add(&quot;10&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; cmbYears.Items.Add(&quot;11&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; cmbYears.Items.Add(&quot;12&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; cmbYears.Items.Add(&quot;13&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; cmbYears.Items.Add(&quot;14&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; cmbYears.Items.Add(&quot;15&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; cmbYears.Items.Add(&quot;16&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; cmbYears.Items.Add(&quot;17&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; cmbYears.Items.Add(&quot;18&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; cmbYears.Items.Add(&quot;19&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; cmbYears.Items.Add(&quot;20&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; cmbYears.SelectedIndex = 2<br />
&nbsp; &nbsp; End Sub<br />
End Class</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>songweaver</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242861.html</guid>
		</item>
		<item>
			<title>converting a string to DataRow</title>
			<link>http://www.daniweb.com/forums/thread242858.html</link>
			<pubDate>Tue, 01 Dec 2009 20:57:23 GMT</pubDate>
			<description><![CDATA[I have a combobox that pulls a list of values from a database. When a new entry is entered I want an entry in the combobox to read "New record". However, from what I have seen I can only insert and object, such as a DataRow, into the combobox. Is there anyway I can convert a string to to a DataRow,...]]></description>
			<content:encoded><![CDATA[<div>I have a combobox that pulls a list of values from a database. When a new entry is entered I want an entry in the combobox to read &quot;New record&quot;. However, from what I have seen I can only insert and object, such as a DataRow, into the combobox. Is there anyway I can convert a string to to a DataRow, or some other object and insert it in  to the combobox? I know there is I am just rusty on my vb.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>jt_murphree</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242858.html</guid>
		</item>
		<item>
			<title>having trouble connecting to mysql :(</title>
			<link>http://www.daniweb.com/forums/thread242851.html</link>
			<pubDate>Tue, 01 Dec 2009 20:33:35 GMT</pubDate>
			<description>hello dear friends 
 
i installed visual studio ( full installation) 
 
then i got xampp from their site 
 
i have mysql and apache running 
 
i downloaded the connector from mysql site and i created a simple project to check if i can connect to mysql or not i have made this code so far</description>
			<content:encoded><![CDATA[<div>hello dear friends<br />
<br />
i installed visual studio ( full installation)<br />
<br />
then i got xampp from their site<br />
<br />
i have mysql and apache running<br />
<br />
i downloaded the connector from mysql site and i created a simple project to check if i can connect to mysql or not i have made this code so far<br />
<br />
 <pre style="margin:20px; line-height:13px">Imports System.Data.SqlClient<br />
<br />
Public Class Form1<br />
<br />
&nbsp; &nbsp; Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim Connection As String = &quot;Data source=localhost;user=root;password=;Initial Catalog=test;Integrated Security=true;&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim cn As New SqlConnection(Connection)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cn.Open()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.Show(&quot;success&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Catch ex As Exception<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.Show(ex.Message)<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Try<br />
&nbsp; &nbsp; End Sub<br />
End Class</pre><br />
im having trouble with an exception though it says<br />
<br />
{&quot;A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)&quot;}<br />
<br />
how can i get rid of this, is it because i installed mysql 2005 with visual studio 2008? and maybe it runs with xampp's mysql and creates these problems?<br />
<br />
thanks in advance :))))</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>kostasxx</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242851.html</guid>
		</item>
		<item>
			<title>still need help deleting selected item</title>
			<link>http://www.daniweb.com/forums/thread242800.html</link>
			<pubDate>Tue, 01 Dec 2009 16:38:04 GMT</pubDate>
			<description><![CDATA[I'm using a combobox connected to my account numbers in mysql..I want to take the selecteditem and put it in the delete row string for mysql using vb.net....her is what I have so far and it wont delete the seleted..any help will do.... 
 
  <div class="codeblock"> <div class="spaced"> <div...]]></description>
			<content:encoded><![CDATA[<div>I'm using a combobox connected to my account numbers in mysql..I want to take the selecteditem and put it in the delete row string for mysql using vb.net....her is what I have so far and it wont delete the seleted..any help will do....<br />
<br />
 <pre style="margin:20px; line-height:13px">Private Sub btnDelete_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDelete.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'delete selected row from database<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim Ans As MsgBoxResult<br />
&nbsp; &nbsp; &nbsp; &nbsp; ' Set icon to exclamation mark<br />
&nbsp; &nbsp; &nbsp; &nbsp; ' Set buttons to OK and Cancel<br />
&nbsp; &nbsp; &nbsp; &nbsp; ' Show Message Box<br />
&nbsp; &nbsp; &nbsp; &nbsp; Ans = MsgBox(&quot;Are you sure you want to Delete Selected Account?&quot;, vbYesNo + vbExclamation, &quot;Yes or No&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ' If the user clicked no exit sub<br />
&nbsp; &nbsp; &nbsp; &nbsp; If Ans = vbNo Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Exit Sub<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'if the user clicked yes then delete selected row from database<br />
&nbsp; &nbsp; &nbsp; &nbsp; If Ans = vbYes Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim account_number As String<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; account_number = CBAccountNumber.SelectedItem(1)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim mysql As String<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mysql = &quot;SELECT * DELETE FROM customer WHERE account_number=&quot;&quot;&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ' selects dependent record from Contacts, deletes then refreshes<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Me.Close()</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>twalton42</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242800.html</guid>
		</item>
		<item>
			<title>How to register DLL file in Windows System32</title>
			<link>http://www.daniweb.com/forums/thread242782.html</link>
			<pubDate>Tue, 01 Dec 2009 14:41:02 GMT</pubDate>
			<description>Hi guys, 
 
Anybody can help me out with this. I have made a DLL with VB.net. Under project settings i have marked checked 2 things 
1. Register for COM interop 
2. Make assembly COM visible 
 
When i build project its done successfully. Now i take DLL file from project location and copy it in...</description>
			<content:encoded><![CDATA[<div>Hi guys,<br />
<br />
Anybody can help me out with this. I have made a DLL with VB.net. Under project settings i have marked checked 2 things<br />
1. Register for COM interop<br />
2. Make assembly COM visible<br />
<br />
When i build project its done successfully. Now i take DLL file from project location and copy it in System32. Then on command prompt i use following command to register self creating DLL so that other vb.net programs can use my DLL and etc.<br />
<br />
I used: regsvr32 C:\windows\System32\abc.dll<br />
<br />
But when i press enter i get the following error message. Why this DLL file is not registering as a COM component<br />
Error is :<br />
-----------<br />
<span style="font-weight:bold">The module &quot;C:\windows\System32\abc.dll&quot; was loaded but the entry-point DllRegisterServer was not found<br />
Make sure that<br />
&quot;C:\windows\System32\abc.dll&quot; is a valid DLL or OCX file and then try again</span><br />
<br />
What is the solution for this. Quick reply will be appreciated.<br />
<br />
Regards<br />
<span style="font-weight:bold">Ahmed</span></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>ahmedlibrian</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242782.html</guid>
		</item>
		<item>
			<title>How to use OWC (MS Office Web Components) with VB.NET</title>
			<link>http://www.daniweb.com/forums/thread242714.html</link>
			<pubDate>Tue, 01 Dec 2009 10:21:33 GMT</pubDate>
			<description>Hi, 
 
Can someone please show me step by step how to use the Microsoft Office Spreadsheet COM component in VB.NET, and how to package and deploy it to a client machine which only runs XP with .NET framework 3.5. 
 
I am a newbie, please help. 
 
Thanks.</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
Can someone please show me step by step how to use the Microsoft Office Spreadsheet COM component in VB.NET, and how to package and deploy it to a client machine which only runs XP with .NET framework 3.5.<br />
<br />
I am a newbie, please help.<br />
<br />
Thanks.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>zainhansrod</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242714.html</guid>
		</item>
		<item>
			<title>Clear Word Checkbox Using VBA</title>
			<link>http://www.daniweb.com/forums/thread242710.html</link>
			<pubDate>Tue, 01 Dec 2009 09:53:31 GMT</pubDate>
			<description><![CDATA[I'm trying to write a simple macro in Word to clear the checkbox at the current cursor position. I'm sure this is simple, but I'm just an occasional hit and miss macro maker and the VBA help isn't helping. 
 
Apparently I need something like: 
 
ActiveDocument.FormFields("FieldName").CheckBox.Value...]]></description>
			<content:encoded><![CDATA[<div>I'm trying to write a simple macro in Word to clear the checkbox at the current cursor position. I'm sure this is simple, but I'm just an occasional hit and miss macro maker and the VBA help isn't helping.<br />
<br />
Apparently I need something like:<br />
<br />
ActiveDocument.FormFields(&quot;FieldName&quot;).CheckBox.Value = False<br />
<br />
But that would always clear a specific checkbox and I want to clear the checkbox at the current cursor position. How can I do that?<br />
<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>YossiD</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242710.html</guid>
		</item>
		<item>
			<title>VB.NET 2008 COMException (0x8001010A)</title>
			<link>http://www.daniweb.com/forums/thread242701.html</link>
			<pubDate>Tue, 01 Dec 2009 09:16:56 GMT</pubDate>
			<description><![CDATA[Hello guys,  
 
the last few days i've been looking for the solution, but to bad. Nowhere i seem to find it. I've found many posts about it, but none of them works for me. The problem: 
 
Last week we've stepped over to windows server 2008. Very nice..bla bla bla. However, now I can't create any...]]></description>
			<content:encoded><![CDATA[<div>Hello guys, <br />
<br />
the last few days i've been looking for the solution, but to bad. Nowhere i seem to find it. I've found many posts about it, but none of them works for me. The problem:<br />
<br />
Last week we've stepped over to windows server 2008. Very nice..bla bla bla. However, now I can't create any excel application anymore. Well, the process get's created, but doens't do anything.<br />
The strange part is: when i remote login to the server (2008), it does work, so i thought it was something with the rights. But when i open everything for com+, excel(launching users, etc. etc.), it still doesn't work. What is the differance when i am logged in (random user is fine), and when i am not logged in?<br />
<br />
the code:<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  'Excel.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim exApplication As Excel.ApplicationClass = Nothing<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim exBooks As Excel.Workbooks = Nothing<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim exBook As Excel.Workbook = Nothing<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim exSheets As Excel.Sheets = Nothing<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim exSheet As Excel.Worksheet = Nothing<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim exRange As Excel.Range = Nothing<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'Excel.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ToolboxTracing.LogInfo(&quot;Excel object aanmaken.&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:Red">exApplication = New Excel.Application</span> 'CType(CreateObject(&quot;Excel.Application&quot;), Excel.Application) ' <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ToolboxTracing.LogInfo(&quot;aangemaakt.&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exBooks = exApplication.Workbooks<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ToolboxTracing.LogInfo(&quot;Workbooks toegevoegd.&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exBook = exBooks.Open(xlsFileName, False, True)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exSheets = exBook.Worksheets<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exSheet = CType(exSheets.Item(sheetUuf), Excel.Worksheet) 'CType(exSheets.Item(sheetData), Excel.Worksheet)</pre><br />
note: creating an oulook application works perfect!<br />
 <pre style="margin:20px; line-height:13px">Dim olApplication As Outlook.Application = Nothing<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim olItem As Outlook.MailItem = Nothing<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim olAttachments As Outlook.Attachments = Nothing<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'XML Importeren.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ToolboxTracing.LogInfo(&quot;aaanmaken outlook.application&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; olApplication = New Outlook.ApplicationClass 'CType(CreateObject(&quot;Outlook.Application&quot;), Outlook.Application) '<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ToolboxTracing.LogInfo(&quot;Outlook aangemaakt.&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; olItem = CType(olApplication.CreateItemFromTemplate(msgFileName), Outlook.MailItem)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; olAttachments = olItem.Attachments<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ToolboxTracing.LogInfo(&quot;Items aangemaakt.&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; For iAttachment As Integer = 1 To olAttachments.Count '1-Based.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim olAttachment As Outlook.Attachment = olAttachments(iAttachment)</pre><br />
Thnx, <br />
Roel</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>Roetje</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242701.html</guid>
		</item>
		<item>
			<title>Using a counter in a game</title>
			<link>http://www.daniweb.com/forums/thread243045.html</link>
			<pubDate>Tue, 01 Dec 2009 01:39:05 GMT</pubDate>
			<description><![CDATA[ahm can anyone help me  on my basketball scoreboard system... 
my problem is that i don't know how to do the code for the buzzer will buzz when the set time is done...please help me...please 
thank you]]></description>
			<content:encoded><![CDATA[<div>ahm can anyone help me  on my basketball scoreboard system...<br />
my problem is that i don't know how to do the code for the buzzer will buzz when the set time is done...please help me...please<br />
thank you</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>jeffpray</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243045.html</guid>
		</item>
		<item>
			<title>Problem with form</title>
			<link>http://www.daniweb.com/forums/thread242597.html</link>
			<pubDate>Mon, 30 Nov 2009 23:19:28 GMT</pubDate>
			<description>Hey guys, 
 
I have been working on this problem for a while and wanted to see if you could spot what the problem is. This form is used so I can add a customer to the list which calls up another form for the adding. And also has an option for deleting a customer off the list. Visual Studio is...</description>
			<content:encoded><![CDATA[<div>Hey guys,<br />
<br />
I have been working on this problem for a while and wanted to see if you could spot what the problem is. This form is used so I can add a customer to the list which calls up another form for the adding. And also has an option for deleting a customer off the list. Visual Studio is giving me an error for the procedure that refreshes the list. It is giving me an error when I try to add the break tab to separate the customers on the list. It is giving me an error about an Option Strict On not allowing implicit conversions from 'String' to 'Integer' What am I doing wrong? Here is what I have:<br />
<br />
 <pre style="margin:20px; line-height:13px">Imports Microsoft.VisualBasic<br />
<br />
Public Class frmCustomerMaintenance<br />
&nbsp; &nbsp; Private customers As List(Of Customer)<br />
<br />
&nbsp; &nbsp; Private Sub frmCustomerMaintenance_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br />
&nbsp; &nbsp; &nbsp; &nbsp; customers = CustomerDB.GetCustomers<br />
&nbsp; &nbsp; &nbsp; &nbsp; For Each Customer As Customer In customers<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Customer.GetDisplayText()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.FillCustomersListBox()<br />
&nbsp; &nbsp; &nbsp; &nbsp; Next<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Private Sub FillCustomersListBox()<br />
&nbsp; &nbsp; &nbsp; &nbsp; lstCustomers.Items.Clear()<br />
&nbsp; &nbsp; &nbsp; &nbsp; For Each c As Customer In customers<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lstCustomers.Items.Add(c.GetDisplayText(vbTab)) ' This is where I am getting the error<br />
&nbsp; &nbsp; &nbsp; &nbsp; Next<br />
&nbsp; &nbsp; End Sub<br />
<br />
<br />
&nbsp; &nbsp; Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim newCustomerForm As New frmAddCustomer<br />
&nbsp; &nbsp; &nbsp; &nbsp; newCustomerForm.ShowDialog()<br />
&nbsp; &nbsp; &nbsp; &nbsp; If newCustomerForm.Customer IsNot Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; customers.Add(newCustomerForm.Customer)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CustomerDB.SaveCustomers(customers)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.FillCustomersListBox()<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Private Sub btnDelete_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDelete.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim c As Integer = lstCustomers.SelectedIndex<br />
&nbsp; &nbsp; &nbsp; &nbsp; If c &lt;&gt; -1 Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim customer As Customer = customers(c)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim message As String = &quot;Are you sure you want to delete?&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim button As DialogResult = MessageBox.Show(message, _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;Confirm Delete&quot;, MessageBoxButtons.YesNo)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If button = DialogResult.Yes Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; customers.Remove(customer)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CustomerDB.SaveCustomers(customers)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.FillCustomersListBox()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Private Sub btnExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExit.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; Me.Close()<br />
&nbsp; &nbsp; End Sub<br />
End Class</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>songweaver</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242597.html</guid>
		</item>
		<item>
			<title>Overflow error</title>
			<link>http://www.daniweb.com/forums/thread242570.html</link>
			<pubDate>Mon, 30 Nov 2009 21:10:21 GMT</pubDate>
			<description><![CDATA[Whenever I try to run my program it keeps giving me an overflow error and I dont know why. The problem is shown when i call this sub: 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Whenever I try to run my program it keeps giving me an overflow error and I dont know why. The problem is shown when i call this sub:<br />
<br />
 <pre style="margin:20px; line-height:13px">blueP.shootBall(blueS.x, blueS.y, blueP.ang, blueP.captured, ball.x, ball.y, ball.velx, ball.vely)</pre><br />
this is the sub<br />
<br />
 <pre style="margin:20px; line-height:13px">Public Sub shootBall(ByVal x, ByVal y, ByVal ang, ByRef caputred, ByRef xb, ByRef yb, ByRef velx, ByRef vely) 'x and y are blueS.x and y<br />
&nbsp; &nbsp; &nbsp; &nbsp; xb = System.Math.Round(x + ((18 - System.Math.Sqrt((x + 12 - (xb + 6)) ^ 2 + (y + 12 - (yb + 6)) ^ 2)) * System.Math.Cos(ang)), 5) 'moves ball out of capture range<br />
&nbsp; &nbsp; &nbsp; &nbsp; yb = System.Math.Round(y + ((18 - System.Math.Sqrt((x + 12 - (xb + 6)) ^ 2 - (y + 12 - (yb + 6)) ^ 2)) * System.Math.Sin(ang)), 5)<br />
&nbsp; &nbsp; &nbsp; &nbsp; caputred = False<br />
&nbsp; &nbsp; &nbsp; &nbsp; velx = 2 * System.Math.Cos(ang)<br />
&nbsp; &nbsp; &nbsp; &nbsp; vely = 2 * System.Math.Sin(ang)<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'Form1.Timer1.Stop()<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'MsgBox(velx &amp; &quot; &quot; &amp; vely &amp; &quot; &quot; &amp; System.Math.Sqrt((x + 12 - (xb + 6)) ^ 2 + (y + 12 - (yb + 6)) ^ 2))<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'Form1.Timer1.Start()<br />
&nbsp; &nbsp; &nbsp; &nbsp; xb += velx<br />
&nbsp; &nbsp; &nbsp; &nbsp; yb += vely<br />
&nbsp; &nbsp; End Sub</pre>all the numeric variables should be decimals</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>Chris11246</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242570.html</guid>
		</item>
		<item>
			<title>networkstream file transfers</title>
			<link>http://www.daniweb.com/forums/thread242540.html</link>
			<pubDate>Mon, 30 Nov 2009 20:08:56 GMT</pubDate>
			<description>I am attempting to write a vb.net 2008 application that will allow me to send files from a server to a client based on a request.  I am going to post the same console application code below.  When i run the server and the client on the local machine, i can get my file update and it works just fine....</description>
			<content:encoded><![CDATA[<div>I am attempting to write a vb.net 2008 application that will allow me to send files from a server to a client based on a request.  I am going to post the same console application code below.  When i run the server and the client on the local machine, i can get my file update and it works just fine.  When i go to a different machine on my network and attempt to connect to the server and download the file, i get the correct file size but the file, when i attempt to run it, says &quot;not a valid win32 application&quot;.  Now with a little testing, this can be any executable that i send over the network through my update software.<br />
<br />
Hopefully i have explained enough for you guys to help me.  Take a look at this and let me know.<br />
<br />
------<br />
SERVER<br />
------<br />
 <pre style="margin:20px; line-height:13px">Imports System.Net.Sockets<br />
Imports System.IO<br />
<br />
Module Module1<br />
<br />
&nbsp; &nbsp; Sub Main()<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim serverSocket As New TcpListener(System.Net.IPAddress.Any, &quot;9749&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim clientSocket As TcpClient<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim counter As Integer<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; serverSocket.Start()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; counter = 0<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.Clear()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Monitoring Server Update Module is now online.&quot;, &quot;I&quot;)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; While (True)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; counter += 1<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; clientSocket = serverSocket.AcceptTcpClient()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Client Connected.&quot;)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim intRequestCount As Integer = 0<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim bytesFrom(8193) As Byte<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim strRecvData As String = &quot;&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim strClientData As String = &quot;&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim strRequest As String = &quot;&quot; ' will be UPD_UPDATER / UPD_CLIENT so we know what to send<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim UpdateStream As NetworkStream = clientSocket.GetStream()<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; intRequestCount += 1<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ' this gets whats out there<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'UpdateStream.Read(bytesFrom, 0, CInt(clientSocket.ReceiveBufferSize))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'strRecvData = Trim(System.Text.Encoding.ASCII.GetString(bytesFrom))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'strRecvData = BitConverter.ToString(bytesFrom)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ' String to store the response ASCII representation.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim responseData As [String] = [String].Empty<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim data As [Byte]()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; data = New [Byte](256) {}<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ' Read the first batch of the TcpServer response bytes.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim bytes As Int32 = UpdateStream.Read(Data, 0, Data.Length)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; responseData = System.Text.Encoding.ASCII.GetString(Data, 0, bytes)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Received: &quot; &amp; responseData)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strClientData = strClientData &amp; responseData<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Data Received: &quot; &amp; strClientData)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strClientData = Trim(strClientData)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If strClientData = &quot;UPD_UPDATER&quot; Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ' here we need to send the update program<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Client asked for updater program.&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim fileBuffer As Byte()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim fileStream As Stream<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fileStream = File.OpenRead(&quot;C:\temp\filetosend.exe&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim sendBytes As [Byte]() = System.Text.Encoding.ASCII.GetBytes(fileStream.Length.ToString)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; UpdateStream.Write(sendBytes, 0, sendBytes.Length)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ReDim fileBuffer(fileStream.Length)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fileStream.Read(fileBuffer, 0, fileStream.Length)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; UpdateStream.Write(fileBuffer, 0, fileStream.Length)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; UpdateStream.Flush()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If strClientData = &quot;UPD_CLIENT&quot; Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ' here we need to send the client program<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Client asked for client program.&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If strClientData &lt;&gt; &quot;UPD_CLIENT&quot; Or &quot;UPD_UPDATER&quot; Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ' somethings not right.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Client asked for something invalid.&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; UpdateStream.Close()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; clientSocket.Close()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Catch ex As Exception<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End Try<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End While<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; serverSocket.Stop()<br />
&nbsp; &nbsp; &nbsp; &nbsp; Catch ex As Exception<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Try<br />
&nbsp; &nbsp; End Sub<br />
End Module</pre><br />
------<br />
Client<br />
------<br />
 <pre style="margin:20px; line-height:13px"><br />
Imports System.Net.Sockets<br />
Imports System.Text<br />
Imports System.IO<br />
<br />
<br />
Module Module1<br />
<br />
&nbsp; &nbsp; Sub Main()<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim tcpClient As New TcpClient<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Try<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tcpClient.Connect(&quot;192.168.1.100&quot;, 9749)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim networkstream As NetworkStream = tcpClient.GetStream()<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If NetworkStream.CanWrite And NetworkStream.CanRead Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim bytes(tcpClient.ReceiveBufferSize) As Byte<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim strBytesToRecv As String<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim sendBytes As [Byte]() = Encoding.ASCII.GetBytes(&quot;UPD_UPDATER&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; networkstream.Write(sendBytes, 0, sendBytes.Length)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'Dim responsebytes(tcpClient.ReceiveBufferSize) As Byte<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'networkstream.Read(responsebytes, 0, CInt(tcpClient.ReceiveBufferSize))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'Dim responsedata As String = Encoding.ASCII.GetString(responsebytes)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim blockSize As Int16 = 1024<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim thisRead As Int16<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim dataByte(blockSize) As Byte<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim fileStream As Stream<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim data As [Byte]()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim intBytesLeft As Long<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; data = New [Byte](1023) {}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim filebytes As Int32<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; networkstream.Read(data, 0, blockSize)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strBytesToRecv = System.Text.Encoding.ASCII.GetString(data)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; intBytesLeft = Int(strBytesToRecv)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Size of file receiving: &quot; &amp; strBytesToRecv)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fileStream = File.OpenWrite(&quot;filetosend.exe&quot;)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Do<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Bytes Left: &quot; &amp; Str(intBytesLeft))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If intBytesLeft &gt;= 1024 Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; filebytes = networkstream.Read(data, 0, data.Length) 'data.length<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fileStream.Write(data, 0, data.Length)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; intBytesLeft = intBytesLeft - data.Length<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; filebytes = networkstream.Read(data, 0, intBytesLeft)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fileStream.Write(data, 0, intBytesLeft)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; intBytesLeft = intBytesLeft - intBytesLeft<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Loop Until intBytesLeft = 0<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fileStream.Close()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; networkstream.Close()<br />
&nbsp; &nbsp; &nbsp; &nbsp; Catch ex As Exception<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Try<br />
&nbsp; &nbsp; End Sub<br />
<br />
End Module</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>smurfh</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242540.html</guid>
		</item>
		<item>
			<title>Connect cell phone using vb.net</title>
			<link>http://www.daniweb.com/forums/thread242503.html</link>
			<pubDate>Mon, 30 Nov 2009 17:48:13 GMT</pubDate>
			<description>I need to connect Nokia Mobile phone using .net via Bluetooth and then send message by using  phone network 
 
Kindly please help me  
 
1) how to connect phone in .net via Bluetooth 
2) How to send message using it</description>
			<content:encoded><![CDATA[<div>I need to connect Nokia Mobile phone using .net via Bluetooth and then send message by using  phone network<br />
<br />
Kindly please help me <br />
<br />
1) how to connect phone in .net via Bluetooth<br />
2) How to send message using it</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>crakesh</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242503.html</guid>
		</item>
		<item>
			<title>setting a password in a database..</title>
			<link>http://www.daniweb.com/forums/thread242453.html</link>
			<pubDate>Mon, 30 Nov 2009 14:19:01 GMT</pubDate>
			<description><![CDATA[can anyone help me with my problem? 
i'm trying to set a password in my database using vb.net. 
here's my codes.. 
 
 Private Sub btn_ok_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_ok.Click 
        Dim chkpass As Integer 
         
        Dim strsql As String 
  ...]]></description>
			<content:encoded><![CDATA[<div>can anyone help me with my problem?<br />
i'm trying to set a password in my database using vb.net.<br />
here's my codes..<br />
<br />
 Private Sub btn_ok_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_ok.Click<br />
        Dim chkpass As Integer<br />
        <br />
        Dim strsql As String<br />
        Dim conDatabase As ADODB.Connection<br />
        conDatabase = New ADODB.Connection<br />
        'Dim sql As ADODB.Command<br />
        'sql = New ADODB.Command<br />
<br />
        'Dim hi As New ADODB.Connection<br />
        'Dim dbConnection As String = &quot;Provider=Microsoft.Jet.OLEDB.4.0;Data source=&quot; &amp; mdi_main.dlg_open.FileName &amp; &quot;;&quot;<br />
        'hi.ConnectionString = dbConnection<br />
<br />
<br />
<br />
        If txt_password.Text = &quot;&quot; Or txt_confirmpassword.Text = &quot;&quot; Then 'txt_confirmpassword.Text = Nullable Or txt_password.Text = Nullable Then<br />
            MsgBox(&quot;Enter both and new and confirm password&quot;)<br />
            Exit Sub<br />
        End If<br />
        strdbsetpassword = txt_confirmpassword.Text<br />
        chkpass = StrComp(txt_password.Text, txt_confirmpassword.Text, vbBinaryCompare)<br />
<br />
        If chkpass = 0 Then<br />
            db.Close()<br />
            objconn.Close()<br />
            conDatabase.ConnectionString = &quot;Provider=Microsoft.Jet.OLEDB.4.0;Data source=&quot; &amp; mdi_main.dlg_open.FileName &amp; &quot;;&quot;<br />
            conDatabase.Open()<br />
            strsql = &quot;ALTER DATABASE PASSWORD =&quot;<br />
            'sql.ActiveConnection = conDatabase<br />
            'sql.CommandText = strsql<br />
            conDatabase.Execute(strsql)<br />
            'sql.Execute(sql)<br />
            MsgBox(&quot;The new password was successfully set.&quot;, vbInformation)<br />
        Else<br />
            MsgBox(&quot;Mali ung type mo&quot;)<br />
        End If<br />
<br />
        'conDatabase.ConnectionString = &quot;Provider=Microsoft.Jet.OLEDB.4.0;Data source=&quot; &amp; mdi_main.dlg_open.FileName &amp; &quot;;&quot;<br />
        'conDatabase.Open()<br />
        'strsql = &quot; ALTER DATABASE PASSWORD &quot; &amp; strdbsetpassword<br />
        'With sql<br />
        '.ActiveConnection = conDatabase<br />
        '.CommandText = strsql<br />
        '.Execute(strsql)<br />
        'End With<br />
        'conDatabase.Close()<br />
        'Dim SQL As String<br />
        'Dim intCheckPwd As Integer<br />
<br />
        'conDatabase(&quot;Provider=Microsoft.Jet.OLEDB.4.0; Data source=&quot; &amp; mdi_main.dlg_open.FileName &amp; &quot;&quot;)<br />
<br />
<br />
<br />
<br />
        If scan_openfilenameformdb &lt;&gt; 0 Then<br />
            'strconnection = &quot;Provider=Microsoft.Jet.OLEDB.4.0; Data source=&quot; &amp; mdi_main.dlg_open.FileName<br />
<br />
            'conDatabase.Open(&quot;Provider=Microsoft.Jet.OLEDB.4.0; Data source=&quot; &amp; mdi_main.dlg_open.FileName &amp; &quot;;Persist Security Info=True;&quot; &amp; &quot;Jet OLEDB:Database Password=&quot;, strdbsetpassword, strdbsetpassword &amp; &quot;;&quot;)<br />
<br />
            'conDatabase.Open()<br />
            'strsql = &quot;ALTER DATABASE PASSWORD&quot; &amp; strdbsetpassword &amp; &quot;NULL&quot;<br />
            'sql.ActiveConnection = conDatabase<br />
            'sql.CommandText = strsql<br />
            'sql.Execute(strsql)<br />
            'conDatabase.Execute(strsql)<br />
            'conDatabase.Close()<br />
            'MsgBox(&quot;Setting of Password done!&quot;)<br />
<br />
        Else<br />
            'If scan_openfilenameforaccdb &lt;&gt; 0 Then<br />
            'strconnection = &quot;Provider=Microsoft.ACE.OLEDB.12.0;Data Source=&quot; &amp; mdi_main.dlg_open.FileName &amp; &quot;;Persist Security Info=True;&quot; &amp; &quot;Jet OLEDB:Database Password= chkpass &quot; &amp; &quot;;&quot;<br />
            'MsgBox(&quot;Setting of Password done!&quot;)<br />
            'End If<br />
        End If<br />
<br />
    End Sub<br />
<br />
Is there something wrong with my codes?<br />
The error was: INVALID PASSWORD..<br />
pLZ... help me..<br />
thanks!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>robayas</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242453.html</guid>
		</item>
		<item>
			<title>Terminate msgbox in thread programmatically vb.net</title>
			<link>http://www.daniweb.com/forums/thread242417.html</link>
			<pubDate>Mon, 30 Nov 2009 11:50:13 GMT</pubDate>
			<description>We use a third party component for address normalization.  When calling a function within this component, normally it returns within a second without any error.  Sometimes the component displays an error message box and hangs the unattended process. 
 
We would like to use a timer to trigger...</description>
			<content:encoded><![CDATA[<div>We use a third party component for address normalization.  When calling a function within this component, normally it returns within a second without any error.  Sometimes the component displays an error message box and hangs the unattended process.<br />
<br />
We would like to use a timer to trigger termination of the message box.  We have also tried using the component in a separate thread and aborting the thread but are not able to catch the exception.  The only way to abort seems to be clicking on the message box.  Is there any way to terminate the message box so that the application can run unattended ?<br />
<br />
Thanks in advance.<br />
<br />
Dave</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>mclaio</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242417.html</guid>
		</item>
		<item>
			<title>oledbexeption unhandled</title>
			<link>http://www.daniweb.com/forums/thread242382.html</link>
			<pubDate>Mon, 30 Nov 2009 08:55:59 GMT</pubDate>
			<description><![CDATA[im am trying  out this code but it keeps giving an error msg but i cant see where the error is...please help 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox"...]]></description>
			<content:encoded><![CDATA[<div>im am trying  out this code but it keeps giving an error msg but i cant see where the error is...please help<br />
 <pre style="margin:20px; line-height:13px">query = New OleDbCommand(&quot;INSERT INTO studenttable(sname,scourse,syear,ssemestor,sgrade)values('&quot; &amp; TextBox1.Text &amp; &quot; ',' &quot; &amp; TextBox2.Text &amp; &quot; ',' &quot; &amp; TextBox3.Text &amp; &quot; ',' &quot; &amp; TextBox4.Text &amp; &quot; ',' &quot; &amp; TextBox5.Text &amp; &quot; )&quot;, con)<br />
con.Open()<br />
query.ExecuteNonQuery()<br />
con.Close()</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>hmmmm</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242382.html</guid>
		</item>
		<item>
			<title>VB 2008 MS Acess 2007 - Error inserting record into table</title>
			<link>http://www.daniweb.com/forums/thread242372.html</link>
			<pubDate>Mon, 30 Nov 2009 07:55:34 GMT</pubDate>
			<description><![CDATA[First of all, I'd like to say hello to the Daniweb community as a first-time poster. I'm sorry if this is a common error for you folks to deal with, but my preliminary search of the forum didn't really help me all that much. So here we are. 
 
Onwards to the issue. I'm trying to insert a record...]]></description>
			<content:encoded><![CDATA[<div>First of all, I'd like to say hello to the Daniweb community as a first-time poster. I'm sorry if this is a common error for you folks to deal with, but my preliminary search of the forum didn't really help me all that much. So here we are.<br />
<br />
Onwards to the issue. I'm trying to insert a record into an MS Access 2007 database using Visual Basic 2008. Here's the code in question:<br />
<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; Public Function InsScoutInfo(ByVal ScoutInfoObject As ScoutInfo) As Boolean<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim MaxID As Integer = SelMinMax(&quot;Max&quot;, &quot;ScoutID&quot;, &quot;ScoutInfo&quot;, &quot;&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; If MaxID = 0 Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MaxID = 10000<br />
&nbsp; &nbsp; &nbsp; &nbsp; Else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MaxID += 1<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim RowsAffected As Integer = 0<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim strInsert As String = &quot;Insert Into ScoutInfo &quot; &amp; _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;(ScoutID, YearID, GSUSAID, FName, LName, DoB, Grade, Level, School, YearsIn, CurrentYear) &quot; &amp; _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;Values (&quot; &amp; _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MaxID &amp; &quot;, &quot; &amp; ScoutInfoObject.YearID &amp; &quot;, &quot; &amp; _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ScoutInfoObject.GSUSAID &amp; &quot;, '&quot; &amp; ScoutInfoObject.FName &amp; &quot;', '&quot; &amp; _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ScoutInfoObject.LName &amp; &quot;', '&quot; &amp; ScoutInfoObject.DoB &amp; &quot;', '&quot; &amp; _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ScoutInfoObject.Grade &amp; &quot;', '&quot; &amp; ScoutInfoObject.Level &amp; &quot;', '&quot; &amp; _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ScoutInfoObject.School &amp; &quot;', &quot; &amp; ScoutInfoObject.YearsIn &amp; &quot;, '&quot; &amp; _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ScoutInfoObject.CurrentYear &amp; &quot;')&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim insCommand As New OleDbCommand(strInsert, conDBConnect)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; conDBConnect.Open()<br />
&nbsp; &nbsp; &nbsp; &nbsp; RowsAffected = insCommand.ExecuteNonQuery<br />
&nbsp; &nbsp; &nbsp; &nbsp; conDBConnect.Close()<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; If RowsAffected &gt; 0 Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Return True<br />
&nbsp; &nbsp; &nbsp; &nbsp; Else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Return False<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; End Function</pre><br />
When insCommand.ExecuteNonQuery is executed, an exception with Error # -2147217900 is thrown, with the detail of &quot;In order to evaluate an indexed property, the property must be qualified and the arguments must be explicitly supplied by the user.&quot;<br />
<br />
At the time the error is thrown, this is what resides in strInsert: &quot;Insert Into ScoutInfo (ScoutID, YearID, GSUSAID, FName, LName, DoB, Grade, Level, School, YearsIn, CurrentYear) Values (10000, 20092010, 123456, 'Jacobina', 'Lowe', '11/30/2009', 'K', 'Daisy', 'Thisone', 0, '20092010')&quot; I've already verified that the Insert statement and datatypes of the columns match.<br />
<br />
Any thoughts or ideas would be appreciated. :)<br />
<br />
~Jacob</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>phatJacob07</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242372.html</guid>
		</item>
		<item>
			<title><![CDATA[[HELP] add and select items in listbox]]></title>
			<link>http://www.daniweb.com/forums/thread242353.html</link>
			<pubDate>Mon, 30 Nov 2009 06:05:18 GMT</pubDate>
			<description>I have a button, if I press the button, new picturebox will appear in my main form. 
How to add picturebox name in the listbox ? 
how to select picturebox name from a listbox for deleting the selected picturebox? 
 
thanks...</description>
			<content:encoded><![CDATA[<div>I have a button, if I press the button, new picturebox will appear in my main form.<br />
How to add picturebox name in the listbox ?<br />
how to select picturebox name from a listbox for deleting the selected picturebox?<br />
<br />
thanks...</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>murid</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242353.html</guid>
		</item>
		<item>
			<title>Code Snippet what is the problem with this code</title>
			<link>http://www.daniweb.com/code/snippet242255.html</link>
			<pubDate>Sun, 29 Nov 2009 19:44:37 GMT</pubDate>
			<description>Imports System.Data 
Imports System.Data.SqlClient 
 
Public Class Form2 
    Dim myconnection As SqlConnection 
    Dim mycommand As SqlCommand 
    Dim dr As SqlDataReader 
    Dim dr1 As SqlDataReader 
    Dim ra As Integer 
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As...</description>
			<content:encoded><![CDATA[<div>Imports System.Data<br />
Imports System.Data.SqlClient<br />
<br />
Public Class Form2<br />
    Dim myconnection As SqlConnection<br />
    Dim mycommand As SqlCommand<br />
    Dim dr As SqlDataReader<br />
    Dim dr1 As SqlDataReader<br />
    Dim ra As Integer<br />
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
        myconnection = New SqlConnection(&quot;server=Pakistan;Initial Catalog=Mumtaz;database=Mumtaz&quot;)<br />
<br />
<br />
        myconnection.Open()<br />
        mycommand = New SqlCommand(&quot;insert into temp([name],[datep]) values ('&quot; &amp; TextBox1.Text &amp; &quot;','&quot; &amp; TextBox2.Text &amp; &quot;')&quot;, myconnection)<br />
        mycommand.ExecuteNonQuery()<br />
        'MessageBox.Show(&quot;New Row Inserted&quot; &amp; ra)<br />
        myconnection.Close()<br />
    End Sub<br />
End Class</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>shahzadhard</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242255.html</guid>
		</item>
		<item>
			<title>Adding data from sql database into gridview</title>
			<link>http://www.daniweb.com/forums/thread242248.html</link>
			<pubDate>Sun, 29 Nov 2009 19:13:21 GMT</pubDate>
			<description><![CDATA[Can anyone tell me what is wrong with this code, i am trying to add information into a gridview from a sql datbase, 
 
thanks 
 
[code] 
SQLSearch("SELECT * FROM engineerissues WHERE EngineerNumber = " & cmbRepTyp.Text) 
 
            RS.AddNew() 
 
            Dim dgvRow As New DataGridViewRow]]></description>
			<content:encoded><![CDATA[<div>Can anyone tell me what is wrong with this code, i am trying to add information into a gridview from a sql datbase,<br />
<br />
thanks<br />
<br />
[code]<br />
SQLSearch(&quot;SELECT * FROM engineerissues WHERE EngineerNumber = &quot; &amp; cmbRepTyp.Text)<br />
<br />
            RS.AddNew()<br />
<br />
            Dim dgvRow As New DataGridViewRow<br />
            Dim dgvCell As DataGridViewCell<br />
<br />
            dgvCell = New DataGridViewTextBoxCell()<br />
            dgvCell.Value = RS.Fields.Item(&quot;EngineerNumber&quot;).Value<br />
            dgvRow.Cells.Add(dgvCell)<br />
<br />
            dgvCell = New DataGridViewTextBoxCell()<br />
            dgvCell.Value = RS.Fields.Item(&quot;CallRef&quot;).Value<br />
            dgvRow.Cells.Add(dgvCell)<br />
<br />
            dgvCell = New DataGridViewTextBoxCell()<br />
            dgvCell.Value = RS.Fields.Item(&quot;DateLogged&quot;).Value<br />
            dgvRow.Cells.Add(dgvCell)<br />
<br />
            dgvCell = New DataGridViewTextBoxCell()<br />
            dgvCell.Value = RS.Fields.Item(&quot;LoggedBy&quot;).Value<br />
            dgvRow.Cells.Add(dgvCell)<br />
<br />
            dgvCell = New DataGridViewTextBoxCell()<br />
            dgvCell.Value = RS.Fields.Item(&quot;Comments&quot;).Value<br />
            dgvRow.Cells.Add(dgvCell)<br />
<br />
            dgvCell = New DataGridViewTextBoxCell()<br />
            dgvCell.Value = RS.Fields.Item(&quot;Resolved&quot;).Value<br />
            dgvRow.Cells.Add(dgvCell)<br />
<br />
but it retuns null values.<br />
[code]</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>CasperG</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242248.html</guid>
		</item>
		<item>
			<title>Get Date from Database Access</title>
			<link>http://www.daniweb.com/forums/thread242191.html</link>
			<pubDate>Sun, 29 Nov 2009 13:29:07 GMT</pubDate>
			<description><![CDATA[Hi Can anyone please check my code ? 
I'm trying to get today's date from database 
I tried many ways and I'm stuck now.. 
 
at my database access 
the transdate appears like this  
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Hi Can anyone please check my code ?<br />
I'm trying to get today's date from database<br />
I tried many ways and I'm stuck now..<br />
<br />
at my database access<br />
the transdate appears like this <br />
 <pre style="margin:20px; line-height:13px">11/29/2009 2:02:23 AM</pre>and this is my query code from VB.NET<br />
 <pre style="margin:20px; line-height:13px">&quot;SELECT TransDate, Deposit, Withdrawal, TotalAmount FROM Transactions &quot; &amp; _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;Where UserID =&quot; &amp; AccID &amp; &quot; and TransDate = &quot; &amp; DateTime.Today() &amp; &quot; &quot; &amp; _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;ORDER BY TransID&quot;</pre>is there anything wrong ? I debug and I got the date correct but the data won't show up<br />
please help.. <br />
thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>Dorayaki</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242191.html</guid>
		</item>
		<item>
			<title>modificate item in listview</title>
			<link>http://www.daniweb.com/forums/thread242189.html</link>
			<pubDate>Sun, 29 Nov 2009 13:24:04 GMT</pubDate>
			<description>Hi!! 
im doin a proyect that have to create a library, n create, delete an modificate books to the library. im using a listview to show all the books that r created, n should delete books that i deleted n if a modify one, should delete it n then upload the corrected one. 
im stuck with modifing the...</description>
			<content:encoded><![CDATA[<div>Hi!!<br />
im doin a proyect that have to create a library, n create, delete an modificate books to the library. im using a listview to show all the books that r created, n should delete books that i deleted n if a modify one, should delete it n then upload the corrected one.<br />
im stuck with modifing the book, wont let me check the items in the listview with the textbox<br />
here i paste the code that isnt workin n att. the whole proyect<br />
<br />
 <pre style="margin:20px; line-height:13px"><br />
&nbsp; &nbsp; Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim j As Int32<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; If (TextBox1.Text &lt; 1000) Or (TextBox1.Text &gt; 32000) Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.Show(&quot;codigo incorrecto. tiene q ser entre 1000 y 32000&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Exit Sub<br />
&nbsp; &nbsp; &nbsp; &nbsp; Else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim bibaux As New List(Of LIBRO)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; For j = Altas.ListView1.Items.Count - 1 To 0 Step -1 'busca en el listview<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If (Altas.ListView1.SelectedItems(j).Text = TextBox1.Text) Then 'si existe<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Altas.ListView1.Items.RemoveAt(j) 'borra esa posicion<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Next<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Altas.TextBox1.Text = TextBox1.Text<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Altas.Show()<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; End Sub</pre></div>  <br /> <div style="padding:5px">     <fieldset class="fieldset"> <legend>Attached Files</legend> <table cellpadding="0" cellspacing="5" border="0"> <tr> <td><img class="inlineimg" src="http://www.daniweb.com/forums/images/attach/zip.gif" alt="File Type: zip" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12774&amp;d=1259500886">TP--2-Parcial.zip</a> (210.6 KB)</td> </tr> </table> </fieldset>  </div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>gispe</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242189.html</guid>
		</item>
		<item>
			<title>pong game</title>
			<link>http://www.daniweb.com/forums/thread242184.html</link>
			<pubDate>Sun, 29 Nov 2009 13:04:58 GMT</pubDate>
			<description>hi there 
 
how you doing guyz  
 
i want to make pong game in VB.net 
 
i want it for one player  
 
like this one</description>
			<content:encoded><![CDATA[<div><span style="color:Red">hi there<br />
<br />
how you doing guyz <br />
<br />
i want to make pong game in VB.net<br />
<br />
i want it for one player <br />
<br />
like this one<br />
<br />
<a rel="nofollow" class="t" href="http://www.quantumstate.co.uk/pongscreen.png" target="_blank">http://www.quantumstate.co.uk/pongscreen.png</a><br />
<br />
i didn't find good tutorials <br />
<br />
all what i found was a tutorials to make it in VB6<br />
<br />
i need it in VB.net<br />
<br />
any tutorials or full projects i can learn from?<br />
<br />
or if there is no tutorials for the pong game can you give me tutorial for the bounce ball or even full project so i can try to edit it to be pong game<br />
<br />
<br />
please help ari  ^^&quot;<br />
<br />
thanks</span></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>lovely ari</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242184.html</guid>
		</item>
		<item>
			<title>UDP sending problem</title>
			<link>http://www.daniweb.com/forums/thread242149.html</link>
			<pubDate>Sun, 29 Nov 2009 09:46:54 GMT</pubDate>
			<description><![CDATA[Hi 
 
I'm working on a messenger that uses UDP and i can send a message once alright, but when i try and send a second message i get an error "An invalid argument was supplied" for this line   <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Hi<br />
<br />
I'm working on a messenger that uses UDP and i can send a message once alright, but when i try and send a second message i get an error &quot;An invalid argument was supplied&quot; for this line  <pre style="margin:20px; line-height:13px">SendUdp.JoinMulticastGroup(GroupIP, 12)</pre><br />
I have no idea why this is happening (not that i know that much about udp anyway), so if anyone could help out that would be well appreciated. Thanks.<br />
<br />
This is called when enter key is pressed<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; Private Sub UDPSend()<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; GroupIP = IPAddress.Parse(&quot;224.0.0.0&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; GroupEP = New IPEndPoint(GroupIP, 2056)<br />
&nbsp; &nbsp; &nbsp; &nbsp; SendUdp.JoinMulticastGroup(GroupIP, 12) 'error happening here 2nd time through<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim bteSendDate() As Byte<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bteSendDate = Encoding.Unicode.GetBytes(rtb_MessageWrite.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SendUdp.Send(bteSendDate, bteSendDate.Length, GroupEP)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Catch ex As Exception<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rtb_MessageView.Text = rtb_MessageView.Text &amp; (ex.Message)<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Try<br />
<br />
&nbsp; &nbsp; End Sub</pre>This is on a new thread<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; Private Sub BeginListen()<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim bteReceiveData() As Byte<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim strReceiveData As String<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; GroupIP = IPAddress.Parse(&quot;224.0.0.0&quot;)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; GroupEP = New IPEndPoint(GroupIP, 2056)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ListenUdp = New UdpClient(2056)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ListenUdp.JoinMulticastGroup(GroupIP)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Do<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bteReceiveData = ListenUdp.Receive(GroupEP)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strReceiveData = Encoding.Unicode.GetString(bteReceiveData)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If rtb_MessageView.InvokeRequired Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim d As New SetTextCallback(AddressOf SetText)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.Invoke(d, New Object() {strReceiveData})<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rtb_MessageView.Text = rtb_MessageView.Text &amp; strReceiveData<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; Loop<br />
<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Private Delegate Sub SetTextCallback(ByVal a As String)<br />
<br />
&nbsp; &nbsp; Private Sub SetText(ByVal [text] As String)<br />
&nbsp; &nbsp; &nbsp; &nbsp; rtb_MessageView.Text = rtb_MessageView.Text &amp; [text]<br />
&nbsp; &nbsp; End Sub</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>Mr. Blank</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242149.html</guid>
		</item>
		<item>
			<title>Query Engine Error with Oracle10</title>
			<link>http://www.daniweb.com/forums/thread242226.html</link>
			<pubDate>Sun, 29 Nov 2009 08:06:00 GMT</pubDate>
			<description><![CDATA[hiii 
I am doing application in vb.net and Oracle10g. On running the project there is some "Query Engine Error C:\document\Local\temp\....3434834-453493434.rpt" error but when same dataSet object when set as source to Datagrid the grid is filled corretly.......... 
any idea where m i going...]]></description>
			<content:encoded><![CDATA[<div>hiii<br />
I am doing application in vb.net and Oracle10g. On running the project there is some &quot;Query Engine Error C:\document\Local\temp\....3434834-453493434.rpt&quot; error but when same dataSet object when set as source to Datagrid the grid is filled corretly..........<br />
any idea where m i going wrong...............</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>jpri</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242226.html</guid>
		</item>
		<item>
			<title>Adding Tabpages Programatically</title>
			<link>http://www.daniweb.com/forums/thread242027.html</link>
			<pubDate>Sat, 28 Nov 2009 14:58:12 GMT</pubDate>
			<description>In my new Project in VB.Net, I want to use Tabcontrols. 
I want to add TabPages and set properties Programatically . 
Anyone please help me in this? 
 
Thnx in advance...</description>
			<content:encoded><![CDATA[<div>In my new Project in VB.Net, I want to use Tabcontrols.<br />
I want to add TabPages and set properties Programatically .<br />
Anyone please help me in this?<br />
<br />
Thnx in advance...</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>Bilal_saif</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread242027.html</guid>
		</item>
		<item>
			<title>How to check if form is enabled on Resize event?</title>
			<link>http://www.daniweb.com/forums/thread241838.html</link>
			<pubDate>Fri, 27 Nov 2009 16:33:47 GMT</pubDate>
			<description><![CDATA[Hello, i have one more problem...here it is: 
 
In my application I have more then one form/dialogs, of course. My start up (main) form is called "StartForm" and when I want to access to some other dialogs, I open up dialog and I put StartForm on ".Enabled = False" so that user can't access to that...]]></description>
			<content:encoded><![CDATA[<div>Hello, i have one more problem...here it is:<br />
<br />
In my application I have more then one form/dialogs, of course. My start up (main) form is called &quot;StartForm&quot; and when I want to access to some other dialogs, I open up dialog and I put StartForm on &quot;.Enabled = False&quot; so that user can't access to that form even if he click somewhere on it (StartForm is maximized to full screen and dialogs are small so StartForm can be seen in background when you open dialog). <br />
Ok, this works fine until I click on my application &quot;link&quot; in task bar...then, only my StartForm is visible and it's &quot;.Enabled = False&quot; so I can't do anything...I must kill process in task manager. Same thing happens when I open some other application and then come back to my application.<br />
<br />
I've tried also few things like .TopLevel = True (everything's the same), .TopMost = True (also doesn't work because then is that dialog visible all the time(until you close it)...on system level)<br />
<br />
So...what do I need? I suppose I need something to check which dialogs/forms are enabled on minimize/maximize and to put that dialog/form .TopLevel = True when I maximize my application again. Can somebody help me ?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>Peric</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241838.html</guid>
		</item>
		<item>
			<title>how to protect cd copying</title>
			<link>http://www.daniweb.com/forums/thread241823.html</link>
			<pubDate>Fri, 27 Nov 2009 15:05:30 GMT</pubDate>
			<description><![CDATA[I want to do my mini project in vb.net to protect copying datas from cd to hard disks or cd's, please help me 
 
Thanks in advance]]></description>
			<content:encoded><![CDATA[<div>I want to do my mini project in vb.net to protect copying datas from cd to hard disks or cd's, please help me<br />
<br />
Thanks in advance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>rohoni</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241823.html</guid>
		</item>
		<item>
			<title>DateTimePicker Value From Database</title>
			<link>http://www.daniweb.com/forums/thread241818.html</link>
			<pubDate>Fri, 27 Nov 2009 14:34:08 GMT</pubDate>
			<description><![CDATA[Hello I'm using M.Access 
I want to get date from database to my datetimepicker, but I got problem 
 
please help, here is my code. 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Hello I'm using M.Access<br />
I want to get date from database to my datetimepicker, but I got problem<br />
<br />
please help, here is my code.<br />
<br />
 <pre style="margin:20px; line-height:13px">Dim sStatement As String<br />
&nbsp; &nbsp; &nbsp; &nbsp; sStatement = &quot;SELECT Transactions.RentDate &quot; &amp; _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;FROM Transactions INNER JOIN TransactionsDetails ON Transactions.[TransactionID] = TransactionsDetails.[TransactionID]&quot; &amp; _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;Where Transactions.MemberID = &quot; &amp; TextBox20.Text &amp; &quot; AND TransactionsDetails.BookID = &quot; &amp; TextBox21.Text &amp; &quot;&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; Try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim sCommand As OleDbCommand = New OleDbCommand(sStatement, sConnection)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sConnection.Open()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim sReader As OleDbDataReader = sCommand.ExecuteReader()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DateTimePicker3.Value = Format(sReader(0), &quot;dd/MM/yyyy&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sConnection.Close()<br />
&nbsp; &nbsp; &nbsp; &nbsp; Catch sException As System.Exception<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MsgBox(sException.Message, MsgBoxStyle.OkOnly Or MsgBoxStyle.Critical)<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Try</pre><br />
it always appears<br />
<br />
No data exists for the row/column.<br />
<br />
But I have many data...<br />
and the second time i click the button<br />
<br />
The connection was not closed. The connection's current state is open.<br />
<br />
it appears that msg<br />
<br />
thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>Dorayaki</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241818.html</guid>
		</item>
		<item>
			<title>Help Needed In My Mini Project</title>
			<link>http://www.daniweb.com/forums/thread241811.html</link>
			<pubDate>Fri, 27 Nov 2009 14:10:08 GMT</pubDate>
			<description><![CDATA[*Hi Guys. 
I am working on my mini project(Intel 8085 Simulator) 
I am faced with a huge problem 
How do i store the instruction set?? 
 
What i am doing currently is i have made a structure* 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div><span style="font-weight:bold">Hi Guys.<br />
I am working on my mini project(Intel 8085 Simulator)<br />
I am faced with a huge problem<br />
How do i store the instruction set??<br />
<br />
What i am doing currently is i have made a structure</span><br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;Serializable()&gt; _<br />
&nbsp; &nbsp; Public Structure inTab<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim iName As String<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim iLen As Integer<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim regPair As Boolean<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim addMode As String<br />
&nbsp; &nbsp; End Structure</pre><br />
I have made the structure Serializable and i made an object<br />
<br />
 <pre style="margin:20px; line-height:13px">Dim b As inTab</pre><span style="font-weight:bold"><br />
so that using a BinaryFormatter i can write it to .bin file<br />
<br />
A sample of the inTab Object would be</span><br />
<br />
         <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; &nbsp;  b.iName = &quot;SUB&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; b.iLen = 1<br />
&nbsp; &nbsp; &nbsp; &nbsp; b.regPair = False<br />
&nbsp; &nbsp; &nbsp; &nbsp; b.addMode = &quot;Register&quot;</pre><br />
<span style="font-weight:bold">and i have stored it to a .bin file<br />
There are around 65 Instructions which means that there are 65 objects of type inTab in the .bin file</span><br />
<br />
<span style="font-weight:bold">1st trouble<br />
How do i find the end of the .bin file while i am reading from it<br />
In C++ i used to do </span><br />
<br />
<span style="text-decoration:underline"><span style="color:Red">while(!stream.eof())</span></span><br />
<span style="font-weight:bold"><br />
What is the VB equivalent of this??<br />
Am i using efficient method(This is my first month with VB!!!!!!)<br />
<br />
Is database approach more useful?? If yes, where do i get started??<br />
<br />
So many questions!!! I guess you people will understand<br />
<br />
Thanks in advance</span></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>vivek4020</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241811.html</guid>
		</item>
		<item>
			<title>Copying data from textboxes to a text file</title>
			<link>http://www.daniweb.com/forums/thread241807.html</link>
			<pubDate>Fri, 27 Nov 2009 14:04:53 GMT</pubDate>
			<description><![CDATA[Hello, I am a student in a VB2008 class. I am using this code to copy data in a textbox to a text file. I have several forms to copy data from. Can this be done or do I need to do each form seperately?  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Hello, I am a student in a VB2008 class. I am using this code to copy data in a textbox to a text file. I have several forms to copy data from. Can this be done or do I need to do each form seperately? <pre style="margin:20px; line-height:13px">Dim FILE_NAME As String = &quot;C:\test2.text&quot;<br />
My.Computer.FileSystem.WriteAllText(FILE_NAME,txtelectronic.text,True)<br />
MsgBox(&quot;Text written to file&quot;)<br />
End If</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>little marine</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241807.html</guid>
		</item>
		<item>
			<title>datagridview sorting with own text</title>
			<link>http://www.daniweb.com/forums/thread241741.html</link>
			<pubDate>Fri, 27 Nov 2009 06:20:48 GMT</pubDate>
			<description><![CDATA[i have a datagridview with checkboxes in my window form and i want to sort my result with textbox without losting checkbox checked value. i place code in textbox_textchange() event. 
 
first i fill datatable with label click() 
 
  <div class="codeblock"> <div class="spaced"> <div...]]></description>
			<content:encoded><![CDATA[<div>i have a datagridview with checkboxes in my window form and i want to sort my result with textbox without losting checkbox checked value. i place code in textbox_textchange() event.<br />
<br />
first i fill datatable with label click()<br />
<br />
 <pre style="margin:20px; line-height:13px"> Private Sub Label8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label8.Click<br />
<br />
cmd = New OracleCommand(&quot;select categoryname from subcategory&nbsp; where doctype='&quot; + glbdocid + &quot;'order by categoryname ASC &quot;, dl.con)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dim myDataTable as new DataTable<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; adap = New OracleDataAdapter(cmd)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; adap.Fill(DataTable)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DataGridView1.DataSource=myDataTable<br />
End Sub<br />
<br />
<br />
<br />
Private Sub TextBox9_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox9.TextChanged<br />
<br />
Dim myDataView As New DataView(myDataTable)<br />
<br />
myDataView.RowFilter = &quot;Categoryname LIKE '%&quot; &amp; TextBox9.Text &amp; &quot;%'&quot;<br />
myDataView.Sort = &quot;categoryname&quot;<br />
dataGridView1.DataSource = myDataView<br />
dataGridView1.DataBind() <br />
<br />
EndSub<br />
<br />
And i get all checkbox checked value with comma saprate in Textbox6<br />
<br />
<br />
&nbsp;Private Sub TextBox6_GotFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox6.GotFocus<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim j As Integer<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim str1 As String<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim s As Integer<br />
&nbsp; &nbsp; &nbsp; &nbsp; s = 0<br />
&nbsp; &nbsp; &nbsp; &nbsp; str1 = &quot;&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; For j = 0 To DataGridView1.Rows.Count - 1<br />
&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If DataGridView1.Item(0, j).Value = True Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If s = 0 Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; str1 = DataGridView1.Item(1, j).Value.ToString()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; s = 1<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; str1 = str1 + &quot;,&quot; + DataGridView1.Item(1, j).Value.ToString()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Next<br />
&nbsp; &nbsp; &nbsp; &nbsp; Panel1.Visible = False<br />
&nbsp; &nbsp; &nbsp; &nbsp; TextBox6.Text = str1<br />
&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; End Sub</pre><br />
but i didn't get exact result what i want....plase help me to sort out this problem.....</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>er.daljeetsingh</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241741.html</guid>
		</item>
		<item>
			<title>Ribbon problem</title>
			<link>http://www.daniweb.com/forums/thread241727.html</link>
			<pubDate>Fri, 27 Nov 2009 04:56:47 GMT</pubDate>
			<description><![CDATA[Hi 
i am working in vb.net (vs 2005) i have designed my mdi form ribbon file (System.Windows.Forms.Ribbon.dll file ) its working fine but when i close my mdi form that time i got error error message 
 
Title  "Windows32 Exception was unhandled" 
 
 The system cannot find the file specified 
 
 
any...]]></description>
			<content:encoded><![CDATA[<div>Hi<br />
i am working in vb.net (vs 2005) i have designed my mdi form ribbon file (System.Windows.Forms.Ribbon.dll file ) its working fine but when i close my mdi form that time i got error error message<br />
<br />
Title  &quot;Windows32 Exception was unhandled&quot;<br />
<br />
 The system cannot find the file specified<br />
<br />
<br />
any one help to solve this problem</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>laks_samy</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241727.html</guid>
		</item>
		<item>
			<title>Graphics vb 2008</title>
			<link>http://www.daniweb.com/forums/thread241697.html</link>
			<pubDate>Fri, 27 Nov 2009 01:21:19 GMT</pubDate>
			<description><![CDATA[Hi, yes I'm a student with homework problems, but I am trying.  I need to display various shapes in a picture box, and am trying to do so via a combobox that the user can select from.  My problem is clearing a previous selection when a new selection is made.  Code to date is: 
 
  <div...]]></description>
			<content:encoded><![CDATA[<div>Hi, yes I'm a student with homework problems, but I am trying.  I need to display various shapes in a picture box, and am trying to do so via a combobox that the user can select from.  My problem is clearing a previous selection when a new selection is made.  Code to date is:<br />
<br />
 <pre style="margin:20px; line-height:13px">Public Class frmGraphics1<br />
&nbsp; &nbsp; Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'Populate cboShape with shapes<br />
&nbsp; &nbsp; &nbsp; &nbsp; cboShape.Items.Add(&quot;Select a shape&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; cboShape.Items.Add(&quot;Circle&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; cboShape.Items.Add(&quot;Square&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; cboShape.Items.Add(&quot;Rectangle&quot;)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'Set index to 0<br />
&nbsp; &nbsp; &nbsp; &nbsp; cboShape.SelectedIndex = 0<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Private Sub cboShape_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cboShape.SelectedIndexChanged<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim GraphicsDisplay As Graphics<br />
&nbsp; &nbsp; &nbsp; &nbsp; GraphicsDisplay = pboGraphics.CreateGraphics<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; If cboShape.SelectedIndex = 0 Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Exit Sub<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf cboShape.SelectedIndex = 1 Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GraphicsDisplay.DrawEllipse(Pens.Blue, 10, 10, 150, 150)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf cboShape.SelectedIndex = 2 Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GraphicsDisplay.DrawRectangle(Pens.Blue, 10, 10, 150, 150)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf cboShape.SelectedIndex = 3 Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GraphicsDisplay.DrawRectangle(Pens.Blue, 10, 10, 250, 100)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; End Sub<br />
End Class</pre><br />
<br />
Thank you, Brenda</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>BrendaByrne</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241697.html</guid>
		</item>
		<item>
			<title>coding problem</title>
			<link>http://www.daniweb.com/forums/thread241611.html</link>
			<pubDate>Thu, 26 Nov 2009 15:23:22 GMT</pubDate>
			<description><![CDATA[hi my problem is that there is no msgbox"Hi this is my first" coding but my programme showing above message box on form loading event. Please help]]></description>
			<content:encoded><![CDATA[<div>hi my problem is that there is no msgbox&quot;Hi this is my first&quot; coding but my programme showing above message box on form loading event. Please help</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>pardeep3dec</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241611.html</guid>
		</item>
		<item>
			<title>How to detect installed games on a system ?</title>
			<link>http://www.daniweb.com/forums/thread241593.html</link>
			<pubDate>Thu, 26 Nov 2009 14:11:44 GMT</pubDate>
			<description>I am writing a application where i need to know which games are installed on a system. 
 
I have 3 ways by which i think i can detect the games 
 
1: Scan specific parts of registry and look for key names that match with a List of Publishers. The list is manually maintained. 
 
2: Scan the hard...</description>
			<content:encoded><![CDATA[<div>I am writing a application where i need to know which games are installed on a system.<br />
<br />
I have 3 ways by which i think i can detect the games<br />
<br />
1: Scan specific parts of registry and look for key names that match with a List of Publishers. The list is manually maintained.<br />
<br />
2: Scan the hard disk for and do same as in step 1<br />
<br />
3: run the program in background and check for programs in memory that use a large portion of memory(which games always do) and if they use Direct X ( Which all games do except for some) then its a game.<br />
<br />
Now i have been thinking about it and first and second method seems to be in need of a updated database ie list of publishers to make out if a particular program is game.<br />
<br />
Is there any other more efficient way to do it. If there is please let me know.<br />
<br />
Thankyou.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>Damon88</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241593.html</guid>
		</item>
		<item>
			<title>How to print vb form.</title>
			<link>http://www.daniweb.com/forums/thread241531.html</link>
			<pubDate>Thu, 26 Nov 2009 09:36:20 GMT</pubDate>
			<description><![CDATA[I am new in vb.net so i don't know how to take a print from a vb form. 
thanks for this printing code.]]></description>
			<content:encoded><![CDATA[<div>I am new in vb.net so i don't know how to take a print from a vb form.<br />
thanks for this printing code.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>ujjval dave</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241531.html</guid>
		</item>
	</channel>
</rss>
