<?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>Sat, 21 Nov 2009 01:52:04 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>I am getting an error with the INSERT command from a form</title>
			<link>http://www.daniweb.com/forums/thread240101.html</link>
			<pubDate>Fri, 20 Nov 2009 21:45:57 GMT</pubDate>
			<description><![CDATA[hey all, 
 
I'm using a form to throw info straight into a database. i know it isn't the best way but i'm new and all other implementations have confused me (i've been reading and watching tutorials for 2 weeks) but anyway i'm going to take the info straight from the form. 
 
  <div...]]></description>
			<content:encoded><![CDATA[<div>hey all,<br />
<br />
I'm using a form to throw info straight into a database. i know it isn't the best way but i'm new and all other implementations have confused me (i've been reading and watching tutorials for 2 weeks) but anyway i'm going to take the info straight from the form.<br />
<br />
 <pre style="margin:20px; line-height:13px">Imports System<br />
Imports System.Data<br />
Imports System.Data.SqlClient<br />
<br />
Public Class frmClassAdd<br />
<br />
&nbsp; &nbsp; Dim m_intClassId As Integer = 0<br />
<br />
#Region &quot; Form Controls &amp; Events &quot;<br />
<br />
&nbsp; &nbsp; Private Sub btnCancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCancel.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; Me.Close()<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Private Sub btnSubmit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSubmit.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; If ValidateData() &lt;&gt; True Then Exit Sub<br />
&nbsp; &nbsp; &nbsp; &nbsp; Call AddClassRecord()<br />
&nbsp; &nbsp; &nbsp; &nbsp; Call AddClass2db()<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Me.Close()<br />
<br />
&nbsp; &nbsp; End Sub<br />
<br />
#End Region 'Form Controls &amp; Events<br />
&nbsp; &nbsp; 'Contains submit and cancel buttons<br />
<br />
<br />
#Region &quot; Form Subs &amp; Functions &quot;<br />
<br />
&nbsp; &nbsp; Private Sub AddClassRecord()<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim row As DataRow = Nothing<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; row = g_dsGradeList.Classes.NewRow<br />
&nbsp; &nbsp; &nbsp; &nbsp; row(&quot;ClassId&quot;) = nudClassId.Value<br />
&nbsp; &nbsp; &nbsp; &nbsp; row(&quot;ClassName&quot;) = txtClassName.Text.Trim<br />
&nbsp; &nbsp; &nbsp; &nbsp; row(&quot;Department&quot;) = txtDepartment.Text.Trim<br />
&nbsp; &nbsp; &nbsp; &nbsp; g_dsGradeList.Classes.Rows.Add(row)<br />
<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Private Sub AddClass2db()<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'this block below is to add the record straight into the database when<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'the user inserts the validated info<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim myConnection As SqlConnection<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim myCommand As SqlCommand<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim ra As Integer 'integer holds the number of records inserted<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim ClassId As String<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim ClassName As String<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim Department As String<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'you need to provide password for sql server <br />
&nbsp; &nbsp; &nbsp; &nbsp; myConnection = New SqlConnection(&quot;Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Users\Ein05\Documents\dbGradeListApplication.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True&quot;)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; myConnection.Open()<br />
&nbsp; &nbsp; &nbsp; &nbsp; myCommand = new SqlCommand INSERT INTO tblClasses (ClassId,ClassName,Department)VALUES &quot;('&quot; + nudClassId.Value + &quot;,&quot; +txtClassName.Text + &quot;,&quot; + txtDepartment.Text &quot;')&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; ra = myCommand.ExecuteNonQuery()<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; MessageBox.Show(&quot;New Row Inserted&quot; &amp; ra)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; myConnection.Close()<br />
<br />
&nbsp; &nbsp; End Sub</pre><br />
<br />
but the only problem i'm coming into is where the line<br />
<br />
 <pre style="margin:20px; line-height:13px">myCommand = new SqlCommand INSERT INTO tblClasses (ClassId,ClassName,Department)VALUES &quot;('&quot; + nudClassId.Value + &quot;,&quot; +txtClassName.Text + &quot;,&quot; + txtDepartment.Text &quot;')&quot;;</pre><br />
comes into play.<br />
<br />
the error states that<br />
End of statement expected.<br />
<br />
i've been overlooking this over and over but i can't find my error.<br />
<br />
help?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>leroi green</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240101.html</guid>
		</item>
		<item>
			<title>Do I need to set a position, If so how??!!</title>
			<link>http://www.daniweb.com/forums/thread240069.html</link>
			<pubDate>Fri, 20 Nov 2009 19:24:11 GMT</pubDate>
			<description><![CDATA[OK I have an assignment on my Access course, I find this site really good and require some help if possible. 
 
Basically I have a login screen which checks the Access Database I am using the code I have is this: 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right;...]]></description>
			<content:encoded><![CDATA[<div>OK I have an assignment on my Access course, I find this site really good and require some help if possible.<br />
<br />
Basically I have a login screen which checks the Access Database I am using the code I have is this:<br />
<br />
 <pre style="margin:20px; line-height:13px">Username = txtUsername.Text<br />
Password = txtPassword.Text<br />
<br />
'Following code connects the program to the access database.<br />
connection.ConnectionString = &quot;Provider=Microsoft.Jet.OLEDB.4.0; Data Source =C:\Users\BlackVIPER09\Documents\Visual Studio 2008\Projects\Primary School Maths Test\PrimaryMaths.mdb&quot;<br />
<br />
'This is the program opening the database, checking the users login and then closes the database.<br />
<br />
connection.Open()<br />
sql = &quot;SELECT * FROM MathsTest WHERE LoginName = '&quot; &amp; Username &amp; &quot;' AND Password= '&quot; &amp; Password &amp; &quot;'&quot;<br />
<br />
adaptor = New OleDb.OleDbDataAdapter(sql, connection)<br />
adaptor.Fill(ds, &quot;TestInfo&quot;)<br />
connection.Close()</pre><br />
OK next is the problem I am having, the above code is working fine. BUT when the user has completed a test and I want to apply data into the database under the person that has logged in how do I do this? As I understand I need to use UPDATE so have written the following code in the place I need to add the persons test results:<br />
<br />
 <pre style="margin:20px; line-height:13px">'Connection to the Database<br />
connection.ConnectionString = &quot;Provider=Microsoft.Jet.OLEDB.4.0; Data Source =C:\Users\BlackVIPER09\Documents\Visual Studio 2008\Projects\Primary School Maths Test\PrimaryMaths.mdb&quot;<br />
<br />
'This is to insert a new user and password into the database<br />
<br />
command.Connection = connection<br />
command.CommandText = &quot;UPDATE MathsTest&quot; &amp; &quot;(Easy_Time, Easy_Date)&quot; &amp; &quot;VALUES(@EasyTime, @EasyDate)&quot;<br />
command.Parameters.AddWithValue(&quot;@EasyTime&quot;, lblDate.Text)<br />
command.Parameters.AddWithValue(&quot;@Password&quot;, lblTimer.Text)<br />
connection.Open()<br />
command.ExecuteNonQuery()<br />
connection.Close()</pre><br />
I think the code is right but, tell me if I am wrong I am ment to set a position for the user when they login?? Please help I have tried to research this and not finding a thing.<br />
<br />
Any code would be appreciated!!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>blackviper04</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240069.html</guid>
		</item>
		<item>
			<title>delete an item of a list(of..)</title>
			<link>http://www.daniweb.com/forums/thread240068.html</link>
			<pubDate>Fri, 20 Nov 2009 19:16:05 GMT</pubDate>
			<description><![CDATA[Hi! 
im startin programmin in vb.net. 
in the program im doin now, im workin with a global variable 'public library as new biblioteca' that has should be a list of books that user wants to load.  
thing is that when i try to delete a book, i have to check if the code entered in textbox1 maches with...]]></description>
			<content:encoded><![CDATA[<div>Hi!<br />
im startin programmin in vb.net.<br />
in the program im doin now, im workin with a global variable 'public library as new biblioteca' that has should be a list of books that user wants to load. <br />
thing is that when i try to delete a book, i have to check if the code entered in textbox1 maches with the codes that the library has. <br />
to search in the library im using: &quot;library.Contenido.Item&quot; but its givin me this error: &quot;'Argument not specified for parameter 'index' of Public Default Property Item(index as Integer as T)&quot;, but dont know how to correct it :(<br />
here is the class to delete the book:<br />
<br />
<br />
 <pre style="margin:20px; line-height:13px">Public Class Bajas<br />
<br />
&nbsp; &nbsp; Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim i As Int32<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim total As Int32<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; If (TextBox1.Text &lt; 1000) Or (TextBox1.Text &gt; 32000) Then 'valida q se ingrese codigo bien<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.Show(&quot; Ingresar codigo correcto. de 1000 a 32000&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; For i = library.Contenido.Count To 0 Step -1 'esto recorre todo lo que haya cargado en el list of <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If (library.Contenido.Item = TextBox1.Text) Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'Argument not specified for parameter 'index' of Public Default Property Item(index as Integer as T) <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Next<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; End Sub<br />
End Class</pre><br />
<br />
thanks!!</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/thread240068.html</guid>
		</item>
		<item>
			<title>project topic</title>
			<link>http://www.daniweb.com/forums/thread239999.html</link>
			<pubDate>Fri, 20 Nov 2009 11:49:28 GMT</pubDate>
			<description><![CDATA[hello , 
hi i m sumit severiya & i m final year mca and i want to make project in 
or vb.NET .so plz help me and send the topic of project.]]></description>
			<content:encoded><![CDATA[<div>hello ,<br />
hi i m sumit severiya &amp; i m final year mca and i want to make project in<br />
or vb.NET .so plz help me and send the topic of project.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>sumit severiya</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239999.html</guid>
		</item>
		<item>
			<title>animating pictureboxes at given the start and ending coordiantes</title>
			<link>http://www.daniweb.com/forums/thread239992.html</link>
			<pubDate>Fri, 20 Nov 2009 11:01:37 GMT</pubDate>
			<description>hi there, I would like to ask some help in my project. Im trying to do a playbook application in vb.net. My problems is I dont know how to animate the pictureboxes. Im supposed to let them move once I play the animate button. Lets say i have a picture box with coordinate 20,30 and i would like it...</description>
			<content:encoded><![CDATA[<div>hi there, I would like to ask some help in my project. Im trying to do a playbook application in vb.net. My problems is I dont know how to animate the pictureboxes. Im supposed to let them move once I play the animate button. Lets say i have a picture box with coordinate 20,30 and i would like it to move on run time to 450,300. how do I do it? thanks...any suggestions will be appreciated</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>herms14</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239992.html</guid>
		</item>
		<item>
			<title>n-tier solution</title>
			<link>http://www.daniweb.com/forums/thread239952.html</link>
			<pubDate>Fri, 20 Nov 2009 07:41:31 GMT</pubDate>
			<description><![CDATA[I'm working on a n-tier solution with VB.Net 2008.  In this solution I have 3 projects started (the UI, BLL and DAL).  I have the BLL referenced in the UI and the DAL referenced in the BLL.  What I cannot do is use a User class in the BLL in my login form that's in the UI?  Any help would be...]]></description>
			<content:encoded><![CDATA[<div>I'm working on a n-tier solution with VB.Net 2008.  In this solution I have 3 projects started (the UI, BLL and DAL).  I have the BLL referenced in the UI and the DAL referenced in the BLL.  What I cannot do is use a User class in the BLL in my login form that's in the UI?  Any help would be greatly appreciated!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>lwestj</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239952.html</guid>
		</item>
		<item>
			<title>Problem catching errors</title>
			<link>http://www.daniweb.com/forums/thread239914.html</link>
			<pubDate>Fri, 20 Nov 2009 04:18:37 GMT</pubDate>
			<description>Hello everyone!! 
 
I have an assignment to create that wonderful mortgage calculator.  I have the code working, but when i try to catch an error (No matter is it is left blank, or a letter is typed in) the program crashes.  Not sure what i am doing wrong, but any in site would be great.  Thanks...</description>
			<content:encoded><![CDATA[<div>Hello everyone!!<br />
<br />
I have an assignment to create that wonderful mortgage calculator.  I have the code working, but when i try to catch an error (No matter is it is left blank, or a letter is typed in) the program crashes.  Not sure what i am doing wrong, but any in site would be great.  Thanks everyone!!<br />
<br />
 <pre style="margin:20px; line-height:13px">Public Class MortCalc<br />
<br />
&nbsp; &nbsp; Private Sub clearForm()<br />
&nbsp; &nbsp; &nbsp; &nbsp; txtLoan.Text = 200000<br />
&nbsp; &nbsp; &nbsp; &nbsp; txtInterest.Text = 5.75<br />
&nbsp; &nbsp; &nbsp; &nbsp; txtYears.Text = 30<br />
&nbsp; &nbsp; &nbsp; &nbsp; txtTotal.Text = &quot;&quot;<br />
&nbsp; &nbsp; End Sub<br />
<br />
<br />
&nbsp; &nbsp; Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalc.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'New Varables<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim txtPrincipal As Double<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim txtRate As Double<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim txtYears As Integer<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim amount As Double<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim monthlyRate As Double<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim years As Integer<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; amount = CDbl(Me.txtLoan.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; monthlyRate = CDbl(Me.txtInterest.Text) / 100 'allows interest rate to be entered whole number'<br />
&nbsp; &nbsp; &nbsp; &nbsp; years = CInt(Me.txtYears.Text)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; If IsNumeric(txtLoan.Text) = False Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MsgBox(&quot;Please enter a valid loan amount.&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; txtLoan.Clear()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; txtLoan.Focus()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Exit Sub<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; If IsNumeric(txtInterest.Text) = False Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MsgBox(&quot;Please enter a valid Interest Rate&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; txtInterest.Clear()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; txtInterest.Focus()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Exit Sub<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; If IsNumeric(Me.txtYears.Text) = False Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MsgBox(&quot;Please enter a valid year&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.txtYears.Clear()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.txtYears.Focus()<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; txtPrincipal = FormatCurrency(amount)<br />
&nbsp; &nbsp; &nbsp; &nbsp; txtRate = FormatCurrency(monthlyRate)<br />
&nbsp; &nbsp; &nbsp; &nbsp; txtYears = FormatCurrency(years) * 12<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim iRate As Double = monthlyRate / 12<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim tTotal As Double = txtPrincipal * (iRate / (1 - (1 + iRate) ^ (-txtYears)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; Me.txtTotal.Text = Format(tTotal, &quot;$#,##0.00&quot;)<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Private Sub btnClear_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClear.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; clearForm()<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; End<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>hollywoood</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239914.html</guid>
		</item>
		<item>
			<title>Question on Creating Objects/Efficiency</title>
			<link>http://www.daniweb.com/forums/thread239892.html</link>
			<pubDate>Fri, 20 Nov 2009 01:58:54 GMT</pubDate>
			<description><![CDATA[Hello- I'm using VB.NET (visual studio) to create a chatbot (a program that mimics a human and has a text converstion with you).  Two of my main classes are a word class and a sentence class.  The sentence object is basically going to be a linked list of words objects. 
 
Here's my question:  as...]]></description>
			<content:encoded><![CDATA[<div>Hello- I'm using VB.NET (visual studio) to create a chatbot (a program that mimics a human and has a text converstion with you).  Two of my main classes are a word class and a sentence class.  The sentence object is basically going to be a linked list of words objects.<br />
<br />
Here's my question:  as the program executes, many word objects will be instantiated, and so will many sentence objects.  But, each class (used to create the object) has several constants, procedures, and functions defined.  For each object instantiated, are new copies of the constants, procedures, and functions created in memory?  Or, is only one copy of the constants and procedures created?<br />
<br />
I hope my question is clear.  My fear is that, since many many objects will be created during program execution (each word of a sentence will be an object), that if the constants/procedures/functions are defined in memory again and again, that I'll run out of memory.<br />
<br />
If this is the case, what is the best way to structure my program so that the objects created contain only the variable data, and the constants/procedures/functions are defined only once?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>lss123</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239892.html</guid>
		</item>
		<item>
			<title>Getting the contents of web page and processing it (Print or save to file)</title>
			<link>http://www.daniweb.com/forums/thread239866.html</link>
			<pubDate>Thu, 19 Nov 2009 23:55:14 GMT</pubDate>
			<description><![CDATA[I've posted this elsewhere but thought this community mau also be a good fit... 
 
I am a Real Estate appraiser and have some limited experience with vb and .net. I have a task which I perform which requires me to go to the conuty appraisers web site and print a copy (to image bmp or jpg or...]]></description>
			<content:encoded><![CDATA[<div>I've posted this elsewhere but thought this community mau also be a good fit...<br />
<br />
I am a Real Estate appraiser and have some limited experience with vb and .net. I have a task which I perform which requires me to go to the conuty appraisers web site and print a copy (to image bmp or jpg or directly to the default printer) of the current public record info for anywhere from a few pages to 1,000 plus records at a time.<br />
<br />
I don't really get paid to do this part of the job so they don't care whether it takes me a few minutes or several hours to do this. I thought there must be a way to automate this process, so last week I started searching and test code snippets.<br />
<br />
What I have to date opens an instance of IE; navigates to the reguested page; finds the form elemet for AcctNo; fills it in and submits the form. The page that comes back is formatted for screen presentation and is not suitable to be sent to the printer. There is however a link which when clicked returns a page formatted for pinting. Downside is it also brings up the print dialog which then has to be handled. I was able through several methods to click either the print button or the cancel button which leaves me with a document that is either sent to printer or sitting on screen.<br />
<br />
The questions are: <br />
<br />
1.Is there a way to do this without displaying the Print Dialog? Maybe a HTTPRequest or HTTPWebREquest as I have no need to see the screens just need the final page.<br />
<br />
2.The resultant page is typically longer then letter by a few lines and wants to print on two pages. It would be nice to resize the page to fit and typically it will be the same resizing. <br />
<br />
3.If I stick with the print dialog either clicking print or cancel how can I intercept the document and decide by options set in the program wheter to send the file to the printer or save to image?<br />
<br />
I am sure I am working too hard to do this and figured there was someone out there who could answer this in a second while I've spent the better part of 3 days trying to figure it out.<br />
<br />
I enjoy the challenge of figuring thigs out so pointing me at a class or some site is greatfully appreciated, however example code is helpful as I am not a seasoned programmer and basically take examples and change them to fit my needs.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>wbward</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239866.html</guid>
		</item>
		<item>
			<title>I need  your help to advice</title>
			<link>http://www.daniweb.com/forums/thread239858.html</link>
			<pubDate>Thu, 19 Nov 2009 22:40:24 GMT</pubDate>
			<description>Good day every one  
I need  your help to advice me on how to make a program that using share folder as server 
And allow many computers to access and working it as Clint  
 
I am using vb.net 2008  
And  the program is filing system program  and our company share  folder is on windows server  
...</description>
			<content:encoded><![CDATA[<div>Good day every one <br />
I need  your help to advice me on how to make a program that using share folder as server<br />
And allow many computers to access and working it as Clint <br />
<br />
I am using vb.net 2008 <br />
And  the program is filing system program  and our company share  folder is on windows server <br />
<br />
Sorry for my bad English<br />
:'(</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>ALMURADYH</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239858.html</guid>
		</item>
		<item>
			<title>Help reading XML into DataGrid control with unusual error</title>
			<link>http://www.daniweb.com/forums/thread239836.html</link>
			<pubDate>Thu, 19 Nov 2009 20:22:30 GMT</pubDate>
			<description><![CDATA[Here is the code in question: 
  <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>...]]></description>
			<content:encoded><![CDATA[<div>Here is the code in question:<br />
 <pre style="margin:20px; line-height:13px">filePath = &quot;..\authors.xml&quot;<br />
dsAuthors.ReadXml(filePath)<br />
<br />
With DataGrid1<br />
&nbsp; &nbsp; &nbsp; .DataSource = dsAuthors<br />
&nbsp; &nbsp; &nbsp; .DataMember = &quot;authors&quot;<br />
End With</pre>However, it will not allow me to reference .DataMember, it keeps popping up with the error text &quot;'DataMember' is not a member of 'System.Windows.Forms.DataGrid'&quot;. What can I do to resolve this error? Or how else can I read into the DataGrid?<br />
<br />
Note: I have the most recent Framework installed with Service Pack 1</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>theMediator</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239836.html</guid>
		</item>
		<item>
			<title>assigning number of integer</title>
			<link>http://www.daniweb.com/forums/thread239805.html</link>
			<pubDate>Thu, 19 Nov 2009 17:21:40 GMT</pubDate>
			<description>im new in vb.net and i want to know how to assign specific number of digits enter in a textbox.. 
 
plz...reply guys! 
 
thankz....</description>
			<content:encoded><![CDATA[<div>im new in vb.net and i want to know how to assign specific number of digits enter in a textbox..<br />
<br />
plz...reply guys!<br />
<br />
thankz....</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>mezdhel08</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239805.html</guid>
		</item>
		<item>
			<title>Help Urgent please vb.net print jobs</title>
			<link>http://www.daniweb.com/forums/thread239772.html</link>
			<pubDate>Thu, 19 Nov 2009 14:50:47 GMT</pubDate>
			<description>Hi friends I am facing a very serious problem. I am trying get all the 
print jobs when anyone send print request fired 
then all print jobs i want to get. 
 
I am trying to get all the printing details(jobid, pagecount, printing 
status etc...) of print jobs which are present in print spooler. 
...</description>
			<content:encoded><![CDATA[<div>Hi friends I am facing a very serious problem. I am trying get all the<br />
print jobs when anyone send print request fired<br />
then all print jobs i want to get.<br />
<br />
I am trying to get all the printing details(jobid, pagecount, printing<br />
status etc...) of print jobs which are present in print spooler.<br />
<br />
Please give me some solution on this context.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>asmaqureshi82</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239772.html</guid>
		</item>
		<item>
			<title>Cant get Crystal report to show data from my projects dataset in .net</title>
			<link>http://www.daniweb.com/forums/thread239733.html</link>
			<pubDate>Thu, 19 Nov 2009 12:20:42 GMT</pubDate>
			<description><![CDATA[For some reasons I'm getting no data populating in my crystal report. I have set the datasourse of my crystal report to the dataset. I filled my dataset with data straight from the database. My dataset is not empty, I always check it first before populating data to the my report. I built my crystal...]]></description>
			<content:encoded><![CDATA[<div>For some reasons I'm getting no data populating in my crystal report. I have set the datasourse of my crystal report to the dataset. I filled my dataset with data straight from the database. My dataset is not empty, I always check it first before populating data to the my report. I built my crystal report off the wzard and I did add  crystal report viewer. Please help.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>thandwandim</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239733.html</guid>
		</item>
		<item>
			<title>Problem in hosting WCF service as a Windows Service</title>
			<link>http://www.daniweb.com/forums/thread239731.html</link>
			<pubDate>Thu, 19 Nov 2009 12:18:14 GMT</pubDate>
			<description>Hi experts. 
 
I have created a WCF Service using VS 2008. The dll is created successfully and then in New Project I add that dll with Start and Stop methods and add Installer as guided in WCF Tutorial. 
The exe is created successfully and I have installed that exe as service. All goes wll. Now to...</description>
			<content:encoded><![CDATA[<div>Hi experts.<br />
<br />
I have created a WCF Service using VS 2008. The dll is created successfully and then in New Project I add that dll with Start and Stop methods and add Installer as guided in WCF Tutorial.<br />
The exe is created successfully and I have installed that exe as service. All goes wll. Now to consume that service, in New Project I tried to Add Service Reference. For that I pasted the base address but Service was discovered although it was running in background (I saw in Control Panel-&gt;Services).<br />
<br />
The error was :<br />
 <pre style="margin:20px; line-height:13px">Metadata contains a reference that cannot be resolved: 'net.tcp://192.168.1.201:8081/Design_Time_Addresses/WCFJobsLibrary/Jobs/'.<br />
Could not connect to net.tcp://192.168.1.201:8081/Design_Time_Addresses/WCFJobsLibrary/Jobs/. The connection attempt lasted for a time span of 00:00:01.0625000. TCP error code 10061: No connection could be made because the target machine actively refused it 192.168.1.201:8081. <br />
No connection could be made because the target machine actively refused it 192.168.1.201:8081<br />
If the service is defined in the current solution, try building the solution and adding the service reference again.</pre><br />
my App.config file is as follows<br />
 <pre style="margin:20px; line-height:13px">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt;<br />
&lt;configuration&gt;<br />
&nbsp; &lt;system.web&gt;<br />
&nbsp; &nbsp; &lt;compilation debug=&quot;true&quot; /&gt;<br />
&nbsp; &lt;/system.web&gt;<br />
&nbsp; &lt;!-- When deploying the service library project, the content of the config file must be added to the host's <br />
&nbsp; app.config file. System.Configuration does not support config files for libraries. --&gt;<br />
&nbsp; &lt;system.serviceModel&gt;<br />
&nbsp; &nbsp; &lt;services&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;service behaviorConfiguration=&quot;WCFJobsLibrary.JobsBehavior&quot;<br />
&nbsp; &nbsp; &nbsp; name=&quot;WCFJobsLibrary.Jobs&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;endpoint address=&quot;net.tcp://192.168.1.201:8081/Design_Time_Addresses/WCFJobsLibrary/Jobs/&quot; binding=&quot;netTcpBinding&quot; bindingConfiguration=&quot;Binding1&quot; contract=&quot;WCFJobsLibrary.IJobs&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;identity&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;dns value=&quot;localhost&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/identity&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/endpoint&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;endpoint address=&quot;net.tcp://192.168.1.201:8081/Design_Time_Addresses/WCFJobsLibrary/Jobs/mex&quot; binding=&quot;mexTcpBinding&quot; contract=&quot;IMetadataExchange&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;host&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;baseAddresses&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;add baseAddress=&quot;net.tcp://192.168.1.201:8081/Design_Time_Addresses/WCFJobsLibrary/Jobs/&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/baseAddresses&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/host&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/service&gt;<br />
&nbsp; &nbsp; &lt;/services&gt;<br />
&nbsp; &nbsp; &lt;behaviors&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;serviceBehaviors&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;behavior name=&quot;WCFJobsLibrary.JobsBehavior&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;serviceMetadata httpGetEnabled=&quot;true&quot; httpGetUrl=&quot;http://192.168.1.201:8080&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;serviceDebug includeExceptionDetailInFaults=&quot;false&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/behavior&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/serviceBehaviors&gt;<br />
&nbsp; &nbsp; &lt;/behaviors&gt;<br />
&nbsp; &nbsp; &lt;bindings&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &lt;netTcpBinding &gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;binding name=&quot;Binding1&quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; closeTimeout=&quot;00:10:00&quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; openTimeout=&quot;00:10:00&quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; receiveTimeout=&quot;00:10:00&quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; sendTimeout=&quot;00:01:00&quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; transactionFlow=&quot;false&quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; transferMode=&quot;Buffered&quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; transactionProtocol=&quot;OleTransactions&quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; hostNameComparisonMode=&quot;StrongWildcard&quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; listenBacklog=&quot;10&quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; maxBufferPoolSize=&quot;524288&quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; maxBufferSize=&quot;65536&quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; maxConnections=&quot;10&quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; maxReceivedMessageSize=&quot;65536&quot; portSharingEnabled=&quot;false&quot;&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;readerQuotas maxDepth=&quot;32&quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; maxStringContentLength=&quot;8192&quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; maxArrayLength=&quot;16384&quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; maxBytesPerRead=&quot;4096&quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; maxNameTableCharCount=&quot;16384&quot; /&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;reliableSession ordered=&quot;true&quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inactivityTimeout=&quot;00:10:00&quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; enabled=&quot;false&quot; /&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;security mode=&quot;Transport&quot;&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;transport clientCredentialType=&quot;Windows&quot; protectionLevel=&quot;EncryptAndSign&quot; /&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/security&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/binding&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &lt;/netTcpBinding&gt;<br />
<br />
&nbsp; &nbsp; &lt;/bindings&gt;<br />
&nbsp; &lt;/system.serviceModel&gt;<br />
&lt;/configuration&gt;</pre>If test client is running it discovers the service but when not running it says above error ..<br />
Any ideas ..? Help<br />
:)</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>mania_comp</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239731.html</guid>
		</item>
		<item>
			<title>timer to control parallel port</title>
			<link>http://www.daniweb.com/forums/thread239713.html</link>
			<pubDate>Thu, 19 Nov 2009 11:29:44 GMT</pubDate>
			<description>please help me 
i want to control pc parallel port using vb.net/vb6 , i need timer coding . 
santosh</description>
			<content:encoded><![CDATA[<div>please help me<br />
i want to control pc parallel port using vb.net/vb6 , i need timer coding .<br />
santosh</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>santoshaxl</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239713.html</guid>
		</item>
		<item>
			<title>flexgrid in vb.net</title>
			<link>http://www.daniweb.com/forums/thread239711.html</link>
			<pubDate>Thu, 19 Nov 2009 11:14:38 GMT</pubDate>
			<description><![CDATA[hi all, 
i am new to vb.net. 
I am converting project from vb to vb.net. 
there is prob, that i have added third party module called flexgrid in vb.net because in used in vb but not included in vb.net toolbox. 
noe there is error regarding ambiguity. 
error is:  "error BC30560: 'AxMSFlexGrid' is...]]></description>
			<content:encoded><![CDATA[<div>hi all,<br />
i am new to vb.net.<br />
I am converting project from vb to vb.net.<br />
there is prob, that i have added third party module called flexgrid in vb.net because in used in vb but not included in vb.net toolbox.<br />
noe there is error regarding ambiguity.<br />
error is:  &quot;error BC30560: 'AxMSFlexGrid' is ambiguous in the namespace 'AxMSFlexGridLib'.&quot;<br />
Plz help me.<br />
Thanks in advance.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>shinikat</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239711.html</guid>
		</item>
		<item>
			<title><![CDATA[Adding the 'Select All' feature in the datagridview]]></title>
			<link>http://www.daniweb.com/forums/thread239664.html</link>
			<pubDate>Thu, 19 Nov 2009 07:00:36 GMT</pubDate>
			<description>Hi experts, 
 
I am a student working on a project for my company. I work using Microsoft Visual Studio 2005. Language is vb.net. I also work using windows application. 
 
I have a form(EmailContacts) which contains a datagridview and a button to add the data to a textbox of another form....</description>
			<content:encoded><![CDATA[<div>Hi experts,<br />
<br />
I am a student working on a project for my company. I work using Microsoft Visual Studio 2005. Language is vb.net. I also work using windows application.<br />
<br />
I have a form(EmailContacts) which contains a datagridview and a button to add the data to a textbox of another form. Everything is working fine and i can display data from the database on the datagridview properly. The problem is how do i add a 'Select All' feature such that when the user clicked once on the 'Select All' checkbox, all the checkboxes of the columns are selected?<br />
<br />
Pls advise.<br />
<br />
These are my codes for the form:-<br />
<br />
 <pre style="margin:20px; line-height:13px">Public Class EmailContacts<br />
&nbsp; &nbsp; Dim xs As String<br />
&nbsp; &nbsp; Dim conn As New OleDb.OleDbConnection<br />
&nbsp; &nbsp; Dim ds As New DataSet<br />
&nbsp; &nbsp; Dim da As OleDb.OleDbDataAdapter<br />
&nbsp; &nbsp; Private Sub EmailContacts_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br />
&nbsp; &nbsp; &nbsp; &nbsp; conn.ConnectionString = &quot;PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source = C:\Documents and Settings\1B09158\Desktop\aLL.iCONS\database\User.mdb&quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'Dim connectionString As String = &quot;Data Source=ITCU-22\SQLEXPRESS;Initial Catalog=User;&quot; &amp; &quot;Integrated Security=SSPI;&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'conn = New SqlConnection(connectionString)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; xs = &quot;SELECT CustName,Email,Selection FROM customer&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; da = New OleDb.OleDbDataAdapter(xs, conn)<br />
&nbsp; &nbsp; &nbsp; &nbsp; conn.Open()<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; ds = New DataSet()<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'Dim commandBuilder As SqlCommandBuilder = New SqlCommandBuilder(da)<br />
&nbsp; &nbsp; &nbsp; &nbsp; da.Fill(ds, &quot;customer&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; DataGridView1.DataSource = ds.Tables(&quot;customer&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Email.Show()<br />
&nbsp; &nbsp; End Sub<br />
<br />
<br />
&nbsp; &nbsp; Private Sub AddContacts_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim i As Integer<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim ds As DataTable = CType(DataGridView1.DataSource, DataTable)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Email.rtbBcc.Text = &quot;&quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; For i = 0 To (ds.Rows.Count - 1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If DataGridView1.Rows(i).Cells(&quot;Selection&quot;).Value IsNot System.DBNull.Value Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If DataGridView1.Rows(i).Cells(&quot;Selection&quot;).Value = True Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Email.rtbBcc.Text += DataGridView1.Rows(i).Cells(&quot;Email&quot;).Value.ToString()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Email.rtbBcc.Text += &quot;,&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'Email.TextBox5.Text += DataGridView1.Rows(i).Cells(&quot;CustName&quot;).Value.ToString() + &quot;,&quot; &amp; vbCrLf<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'If DataGridView1.Rows(i).Cells(&quot;Selection&quot;).Value = True Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '&nbsp; &nbsp; SendSMS.TextBox1.Text += DataGridView1.Rows(i).Cells(&quot;CustName&quot;).Value.ToString() + &quot;,&quot; &amp; vbCrLf<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'End If<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; Next<br />
&nbsp; &nbsp; &nbsp; &nbsp; Email.rtbBcc.Text = Email.rtbBcc.Text.Remove(Email.rtbBcc.Text.Length - 1, 1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Me.Hide()<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>milhero</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239664.html</guid>
		</item>
		<item>
			<title>Exporter Tool</title>
			<link>http://www.daniweb.com/forums/thread239663.html</link>
			<pubDate>Thu, 19 Nov 2009 06:39:09 GMT</pubDate>
			<description>Hi, 
 
  Anybody please tell me basic idea to create a tool which should be able to export data from SQL Server. I am familiar with java and MS SQL. Please help me. Thanx in advance.</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
  Anybody please tell me basic idea to create a tool which should be able to export data from SQL Server. I am familiar with java and MS SQL. Please help me. Thanx in advance.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>Ambarish N R</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239663.html</guid>
		</item>
		<item>
			<title><![CDATA[[HELP] Forgot Password Application]]></title>
			<link>http://www.daniweb.com/forums/thread239656.html</link>
			<pubDate>Thu, 19 Nov 2009 06:05:34 GMT</pubDate>
			<description><![CDATA[I try to create an forgot password application. 
in the application, in order to get user password, user must do some input. there is 4 input : Username, Name, Security Question, and Security Answer. 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>I try to create an forgot password application.<br />
in the application, in order to get user password, user must do some input. there is 4 input : Username, Name, Security Question, and Security Answer.<br />
<br />
 <pre style="margin:20px; line-height:13px">Try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If TextBox8.Text &lt;&gt; &quot;&quot; Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; kueri = &quot;select Username, Pass, Nama, SecQue, SecAns from Account where Username = '&quot; + TextBox8.Text + &quot;'&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; conn.Open()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmd = New SqlCommand(kueri, conn)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rd = cmd.ExecuteReader<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rd.Read()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If TextBox8.Text = rd(0) Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If TextBox9.Text = rd(2) Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If ComboBox2.Text = rd(3) Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If TextBox10.Text = rd(4) Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim pwd As String<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pwd = rd(1).ToString<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Label10.Text = Dekrip(pwd, SecretKey)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Label10.Visible = True<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; conn.Close()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TextBox8.Text = &quot;&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TextBox9.Text = &quot;&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ComboBox2.Text = &quot;- Pilih Salah Satu -&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TextBox10.Text = &quot;&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MsgBox(&quot; BAD Security Answer&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MsgBox(&quot;BAD Security Question&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<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; MsgBox(&quot;BAD Name&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MsgBox(&quot;BAD Username&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MsgBox(&quot;Please Insert Answer&quot;)<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; MsgBox(ex.ToString)<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Try</pre><br />
Problem :<br />
this SQL Command, &quot;select Username, Pass, Nama, SecQue, SecAns from Account where Username = '&quot; + TextBox8.Text + &quot;'&quot;, need to get textbox8.text in order to get the password.<br />
but, if user input some word that not exist in the database, my application get error from the database that say &quot;word don't exist&quot;.<br />
<br />
is there any other way to make this forgot password application ?<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/thread239656.html</guid>
		</item>
		<item>
			<title>Selecting data from sql database and importing into combobox</title>
			<link>http://www.daniweb.com/forums/thread239609.html</link>
			<pubDate>Thu, 19 Nov 2009 01:33:44 GMT</pubDate>
			<description><![CDATA[Help!!! 
 
I cannot get my combo box to populate using a select statement from mysql database. 
 
Please see below for coding 
 
  <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"...]]></description>
			<content:encoded><![CDATA[<div>Help!!!<br />
<br />
I cannot get my combo box to populate using a select statement from mysql database.<br />
<br />
Please see below for coding<br />
<br />
 <pre style="margin:20px; line-height:13px">CN = New ADODB.Connection<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'Connecion to database<br />
&nbsp; &nbsp; &nbsp; &nbsp; CN.Open(&quot;driver={mysql odbc 5.1 driver};server=localhost;database=v_control;user=root;password=;option=3&quot;)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; RS = New ADODB.Recordset<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; RS.Open(SQLdata, CN, ADODB.CursorTypeEnum.adOpenUnspecified, ADODB.LockTypeEnum.adLockPessimistic)<br />
<br />
If DBconnect() = True Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SQLSearch(&quot;select * from engineer (EngineerNumber&quot;)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RS.MoveFirst()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; While RS.EOF = False<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Do<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmbEngNum.Items.Add(&quot;EngineerNumber&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RS.MoveNext()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Loop<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End While<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If</pre><br />
but this reports the following error<br />
<br />
[MySQL][ODBC 5.1 Driver][mysqld-5.1.36-community-log]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(EngineerNumber' at line 1<br />
<br />
Any ideas would be most appreciated, im quite new to this as you can probly tell.<br />
<br />
thanks</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/thread239609.html</guid>
		</item>
		<item>
			<title>Internet Cafe Software</title>
			<link>http://www.daniweb.com/forums/thread239562.html</link>
			<pubDate>Wed, 18 Nov 2009 21:19:52 GMT</pubDate>
			<description>Right now I am writing a software that can be used to manage an internet cafe just because I feel like it. 
 
my problem is that i cannot make my form the default screen. what i mean is that i need it to stay on top of windows(when user exits from games my form should be on top. also ctrl+alt+del...</description>
			<content:encoded><![CDATA[<div>Right now I am writing a software that can be used to manage an internet cafe just because I feel like it.<br />
<br />
my problem is that i cannot make my form the default screen. what i mean is that i need it to stay on top of windows(when user exits from games my form should be on top. also ctrl+alt+del should not minise or close my form because the user will gain access without paying). the user will launch only games and applications from the menus of my form and a timer keeps track of time in order to charge the customer accordingly.<br />
<br />
Another problem is that the users are saved on my server pc and the clients pc need a way to confirm an account before logging in and also update the status of user(display &quot;online&quot; for users logged in the system) and also update the time usage show on server(the pc of the cashier/admin). <br />
<br />
up to now i have thought of doing this using winsock but any other ideas are welcome. <br />
<br />
thank you</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>drivehard-gopro</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239562.html</guid>
		</item>
		<item>
			<title>Intiate internet data connection on WM6 devices?</title>
			<link>http://www.daniweb.com/forums/thread239472.html</link>
			<pubDate>Wed, 18 Nov 2009 14:33:25 GMT</pubDate>
			<description><![CDATA[Hi 
 
I am currently porting (well really totally re-writing) a project to run on WM6 devices.  I need to initiate a GPRS data connection (or any internet data connection really, shouldn't matter if its GSM or CDMA) before I can get the data I need (actually sync. a database over the cell network -...]]></description>
			<content:encoded><![CDATA[<div>Hi<br />
<br />
I am currently porting (well really totally re-writing) a project to run on WM6 devices.  I need to initiate a GPRS data connection (or any internet data connection really, shouldn't matter if its GSM or CDMA) before I can get the data I need (actually sync. a database over the cell network - Sybase via Mobilink) because right now its basically saying I have no network connection when I make the call to sync the db.<br />
<br />
If I open Internet Explorer on the device, it initiates the data connection, and I can then go back into my program and get the data no problem.  This isn't an acceptable solution however.<br />
<br />
How can I initiate the internet data connection?<br />
<br />
Regards,<br />
Scott</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>rciprogrammer</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239472.html</guid>
		</item>
		<item>
			<title>multiple mdi containers</title>
			<link>http://www.daniweb.com/forums/thread239466.html</link>
			<pubDate>Wed, 18 Nov 2009 14:16:04 GMT</pubDate>
			<description><![CDATA[hey all, 
i am currently working on an app that needs nested mdi containers. but i always get an error saying: *"Form cannot be both an MDI child and MDI parent. Parameter name: value"*. 
 
what i am trying to do is: 
 
form1 has a child called form2 but form2 also has a child form3. 
 
i remember...]]></description>
			<content:encoded><![CDATA[<div>hey all,<br />
i am currently working on an app that needs nested mdi containers. but i always get an error saying: <span style="font-weight:bold">&quot;Form cannot be both an MDI child and MDI parent. Parameter name: value&quot;</span>.<br />
<br />
what i am trying to do is:<br />
<br />
form1 has a child called form2 but form2 also has a child form3.<br />
<br />
i remember when i was browsing before, that i stumbled upon a site showing how to do nested mdi containers but i totally ignored it not knowing that i'll be needing it. i searched for it again but too bad i cant find it..<br />
<br />
i really need help guys<br />
<br />
tnx in advance..</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>gianrocks</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239466.html</guid>
		</item>
		<item>
			<title>I need help with my text editing application!</title>
			<link>http://www.daniweb.com/forums/thread239459.html</link>
			<pubDate>Wed, 18 Nov 2009 13:41:12 GMT</pubDate>
			<description><![CDATA[Hello guys and gals of the DaniWeb community, this time I need help in how to save text to a file in the text editing application I created. Well, I tried using the code below but it didn't do the work: 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px">...]]></description>
			<content:encoded><![CDATA[<div>Hello guys and gals of the DaniWeb community, this time I need help in how to save text to a file in the text editing application I created. Well, I tried using the code below but it didn't do the work:<br />
<br />
 <pre style="margin:20px; line-height:13px">If (RichTextBox1.Text Is Nothing) Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.Show(&quot;No text to save!&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Return<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; If (SaveFileDialog1.ShowDialog() = Windows.Forms.DialogResult.OK) Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If (System.IO.File.Exists(SaveFileDialog1.FileName)) Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.IO.File.Delete(SaveFileDialog1.FileName)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
RichTextBox1.Text = (System.IO.File.WriteAllText(SaveFileDialog1.FileName))<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If</pre><br />
And, I really need your help. I've tried almost everything I know. BTW, thanks in advance.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>TechSupportGeek</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239459.html</guid>
		</item>
		<item>
			<title>How to display data from 2 tabels in dataset</title>
			<link>http://www.daniweb.com/forums/thread239433.html</link>
			<pubDate>Wed, 18 Nov 2009 11:30:48 GMT</pubDate>
			<description>Dear freinds i have a big problem!! i hope somebody can help me out.. 
 
The situation: 
I have a small application where i store customers and orders.. 
In my database i have a tabel called Customers and a tabel called Orders. These 2 dabases are joined on Customer ID  - every Order record contain...</description>
			<content:encoded><![CDATA[<div>Dear freinds i have a big problem!! i hope somebody can help me out..<br />
<br />
The situation:<br />
I have a small application where i store customers and orders..<br />
In my database i have a tabel called Customers and a tabel called Orders. These 2 dabases are joined on Customer ID  - every Order record contain a row with the customer Id.<br />
<br />
My problem:<br />
I have joined the 2 tabels in a dataset called Customers and orders. I would like to present a Customer details form where i present the customer with a detail view and underneath all the orders listet in a list view..<br />
But when i drag the dataset into my form evey single order is presented in the listview in the buttom - I only want the orders which are connected to the displayed customer in the detailsview...<br />
<br />
I hope somebody can give me some help i am totally stuck...<br />
<br />
Best regard Kristian</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>21KristianN</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239433.html</guid>
		</item>
		<item>
			<title>Get input stream from generic usb device</title>
			<link>http://www.daniweb.com/forums/thread239391.html</link>
			<pubDate>Wed, 18 Nov 2009 07:57:34 GMT</pubDate>
			<description><![CDATA[Ok. So. 
 
I'm trying to develop an application to capture the input buffer to identify a device's input commands to build a user control that uses this commands for further use. 
 
I'm actually developing a project that simulates Guitar Hero, and I want it to recognise the Guitar Hero Controller's...]]></description>
			<content:encoded><![CDATA[<div>Ok. So.<br />
<br />
I'm trying to develop an application to capture the input buffer to identify a device's input commands to build a user control that uses this commands for further use.<br />
<br />
I'm actually developing a project that simulates Guitar Hero, and I want it to recognise the Guitar Hero Controller's input.<br />
<br />
I know there are already several controls that work with the guitar hero controller. The thing is i MUST develop this control myself.<br />
<br />
What i've done so far only recognises input from the keyboard using  <pre style="margin:20px; line-height:13px">Console.OpenStandardInput()</pre>. The thing is, as the class name says, it reads input from the Console... not from all sources possible, such as mouse, and other peripherals (joystick, and as i need it, Guitar Hero Controller)<br />
<br />
Here's my code:<br />
<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; Sub Main()<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim Data As System.IO.Stream<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim buff(32) As Byte<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim buffOut() As Byte<br />
&nbsp; &nbsp; &nbsp; &nbsp; Data = Console.OpenStandardInput()<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'Dim DataBuff As System.IO.BufferedStream<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'DataBuff = System.IO.BufferedStream.Synchronized(Data)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Using memoryStream As New System.IO.MemoryStream<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim count As Integer<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Do<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; count = Data.Read(buff, 0, buff.Length)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MsgBox(buff.GetValue(0))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; memoryStream.Write(buff, 0, count)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Loop While count &lt;&gt; 0<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; buffOut = memoryStream.ToArray()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Debug.Print(buffOut.ToString())<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Using<br />
&nbsp; &nbsp; End Sub</pre><br />
I guess (since i don't really know) all i need is guidance towards the right input buffer to use for this purpose, since the Console Input Buffer is not working for me.<br />
<br />
Thanks in advance!!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>Nichito</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239391.html</guid>
		</item>
		<item>
			<title>How to get time from remote pc</title>
			<link>http://www.daniweb.com/forums/thread239369.html</link>
			<pubDate>Wed, 18 Nov 2009 06:39:04 GMT</pubDate>
			<description>Hi All, 
 
Need your help regarding to get time from remote pc via Network (LAN)..plz...urgently need...tq</description>
			<content:encoded><![CDATA[<div>Hi All,<br />
<br />
Need your help regarding to get time from remote pc via Network (LAN)..plz...urgently need...tq</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>kerek2</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239369.html</guid>
		</item>
		<item>
			<title>Coding for windows form</title>
			<link>http://www.daniweb.com/forums/thread239362.html</link>
			<pubDate>Wed, 18 Nov 2009 06:01:45 GMT</pubDate>
			<description><![CDATA[can anyone help me with this problem. i'm a newbie in vb.net. i've already design a form as per attached. but i got problem in making the button function as what it should be. the navigation button..the add, edit , delete button...all the buttons...the save button is situated under the add...]]></description>
			<content:encoded><![CDATA[<div>can anyone help me with this problem. i'm a newbie in vb.net. i've already design a form as per attached. but i got problem in making the button function as what it should be. the navigation button..the add, edit , delete button...all the buttons...the save button is situated under the add button...plz..plz...plz....really need your help...tq.</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/jpg.gif" alt="File Type: jpg" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12614&amp;d=1258524083" target="_blank">irs.jpg</a> (64.3 KB)</td> </tr> </table> </fieldset>   </div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>ainurhani</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239362.html</guid>
		</item>
		<item>
			<title>how to get opened url from any browser IE, FireFox, Opera...</title>
			<link>http://www.daniweb.com/forums/thread239302.html</link>
			<pubDate>Tue, 17 Nov 2009 22:43:33 GMT</pubDate>
			<description><![CDATA[Hello , 
 
i hope somebody can help me. 
 
I want to make a program that is "spying" a web browsers and colect web urls that is opened. 
 
Can some body give me some info (links, examples... any) 
 
Thanks in advance.]]></description>
			<content:encoded><![CDATA[<div>Hello ,<br />
<br />
i hope somebody can help me.<br />
<br />
I want to make a program that is &quot;spying&quot; a web browsers and colect web urls that is opened.<br />
<br />
Can some body give me some info (links, examples... any)<br />
<br />
Thanks in advance.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>rromano</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239302.html</guid>
		</item>
		<item>
			<title><![CDATA[[HELP] Print picture on form control]]></title>
			<link>http://www.daniweb.com/forums/thread239297.html</link>
			<pubDate>Tue, 17 Nov 2009 22:19:55 GMT</pubDate>
			<description>Usually I printing a document using PrintPreviewDialog, PrintDialog, and PrintDocumentDialog. 
but this time I need to print picture on my form control. object I want to print are 1 background image, several label, and several picture box. 
 
i dont know why my print preview still blank every time...</description>
			<content:encoded><![CDATA[<div>Usually I printing a document using PrintPreviewDialog, PrintDialog, and PrintDocumentDialog.<br />
but this time I need to print picture on my form control. object I want to print are 1 background image, several label, and several picture box.<br />
<br />
i dont know why my print preview still blank every time i want to see my print preview<br />
<br />
 <pre style="margin:20px; line-height:13px"> Private Sub PrintPreviewToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PrintPreviewToolStripMenuItem.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; PrintPreviewDialog1.Document = PrintDocument1<br />
&nbsp; &nbsp; &nbsp; &nbsp; PrintPreviewDialog1.WindowState = FormWindowState.Maximized<br />
&nbsp; &nbsp; &nbsp; &nbsp; PrintPreviewDialog1.ShowDialog()<br />
&nbsp; &nbsp; End Sub</pre><br />
help please..</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/thread239297.html</guid>
		</item>
		<item>
			<title>updating access database from dataset</title>
			<link>http://www.daniweb.com/forums/thread239292.html</link>
			<pubDate>Tue, 17 Nov 2009 21:42:54 GMT</pubDate>
			<description>I am having a problem updating an access database with new information from an updated dataset. the database consists of 4 columns: User_ID, Login_Name, Password, Access. The following code makes a connection to the database, fills a dataset with the data from the database, reads a txt file with...</description>
			<content:encoded><![CDATA[<div>I am having a problem updating an access database with new information from an updated dataset. the database consists of 4 columns: User_ID, Login_Name, Password, Access. The following code makes a connection to the database, fills a dataset with the data from the database, reads a txt file with user name and passwords, and should update the dataset and then the database. However, I keep getting an Syntax error on the INSERT INTO statement on the datest.Update(dsUser,&quot;User&quot;) line. I have found multiple posts on here showing the correct syntax of how to update a database, but I can't seem to get it to work. Any help would be appreciated.<br />
<br />
 <pre style="margin:20px; line-height:13px">Public constringtest As String = &quot;Provider=Microsoft.Jet.OLEDB.4.0; Data Source=&quot; &amp; Application.StartupPath &amp; &quot;\test.mdb&quot;<br />
&nbsp; &nbsp; Public contest As New OleDb.OleDbConnection<br />
&nbsp; &nbsp; Public datest As OleDb.OleDbDataAdapter<br />
contest.ConnectionString = constringtest<br />
&nbsp; &nbsp; &nbsp; &nbsp; contest.Open()<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; strSQL = &quot;SELECT * FROM tbl_User&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; datest = New OleDb.OleDbDataAdapter(strSQL, contest)<br />
&nbsp; &nbsp; &nbsp; &nbsp; datest.Fill(dsUser, &quot;User&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; contest.Close()<br />
Dim inFile As IO.StreamReader<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim strUserArray() As String<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim newRow As DataRow<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim txtFile As String = &quot;\class.txt&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim newID As Integer<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; If IO.File.Exists(Application.StartupPath &amp; txtFile) Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; newID = dsUser.Tables(&quot;User&quot;).Rows(dsUser.Tables(&quot;User&quot;).Rows.Count - 1).Item(&quot;User_ID&quot;)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inFile = IO.File.OpenText(Application.StartupPath &amp; txtFile)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Do Until inFile.Peek = -1<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; newID = newID + 1<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strUserArray = inFile.ReadLine.Split(&quot; &quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.Show(strUserArray(0) &amp; strUserArray(1))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; newRow = dsUser.Tables(&quot;User&quot;).NewRow()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; newRow(&quot;User_ID&quot;) = newID<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; newRow(&quot;Login_Name&quot;) = strUserArray(0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; newRow(&quot;Password&quot;) = strUserArray(1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; newRow(&quot;Access&quot;) = &quot;student&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dsUser.Tables(&quot;User&quot;).Rows.Add(newRow)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; contest.Open()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim cb As New OleDb.OleDbCommandBuilder(datest)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; datest.Update(dsUser, &quot;User&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dsUser.Clear()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; datest.Fill(dsUser, &quot;User&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; contest.Close()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Loop</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>shellthor</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239292.html</guid>
		</item>
		<item>
			<title>VB2008 - Write data to sql database</title>
			<link>http://www.daniweb.com/forums/thread239265.html</link>
			<pubDate>Tue, 17 Nov 2009 20:13:17 GMT</pubDate>
			<description>Hi, hope you can help, i am quite new to this. 
 
I need to know who to write data from several text boxes on a form to a sql database. 
 
I have created the sql database on a localhost using myphp admin, i have created the connection in a module named as dbconnect() 
 
i can try the connection and...</description>
			<content:encoded><![CDATA[<div>Hi, hope you can help, i am quite new to this.<br />
<br />
I need to know who to write data from several text boxes on a form to a sql database.<br />
<br />
I have created the sql database on a localhost using myphp admin, i have created the connection in a module named as dbconnect()<br />
<br />
i can try the connection and this connects fine, but unsure how to write the data from the texboxes to the database.<br />
<br />
hope you can help.<br />
<br />
thanks</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/thread239265.html</guid>
		</item>
		<item>
			<title>how to fire a method on a different form when closing a form</title>
			<link>http://www.daniweb.com/forums/thread239261.html</link>
			<pubDate>Tue, 17 Nov 2009 19:59:35 GMT</pubDate>
			<description>Hi gang, 
 
I have a unique challenge that I just cannot seem to get by...I have a form with a series of listboxes that allows the user to rename items in the listbox (I probably should be using a listview control instead). When the user right-clicks and selects rename from the context menu I show...</description>
			<content:encoded><![CDATA[<div>Hi gang,<br />
<br />
I have a unique challenge that I just cannot seem to get by...I have a form with a series of listboxes that allows the user to rename items in the listbox (I probably should be using a listview control instead). When the user right-clicks and selects rename from the context menu I show a simple form with two labels &amp; text boxes showing the selected list box item in one textbox...the other is blank waiting for the user to enter a new name. What I'd like to do is when the user closes the rename form, the information is passed back to the calling form and a listbox refresh method is fired to show the changed name. Couple question:<br />
<br />
First, is there an easier method to implement the renaming concept in a listbox (probably should be using a list view) i.e., have I overcomplicated things?<br />
<br />
Second, does anyone have any suggestions or code examples to share that would shed some light on my challenge.<br />
<br />
Any thoughts/suggestions would be greatly appreciated.<br />
<br />
cheers</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>hjdoran</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239261.html</guid>
		</item>
		<item>
			<title>Help with change problem</title>
			<link>http://www.daniweb.com/forums/thread239250.html</link>
			<pubDate>Tue, 17 Nov 2009 18:50:07 GMT</pubDate>
			<description>Hey guys, I am new to vb and need some help with this change program. The idea is that we are given a certain amoun of change and then telling how many dollars, quarters, dimes, nickles and pennies. I thought I would convert the decimal to an integer and then use a while loop for every text box,...</description>
			<content:encoded><![CDATA[<div>Hey guys, I am new to vb and need some help with this change program. The idea is that we are given a certain amoun of change and then telling how many dollars, quarters, dimes, nickles and pennies. I thought I would convert the decimal to an integer and then use a while loop for every text box, i.e. dollars, quarters, dimes, etc.., to show how many of each, but the while loop is confusing for me in vb, but to tell you the truth I don't know if I am on the right track, can you help?<br />
<br />
<br />
 <pre style="margin:20px; line-height:13px">Public Class Form1<br />
<br />
&nbsp; &nbsp; Private Sub btnCalculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculate.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim getChange As Decimal = txtStart.Text<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim intGetChange As Integer = Convert.ToInt32(getChange)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; While intGetChange &gt; 100<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; intGetChange(-100)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; End While<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim showDollars As Integer = intGetChange<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim showQuarters As Integer = txtQuarters.Text<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim showDimes As Integer = txtDimes.Text<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim showNickles As Integer = txtNickles.Text<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim showPennies As Integer = txtPennies.Text<br />
<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>songweaver</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239250.html</guid>
		</item>
		<item>
			<title>Set fixed height for details section in crystal reports</title>
			<link>http://www.daniweb.com/forums/thread239182.html</link>
			<pubDate>Tue, 17 Nov 2009 11:30:27 GMT</pubDate>
			<description>How can i set a fixed height detail section in crystal reports regardless of record count. 
 
I set the height of detail section to 10 records. If i put 8 records, the space for other 2 records should be white space. That is, total height remain the same. 
 
Please help me, 
 
Thanks,</description>
			<content:encoded><![CDATA[<div>How can i set a fixed height detail section in crystal reports regardless of record count.<br />
<br />
I set the height of detail section to 10 records. If i put 8 records, the space for other 2 records should be white space. That is, total height remain the same.<br />
<br />
Please help me,<br />
<br />
Thanks,</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>adonweb</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239182.html</guid>
		</item>
		<item>
			<title>ZedGraph help</title>
			<link>http://www.daniweb.com/forums/thread239172.html</link>
			<pubDate>Tue, 17 Nov 2009 10:35:37 GMT</pubDate>
			<description>hi  
 
i have a plotted a graph in zedgraph and i had a problem that the line was stopped in the middle and not completely drawn. I have thought that i have not completed the zed graph point pair list. But when i checked it programatically it was completed and when i right click on the screen and...</description>
			<content:encoded><![CDATA[<div>hi <br />
<br />
i have a plotted a graph in zedgraph and i had a problem that the line was stopped in the middle and not completely drawn. I have thought that i have not completed the zed graph point pair list. But when i checked it programatically it was completed and when i right click on the screen and enable show point pair values im able to see the point pair list upto the end please any one help me with this problem<br />
<br />
please check the image link below <br />
<br />
<a rel="nofollow" class="t" href="http://picasaweb.google.com/VAMSIromeo/ZedGraph#5405011627451661298" target="_blank">http://picasaweb.google.com/VAMSIrom...11627451661298</a><br />
<br />
<br />
regards,<br />
<br />
vamsi</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>vamsivizag</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239172.html</guid>
		</item>
		<item>
			<title><![CDATA[How to change the text color of Listview's group header in vb.net ?]]></title>
			<link>http://www.daniweb.com/forums/thread239150.html</link>
			<pubDate>Tue, 17 Nov 2009 08:02:20 GMT</pubDate>
			<description>I want to change the color of the group header text in listview which separates all the items into various groups,  there is no such option to do that directly because no such property exists. 
 
As far as i can think of it can be achieved via overriding the paint event but i have not done any...</description>
			<content:encoded><![CDATA[<div>I want to change the color of the group header text in listview which separates all the items into various groups,  there is no such option to do that directly because no such property exists.<br />
<br />
As far as i can think of it can be achieved via overriding the paint event but i have not done any overriding of paint events on windows controls so far.<br />
<br />
Anyone knows how to do it ?<br />
<br />
I would be very thankful if someone can suggest a solution.</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/thread239150.html</guid>
		</item>
		<item>
			<title>snmp v1 or snmp v2 (without trap)</title>
			<link>http://www.daniweb.com/forums/thread239134.html</link>
			<pubDate>Tue, 17 Nov 2009 06:54:12 GMT</pubDate>
			<description>hi.. 
could anyone help me to solve. 
I build vb.net application (windows service/windows form) as agent, 
how to make my application can request status using snmp(not snmp trap) ? 
 
i plan PRTG application (monitoring application using snmp) can monitoring my application(agent) and display that...</description>
			<content:encoded><![CDATA[<div>hi..<br />
could anyone help me to solve.<br />
I build vb.net application (windows service/windows form) as agent,<br />
how to make my application can request status using snmp(not snmp trap) ?<br />
<br />
i plan PRTG application (monitoring application using snmp) can monitoring my application(agent) and display that request status on PRTG.<br />
<br />
thanx</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>zuve_fox</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239134.html</guid>
		</item>
		<item>
			<title>context menu</title>
			<link>http://www.daniweb.com/forums/thread239122.html</link>
			<pubDate>Tue, 17 Nov 2009 06:12:02 GMT</pubDate>
			<description><![CDATA[Hello 
I have problem with context menu 
when I right click on picture box , contextmenu appear for picturebox 
when I click on label , the menue of picturebox appear again until I click right on the label another time  
 
 
Public Class Form1 
    Dim content As String = "" 
    Sub mouse_up( _ 
 ...]]></description>
			<content:encoded><![CDATA[<div>Hello<br />
I have problem with context menu<br />
when I right click on picture box , contextmenu appear for picturebox<br />
when I click on label , the menue of picturebox appear again until I click right on the label another time <br />
<br />
 <pre style="margin:20px; line-height:13px">Public Class Form1<br />
&nbsp; &nbsp; Dim content As String = &quot;&quot;<br />
&nbsp; &nbsp; Sub mouse_up( _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ByVal sender As System.Object, _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ByVal e As System.Windows.Forms.MouseEventArgs)<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'Checking the Mouse right Button on the top<br />
&nbsp; &nbsp; &nbsp; &nbsp; '&nbsp;  Try<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; ContextHandler(sender, e)<br />
&nbsp; &nbsp; &nbsp; &nbsp; sender.ContextMenu.Show(sender, New Point(e.X, e.Y))<br />
&nbsp; &nbsp; &nbsp; &nbsp; ' Catch ex As Exception<br />
&nbsp; &nbsp; &nbsp; &nbsp; '&nbsp; &nbsp; &nbsp; MsgBox(ex.ToString)<br />
&nbsp; &nbsp; &nbsp; &nbsp; '&nbsp; End Try<br />
&nbsp; &nbsp; End Sub<br />
&nbsp; &nbsp; Protected Sub ContextHandler(ByVal sender As System.Object, _<br />
&nbsp; &nbsp; &nbsp;  ByVal e As System.EventArgs)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ' Clear all previously added MenuItems.<br />
&nbsp; &nbsp; &nbsp; &nbsp; menu1.MenuItems.Clear()<br />
&nbsp; &nbsp; &nbsp; &nbsp; '&nbsp; MsgBox(sender.GetType.ToString)<br />
&nbsp; &nbsp; &nbsp; &nbsp; If sender.GetType.ToString.Equals(&quot;System.Windows.Forms.Label&quot;) Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'get text of label<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; content = CType(sender, Label).Text<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddContextMenu(&quot;label&quot;)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddContextMenu(&quot;picture&quot;, False)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Else<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddContextMenu(&quot;label&quot;, False)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddContextMenu(&quot;picture&quot;, False)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; End Sub<br />
&nbsp; &nbsp; Private Sub AddContextMenu(ByVal Caption As String, Optional ByVal IsEnabled As Boolean = True)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim objMenuItem As MenuItem<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; objMenuItem = New MenuItem<br />
&nbsp; &nbsp; &nbsp; &nbsp; objMenuItem.Text = Caption<br />
&nbsp; &nbsp; &nbsp; &nbsp; objMenuItem.Enabled = IsEnabled<br />
&nbsp; &nbsp; &nbsp; &nbsp; Menu1.MenuItems.Add(objMenuItem)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ' Handle event that happen when I click menu items<br />
&nbsp; &nbsp; &nbsp; &nbsp; AddHandler objMenuItem.Click, AddressOf MenuClick<br />
<br />
&nbsp; &nbsp; End Sub<br />
&nbsp; &nbsp; Private Sub MenuClick(ByVal sender As Object, ByVal e As System.EventArgs)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'Point to menu item clicked<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim objCurMenuItem As MenuItem = CType(sender, MenuItem)<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'create the submenu based on whatever selection is being made, mnuSelection<br />
&nbsp; &nbsp; &nbsp; &nbsp; Select Case objCurMenuItem.Text<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Case &quot;label&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MsgBox(&quot;label enabled&quot;)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Case &quot;ppicture&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MsgBox(&quot;picture enabled&quot;)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Select<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; objCurMenuItem = Nothing<br />
<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 />
&nbsp; &nbsp; &nbsp; &nbsp; AddHandler Label1.MouseUp, AddressOf mouse_up<br />
&nbsp; &nbsp; &nbsp; &nbsp; AddHandler PictureBox1.MouseUp, AddressOf mouse_up<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>Nada_ward</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239122.html</guid>
		</item>
		<item>
			<title>Trouble creating a DLL in VB.Net 2008 that can be used by VBA</title>
			<link>http://www.daniweb.com/forums/thread239032.html</link>
			<pubDate>Mon, 16 Nov 2009 20:47:27 GMT</pubDate>
			<description><![CDATA[I created a new class project. I added a new COM object.  
The .ddl contains a single Public Function and one Public method. The method contains one line of code, a msgbox.  
 
I have "Register for COM interop" checked in the Project>Configuration>Compile page.  
I have ComVisible(true) in the...]]></description>
			<content:encoded><![CDATA[<div>I created a new class project. I added a new COM object. <br />
The .ddl contains a single Public Function and one Public method. The method contains one line of code, a msgbox. <br />
<br />
I have &quot;Register for COM interop&quot; checked in the Project&gt;Configuration&gt;Compile page. <br />
I have ComVisible(true) in the AsseblyInfo.vb file.<br />
I use RegAsm to register the .dll and the .tlb<br />
I have used RegAsm to create a .reg file and then imorted successfully into the registry. <br />
<br />
Now I am pretty much out of tricks.<br />
<br />
Here is the problem.<br />
<br />
If I open Excel, and go to Macro I cannot add the .dll as a refernce. The exact message I get is &quot;Can't add a refernce to a specified file&quot;.<br />
I can reference the .tlb file and the Intelisense works. However, when the Excel Macro code runs I get the error, &quot;Can't find file&quot;.<br />
<br />
Even though I have tried to keep this simple, I am obviously doing something wrong.<br />
<br />
I have zipped and posted the whole project at:<br />
<a rel="nofollow" class="t" href="http://patrickdillonphotography.com/Computer/msgboxtextclass.zip" target="_blank">http://patrickdillonphotography.com/...xtextclass.zip</a><br />
<br />
I don't really expect anyone to download it to solve my problem. But if you become as frustrated as I am, I thought it might help to see the actual files. Be aware that I enclosed the .reg file from the RegAsm process. You can view it by opening notepad first and browsing for it. Do not click on the .reg file as I think that might modify your registry.<br />
<br />
Thanks,<br />
pat<br />
<br />
PS If I create a VB.net 2008 project I can reference this COM object and it works fine. But I need it to work in VBA and VB6.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>mpdillon</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239032.html</guid>
		</item>
		<item>
			<title>listbox index</title>
			<link>http://www.daniweb.com/forums/thread239030.html</link>
			<pubDate>Mon, 16 Nov 2009 20:26:15 GMT</pubDate>
			<description>I have been looking over some old vb 6 code and I noticed that there was a way to set the index of a listbox to a new value. For instance, if you wanted to populate a listbox with items from a database you could assign an id value from the table as the index value so that it is easier to relate...</description>
			<content:encoded><![CDATA[<div>I have been looking over some old vb 6 code and I noticed that there was a way to set the index of a listbox to a new value. For instance, if you wanted to populate a listbox with items from a database you could assign an id value from the table as the index value so that it is easier to relate back to the database. Does anyone know if and how to do this in vb.net?</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/thread239030.html</guid>
		</item>
		<item>
			<title>Removing String from ListBox and From File .txt</title>
			<link>http://www.daniweb.com/forums/thread239011.html</link>
			<pubDate>Mon, 16 Nov 2009 19:28:25 GMT</pubDate>
			<description>So im trying to do a simple system in my VB Express Edition 2008 and what it does is add some car models (example) to a list box and stores it in a .txt file for future use. But when the user clicks a delete button it should delete from both the listbox and the .txt. Any Ideas?  
 
I have to use...</description>
			<content:encoded><![CDATA[<div>So im trying to do a simple system in my VB Express Edition 2008 and what it does is add some car models (example) to a list box and stores it in a .txt file for future use. But when the user clicks a delete button it should delete from both the listbox and the .txt. Any Ideas? <br />
<br />
I have to use only the FileOpen(OpenMode.Append or OpenMode.Input/Output) functions. Please Help! Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>RgCz</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239011.html</guid>
		</item>
		<item>
			<title>VB ?: Find out Age based on Birthdate and Today</title>
			<link>http://www.daniweb.com/forums/thread239004.html</link>
			<pubDate>Mon, 16 Nov 2009 18:51:45 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I am creating a project for my VB class, using VB 2008 Express, and I would like to be able to have the age of child (whose birthdate is a constant, in otherwords, it won't be changed or entered). 
 
I figure that I would need to use the "*Today subtract Birthdate*" to give the answer in...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I am creating a project for my VB class, using VB 2008 Express, and I would like to be able to have the age of child (whose birthdate is a constant, in otherwords, it won't be changed or entered).<br />
<br />
I figure that I would need to use the &quot;<span style="font-weight:bold">Today subtract Birthdate</span>&quot; to give the answer in Years / Months / Days, but I can't figure out how to write it out.<br />
<br />
I would have thought that other people would want to do something similar, but I haven't been able to find what I need.<br />
<br />
Thanks for any help,<br />
Sharon</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>SharonSweeting</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239004.html</guid>
		</item>
		<item>
			<title>List box problem</title>
			<link>http://www.daniweb.com/forums/thread239208.html</link>
			<pubDate>Mon, 16 Nov 2009 17:56:15 GMT</pubDate>
			<description><![CDATA[please help!!!  
 
-------------------------------------------------------------------------------- 
 
Hi Hope you can help because its driving me up the wall. 
 
I've made a program that can add 4 items in a row in a list box, for instance 
 
Item Make Guarentee qty Price 
toy car rover 1 1 £45.00]]></description>
			<content:encoded><![CDATA[<div>please help!!! <br />
<br />
--------------------------------------------------------------------------------<br />
<br />
Hi Hope you can help because its driving me up the wall.<br />
<br />
I've made a program that can add 4 items in a row in a list box, for instance<br />
<br />
Item Make Guarentee qty Price<br />
toy car rover 1 1 £45.00<br />
monkey monkey 2 1 £65.00<br />
<br />
total: £100.00<br />
<br />
The problem is I can't get the price to total up in a lable or textbox, however,<br />
I can make it work if i seperate the box and make two, listbox1 for item,make,gtee, qty and listbox 2 for price only.<br />
<br />
I don't want this because i want the row to delete in one go instead of deleting it from two boxes which is a time taker. code below<br />
<br />
I've worked out how to delete and make it add up right its just the two boxes i cant get my head around. <br />
<br />
 <pre style="margin:20px; line-height:13px">Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click <br />
Dim Model As String<br />
Dim Make As String<br />
Dim Guarantee As Integer = 0<br />
Dim price As Double = 0<br />
Dim qty As Integer = 0<br />
Dim Discount As Double = 0<br />
Dim DelCharge As Double = 0<br />
Dim Subtotal As Double = 0<br />
Dim total As Double = 0<br />
Dim totalpayment As Double = 0<br />
<br />
'find user input and assign values to their variables<br />
Model = (ModelNotextbox.Text)<br />
Make = (Maketextbox.Text)<br />
Guarantee = Val(Guaranteecombobox.Text)<br />
price = Val(Pricetextbox.Text)<br />
qty = Val(Qtytextbox.Text)<br />
<br />
'Price * qty<br />
totalpayment = price * qty<br />
<br />
'display data in list box<br />
ListBox1.Items.Add(Model &amp; ControlChars.Tab &amp; ControlChars.Tab &amp; Make &amp; ControlChars.Tab &amp; Guarantee &amp; ControlChars.Tab &amp; qty &amp; ControlChars.Tab) <br />
<br />
ListBox2.Items.Add(String.Format(&quot;{0:c}&quot;, totalpayment))<br />
<br />
'Adds list box prices together *<br />
Dim totals As Integer<br />
<br />
For Each value As Double In ListBox2.Items<br />
totals += value<br />
Next<br />
Label28.Text = (String.Format(&quot;{0:c}&quot;, totals))<br />
<br />
'Clear previous items<br />
ModelNotextbox.Clear()<br />
Maketextbox.Clear()<br />
Guaranteecombobox.Refresh()<br />
Pricetextbox.Clear()<br />
<br />
End Sub</pre><br />
Thanks alot for the help!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>TheCodeHunter</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239208.html</guid>
		</item>
		<item>
			<title>time difference</title>
			<link>http://www.daniweb.com/forums/thread238974.html</link>
			<pubDate>Mon, 16 Nov 2009 16:55:38 GMT</pubDate>
			<description><![CDATA[I'm trying to code a simple module to give me the difference between current date and the age of an existing file in a particular directory. If the file is a certain age (specifed in a config file), then an email is sent. I'm using TimeSpan to give me this magic number but I'm getting the following...]]></description>
			<content:encoded><![CDATA[<div>I'm trying to code a simple module to give me the difference between current date and the age of an existing file in a particular directory. If the file is a certain age (specifed in a config file), then an email is sent. I'm using TimeSpan to give me this magic number but I'm getting the following error:<br />
<br />
Value of type 'Date' cannot be converted to 'System.TimeSpan'.<br />
<br />
Here is my code:<br />
<br />
 <pre style="margin:20px; line-height:13px"> <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 dirInfo As DirectoryInfo<br />
&nbsp; &nbsp; &nbsp; &nbsp; dirInfo = New DirectoryInfo(&quot;c:\Test&quot;)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim age As DateTime = ConfigurationSettings.AppSettings(&quot;FileTime&quot;)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim ageTime As TimeSpan<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim timeVal As Integer<br />
&nbsp; &nbsp; &nbsp; &nbsp; ageTime = Now.Add(age)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim thisFile As FileInfo<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim rgFiles As FileInfo()<br />
&nbsp; &nbsp; &nbsp; &nbsp; rgFiles = dirInfo.GetFiles(&quot;*.LCK&quot;)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; MsgBox(&quot;Age factor: &quot; &amp; age.ToString)<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'MsgBox(&quot;Age TimeSpan: &quot; &amp; ageTime.ToString)<br />
&nbsp; &nbsp; &nbsp; &nbsp; For Each thisFile In rgFiles<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'rgFiles(0).CreationTime.ToString()<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Label1.Text = (&quot;Current Date: &quot; &amp; DateTime.Now.ToString())<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Label2.Text = (&quot;CreationDate: &quot; &amp; thisFile.CreationTime.ToString())<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If ((DateTime.Now - thisFile.CreationTime) &gt; ageTime) Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(thisFile.Name &amp; &quot; &quot; &amp; thisFile.CreationTime)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MsgBox(&quot;File Age: &quot; &amp; thisFile.Name &amp; &quot; - &quot; &amp; (DateTime.Now - thisFile.CreationTime).ToString())<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Next<br />
<br />
&nbsp; &nbsp; End Sub</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>vbcoder100</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238974.html</guid>
		</item>
		<item>
			<title>Datagridview question using vb2008</title>
			<link>http://www.daniweb.com/forums/thread238915.html</link>
			<pubDate>Mon, 16 Nov 2009 10:24:52 GMT</pubDate>
			<description>hello, 
how to save data in datagridview using vb2008  
please help me...... 
tq</description>
			<content:encoded><![CDATA[<div>hello,<br />
how to save data in datagridview using vb2008 <br />
please help me......<br />
tq</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>jane_jiss</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238915.html</guid>
		</item>
		<item>
			<title>How to add Bcc field in email sending in vb.net?</title>
			<link>http://www.daniweb.com/forums/thread238870.html</link>
			<pubDate>Mon, 16 Nov 2009 08:39:29 GMT</pubDate>
			<description>Hi professionals, 
 
I am a student who is working on a project for a company on mass emailing system. How do i add a Bcc attribute in my program?  I found a few codes in the internet but all the codes are for pre-defined email address. What i am planning to do is to make my program such that the...</description>
			<content:encoded><![CDATA[<div>Hi professionals,<br />
<br />
I am a student who is working on a project for a company on mass emailing system. How do i add a Bcc attribute in my program?  I found a few codes in the internet but all the codes are for pre-defined email address. What i am planning to do is to make my program such that the user can input their recipients' email addresses onto the BCC richtextbox(rtbBCC) instead of putting a pre-defined email address  in my windows application design.<br />
<br />
Below are the codes that i have already created with the help of some helpful experts in this forums and online tutorials:-<br />
<br />
 <pre style="margin:20px; line-height:13px">Imports System<br />
Imports System.Net<br />
Imports System.IO<br />
Imports System.Net.Mail<br />
<br />
Public Class Email<br />
<br />
&nbsp; &nbsp; 'Declarations<br />
&nbsp; &nbsp; Private mailMessage As New Net.Mail.MailMessage()<br />
&nbsp; &nbsp; Dim attachment As Net.Mail.Attachment<br />
<br />
&nbsp; &nbsp; Public Sub SendMassEmail(ByVal MsgFrom As String, ByVal MsgTo As String, ByVal MsgSubject As String, ByVal MsgBody As String)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'This procedure takes string array parameters for multiple recipients and files<br />
&nbsp; &nbsp; &nbsp; &nbsp; Try<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '&nbsp; Pass in the message information to a new MailMessage<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mailMessage = New Net.Mail.MailMessage(MsgFrom, MsgTo, MsgSubject, MsgBody)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '&nbsp;  Adding attachments<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim attachment As Net.Mail.Attachment = New Net.Mail.Attachment(ofdAttach.FileName)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mailMessage.Attachments.Add(New Attachment(txtAttach.Text))<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '&nbsp;  Create an SmtpClient to send the e-mail<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim mailClient As New SmtpClient(&quot;152.226.153.93&quot;)&nbsp; '&nbsp; = local machine IP Address<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '&nbsp; Use the Windows credentials of the current User<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mailClient.UseDefaultCredentials = True<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ' Pass the message to the mail server<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mailClient.Send(mailMessage)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '&nbsp; Optional user reassurance:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.Show(String.Format(&quot;Message Successfully Sent!&quot; &amp; vbCrLf &amp; vbCrLf &amp; &quot;Message Subject:&nbsp;  {0}&quot; &amp; vbCrLf &amp; &quot;FROM:&nbsp; &nbsp; {1}&quot; &amp; vbCrLf &amp; &quot;TO:&nbsp;  {2}&quot;, MsgSubject, MsgFrom, MsgTo), &quot;EMail&quot;, Windows.Forms.MessageBoxButtons.OK, Windows.Forms.MessageBoxIcon.Information)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '&nbsp; Housekeeping<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'mailMessage.Dispose()<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'Error Checking<br />
&nbsp; &nbsp; &nbsp; &nbsp; Catch ex As FormatException<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.Show(ex.Message &amp; &quot; :Format Exception&quot;)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Catch ex As SmtpException<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.Show(ex.Message &amp; &quot; :SMTP Exception&quot;)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Try<br />
<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Private Sub btnSend_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSend.Click<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'Error Messages<br />
&nbsp; &nbsp; &nbsp; &nbsp; If rtbBcc.Text = &quot;&quot; Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MsgBox(&quot;Please enter the recipient(s)&quot;, MsgBoxStyle.Information, &quot;Send Email&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Exit Sub<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; If txtFrom.Text = &quot;&quot; Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MsgBox(&quot;Please enter the sender&quot;, MsgBoxStyle.Information, &quot;Send Email&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Exit Sub<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; If txtMsg.Text = &quot;&quot; Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MsgBox(&quot;Please enter the email message(s)&quot;, MsgBoxStyle.Information, &quot;Send Email&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Exit Sub<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'Calling the SendMassEmail() from a button<br />
&nbsp; &nbsp; &nbsp; &nbsp; SendMassEmail(txtFrom.Text, rtbTo.Text, txtSubj.Text, txtMsg.Text)<br />
<br />
&nbsp; &nbsp; End Sub</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>milhero</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238870.html</guid>
		</item>
		<item>
			<title>Text translation from one English to telugu</title>
			<link>http://www.daniweb.com/forums/thread238838.html</link>
			<pubDate>Mon, 16 Nov 2009 05:56:25 GMT</pubDate>
			<description>hi frnds.... 
 
               Please help me in this query..i have two textboxes in my form.when i type the text in the first textbox which is *english* language.now i need to display the the text in *telugu *language in other textbox. 
 
Thanks in Advance 
krishna</description>
			<content:encoded><![CDATA[<div>hi frnds....<br />
<br />
               Please help me in this query..i have two textboxes in my form.when i type the text in the first textbox which is <span style="font-weight:bold">english</span> language.now i need to display the the text in <span style="font-weight:bold">telugu </span>language in other textbox.<br />
<br />
Thanks in Advance<br />
krishna</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>krishna.net</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238838.html</guid>
		</item>
		<item>
			<title>Web Browser , GoHome problem!</title>
			<link>http://www.daniweb.com/forums/thread238742.html</link>
			<pubDate>Sun, 15 Nov 2009 19:41:55 GMT</pubDate>
			<description>Hi guys , im trying to make the web browser get the link for Home via a textbox in the application .. in the properties it has a value Url where you can write which site you want to have as Home .. i want to do it from a textbox .. is it possible? 
 
 
Regards, 
xVent.</description>
			<content:encoded><![CDATA[<div>Hi guys , im trying to make the web browser get the link for Home via a textbox in the application .. in the properties it has a value Url where you can write which site you want to have as Home .. i want to do it from a textbox .. is it possible?<br />
<br />
<br />
Regards,<br />
xVent.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>xVent</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238742.html</guid>
		</item>
		<item>
			<title>login users</title>
			<link>http://www.daniweb.com/forums/thread238706.html</link>
			<pubDate>Sun, 15 Nov 2009 18:39:45 GMT</pubDate>
			<description><![CDATA[hi: 
  <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...]]></description>
			<content:encoded><![CDATA[<div>hi:<br />
 <pre style="margin:20px; line-height:13px">Module Module1<br />
&nbsp; &nbsp; Public objconcetion As New OleDb.OleDbConnection<br />
&nbsp; &nbsp; Public objcommand As New OleDb.OleDbCommand<br />
&nbsp; &nbsp; Public Function open_database() As OleDb.OleDbConnection<br />
&nbsp; &nbsp; &nbsp; &nbsp; Try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim route As String<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim cnn As New OleDb.OleDbConnection<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; route = Application.StartupPath &amp; &quot;\&quot; &amp; &quot;video.accdb&quot; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If cnn.State = 1 Then cnn.Close()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cnn.ConnectionString = &quot;provider=microsoft.ace.oledb.12.0;data source =&quot; &amp; route &amp; &quot;&quot; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cnn.Open()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Return cnn<br />
&nbsp; &nbsp; &nbsp; &nbsp; Catch ex As Exception<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.Show(Err.Description)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Return Nothing<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Try<br />
&nbsp; &nbsp; End Function<br />
End Module<br />
<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; objconexion = open_database()<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Private Sub btnokay_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnokay.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; open_database()<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim level As OleDb.OleDbCommand<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim connection = &quot;SELECT * FROM tablelogin WHERE username = '&quot; &amp; txtusername.Text &amp; &quot;' AND password = '&quot; &amp; txtPassword.Text &amp; &quot;'&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim cmd As OleDb.OleDbCommand<br />
&nbsp; &nbsp; &nbsp; &nbsp; cmd = New OleDb.OleDbCommand(connection, open_database)<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim dr As OleDb.OleDbDataReader = cmd.ExecuteReader<br />
&nbsp; &nbsp; &nbsp; &nbsp; open_database.Close()<br />
&nbsp; &nbsp; &nbsp; &nbsp; Try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If dr1.Read = False Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.Show(&quot;invalid username and password&quot;, &quot;try again&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; frmmenu_admin.Show()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; frmmenu_admin.btnadmin.Enabled = True<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; MsgBox(Err.Description)<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Try<br />
&nbsp; &nbsp; &nbsp; &nbsp; If open_database.State &lt;&gt; ConnectionState.Closed Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; open_database.Close()<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; End Sub<br />
End Class</pre>i have a table in access like this<br />
tablelogin<br />
username  password     level<br />
admin        ********     -1 **<br />
visitor        ********      0<br />
<br />
** admin<br />
this code need to verify the level of login, i mean  if the user is admin then proceed to the next form with privileges but if is a visitor then proceed to the next form but without privileges.  what is the code or line to do that?<br />
thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>aglayo2009</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238706.html</guid>
		</item>
		<item>
			<title>timer counter in VB</title>
			<link>http://www.daniweb.com/forums/thread238699.html</link>
			<pubDate>Sun, 15 Nov 2009 18:26:31 GMT</pubDate>
			<description>I am planning to keep timer in the form to start from 1 and increment every second. This timer shiuld stop when the other events are triggered in the form (like clicking a button etc). 
 
your help is much appreciated.</description>
			<content:encoded><![CDATA[<div>I am planning to keep timer in the form to start from 1 and increment every second. This timer shiuld stop when the other events are triggered in the form (like clicking a button etc).<br />
<br />
your help is much appreciated.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>karpal</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238699.html</guid>
		</item>
		<item>
			<title>vb.net, crystal reports: looking for overall approach</title>
			<link>http://www.daniweb.com/forums/thread238690.html</link>
			<pubDate>Sun, 15 Nov 2009 17:55:11 GMT</pubDate>
			<description><![CDATA[I'm creating a printed report of an event; each event has one or more groups, each group has one or more people. The report page is set externally; I can't change that. Each page of the report has a place for up to two groups and up to 6 people. 
 
The rules for where groups are put on pages are...]]></description>
			<content:encoded><![CDATA[<div>I'm creating a printed report of an event; each event has one or more groups, each group has one or more people. The report page is set externally; I can't change that. Each page of the report has a place for up to two groups and up to 6 people.<br />
<br />
The rules for where groups are put on pages are complicated; suffice to say that sometimes I put two groups on a page and sometimes I don't.<br />
<br />
When there are more than 6 people in the one or two groups on a page, I need to generate an additional page with the event and group information on it, and list the overflow of people on that page, until all people are reported.<br />
<br />
So the report doesn't lend itself to creating report fields that match database fields, nor to any simple form of mapping records to report pages. I will have to write logic that determines what data goes onto what pages; I would like advice on what general strategy to use.<br />
<br />
I had thought of creating a typed dataset, mapping one dataset instance for each report page, and writing logic to fill each dataset instance according to the report rules. Does that sound like the best approach, or should I be looking at something else?<br />
<br />
I'm a novice in this technology. I'm hoping to get advice on the approach so I can learn about that, instead of wasting time learning ways to do it that are not appropriate to this problem.<br />
<br />
thanks in advance,</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>rcook</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238690.html</guid>
		</item>
		<item>
			<title>A 3D List Box Control ?</title>
			<link>http://www.daniweb.com/forums/thread238646.html</link>
			<pubDate>Sun, 15 Nov 2009 13:07:08 GMT</pubDate>
			<description>I want to ask if there is any freeware or a open source 3d control which can be used in any vb.net project. 
 
I am developing a application in which i want to show the icons in a 3d view, which obviously looks cool. also the control should provide a magnifying effect..... 
 
take a look at the...</description>
			<content:encoded><![CDATA[<div>I want to ask if there is any freeware or a open source 3d control which can be used in any vb.net project.<br />
<br />
I am developing a application in which i want to show the icons in a 3d view, which obviously looks cool. also the control should provide a magnifying effect.....<br />
<br />
take a look at the image on bottom of this post..<br />
<br />
I know this can be achieved throught WPF but i currently dont have much knowledge about it, I also found this article on CODEPROJECT which meets my requirements..<br />
<br />
<a rel="nofollow" class="t" href="http://www.codeproject.com/KB/WPF/ContentControl3D.aspx" target="_blank">http://www.codeproject.com/KB/WPF/ContentControl3D.aspx</a><br />
<br />
Basically the thing is this article eases things up using a library called thriple, which is basically a wrapper. But the bad thing is that i dont know much about and WPF and on top of that this project provided by this article is in c# and i cannot make this to work..<br />
<br />
Anyone out there who knows if there is any third party control or a vb.net project using thriple library please help me.</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/jpg.gif" alt="File Type: jpg" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12562&amp;d=1258290117" target="_blank">Windows-Media-Center.jpg</a> (427.4 KB)</td> </tr> </table> </fieldset>   </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/thread238646.html</guid>
		</item>
		<item>
			<title>FtpWebRequest</title>
			<link>http://www.daniweb.com/forums/thread238630.html</link>
			<pubDate>Sun, 15 Nov 2009 10:59:17 GMT</pubDate>
			<description>Hi, 
 
I have a small FTP class, written in VB.NET 2.0, which keeps polling for a particular file at a remote location, at 2 minute intervals, till it successfully downloads the file, and then it stops. 
 
So far I had been using wget as an external process, and recently I have switched to using...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I have a small FTP class, written in VB.NET 2.0, which keeps polling for a particular file at a remote location, at 2 minute intervals, till it successfully downloads the file, and then it stops.<br />
<br />
So far I had been using wget as an external process, and recently I have switched to using the FtpWebRequest class.<br />
<br />
Now what i have noticed is that the first attempt always fails, even if the particular file is available on the remote server. The error returned is System.Net.WebException - Request Timed Out.<br />
<br />
However, in the next run, after 2 minutes, the process succeeds, with exactly the same parameters.<br />
<br />
The relevant part of the code:<br />
<br />
Code:<br />
<br />
 <pre style="margin:20px; line-height:13px">Dim myFtpWebRequest As FtpWebRequest<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim myFtpWebResponse As FtpWebResponse<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim myStreamWriter As StreamWriter<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim strURL As String = &quot;&quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; strURL = &quot;ftp://&quot; &amp; strFTPURL &amp; strFTPFolder &amp; strFileName<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; myFtpWebRequest = DirectCast(WebRequest.Create(strURL), FtpWebRequest)<br />
&nbsp; &nbsp; &nbsp; &nbsp; myFtpWebRequest.KeepAlive = False<br />
&nbsp; &nbsp; &nbsp; &nbsp; myFtpWebRequest.Timeout = 20000<br />
&nbsp; &nbsp; &nbsp; &nbsp; myFtpWebRequest.UsePassive = blnUsePassive<br />
&nbsp; &nbsp; &nbsp; &nbsp; myFtpWebRequest.UseBinary = True<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; myFtpWebRequest.Credentials = New NetworkCredential(strFTPUserName, strFTPPassword)<br />
&nbsp; &nbsp; &nbsp; &nbsp; myFtpWebRequest.Method = WebRequestMethods.Ftp.DownloadFile<br />
&nbsp; &nbsp; &nbsp; &nbsp; myFtpWebResponse = myFtpWebRequest.GetResponse()</pre><br />
<br />
Can someone throw some light on this?<br />
<br />
Regards<br />
RB</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>rajeevbhatt17</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238630.html</guid>
		</item>
		<item>
			<title>msgbox returning a value</title>
			<link>http://www.daniweb.com/forums/thread238574.html</link>
			<pubDate>Sun, 15 Nov 2009 00:33:10 GMT</pubDate>
			<description>I am creating a message box in VB8 for an error. I created the message box and everything works. The message box returns a value of 0 which is the default one. Where does it return 0 to. Or do you have to tell it where to return it.</description>
			<content:encoded><![CDATA[<div>I am creating a message box in VB8 for an error. I created the message box and everything works. The message box returns a value of 0 which is the default one. Where does it return 0 to. Or do you have to tell it where to return it.</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/thread238574.html</guid>
		</item>
		<item>
			<title>Crystal Reports from multiple tables</title>
			<link>http://www.daniweb.com/forums/thread238537.html</link>
			<pubDate>Sat, 14 Nov 2009 20:26:53 GMT</pubDate>
			<description>How can i create crystal report from multiple tables that are related.? I need to create a report based on the value provided through selectionformula in visual studio 2005. 
 
Tables are :- 
 
1. Vendor  
    vendor.id 
    vendor.name 
    vendor.address 
2. Invoice 
    invoice.id</description>
			<content:encoded><![CDATA[<div>How can i create crystal report from multiple tables that are related.? I need to create a report based on the value provided through selectionformula in visual studio 2005.<br />
<br />
Tables are :-<br />
<br />
1. Vendor <br />
    vendor.id<br />
    vendor.name<br />
    vendor.address<br />
2. Invoice<br />
    invoice.id<br />
    invoice.number<br />
    invoice.date<br />
    invoice.amount<br />
    invoice.vendorid<br />
    inovice.chequenumber<br />
3. Cheque<br />
    cheque.number<br />
    cheque.date<br />
<br />
My report should come like this<br />
<br />
====================================== =<br />
Vendor details of a selected cheque - Single columns<br />
--------------------------------------------------------------------<br />
Invoices for the same cheque(invoice_number, date, amount) - Multiple columns<br />
---------------------------------------------------------------------<br />
Cheque Details(total amount, date)<br />
=========================================<br />
<br />
Please help me, i m a newbie to crystal reports.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>adonweb</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238537.html</guid>
		</item>
		<item>
			<title>Scan Documents From VB .NET application</title>
			<link>http://www.daniweb.com/forums/thread238472.html</link>
			<pubDate>Sat, 14 Nov 2009 10:53:26 GMT</pubDate>
			<description>Scan Documents From VB .NET application 
  
I need to add a feature in my VB .NET application to SCAN a document directly to a directory.  
Can this be without THIRD-PARTY DLL?? 
Any source code would be helpful. 
 
Thanks</description>
			<content:encoded><![CDATA[<div>Scan Documents From VB .NET application<br />
 <br />
I need to add a feature in my VB .NET application to SCAN a document directly to a directory. <br />
Can this be without THIRD-PARTY DLL??<br />
Any source code would be helpful.<br />
<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>mania_comp</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238472.html</guid>
		</item>
		<item>
			<title>PLS HLP!! Update Access DB from VB.Net</title>
			<link>http://www.daniweb.com/forums/thread238348.html</link>
			<pubDate>Fri, 13 Nov 2009 18:32:57 GMT</pubDate>
			<description><![CDATA[I am attempting to use VB2008 Express to Display, Edit, and Append an Access database.  I can display information fine, but for some reason updating the database is posing an issue.  The code below runs fine and doesn't throw any exceptions.  However the Access database itself does not update. ...]]></description>
			<content:encoded><![CDATA[<div>I am attempting to use VB2008 Express to Display, Edit, and Append an Access database.  I can display information fine, but for some reason updating the database is posing an issue.  The code below runs fine and doesn't throw any exceptions.  However the Access database itself does not update.  When I physically open the table in Access, the field I am attempting to change remains empty.  Furthermore, when I try to display the changed field in a label (the very last two lines) I get a discrepency between what is in the data set and my dbrow object despite filling the data set and setting the dbrow = data set.  For some reason label30 displays the information that I want while label13 remains blank.<br />
<br />
Any assistance will be greatly appreciated, as I have spent the last two days in forums just to get this far.  I am an intermediate vb user (though new to .net), I am a novice with db applications, and new to this forum so please be gentle.  Thank you in advance.<br />
<br />
 <pre style="margin:20px; line-height:13px">'Update record.<br />
&nbsp; &nbsp; &nbsp; &nbsp; Try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Con.Open()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Adapter = New OleDbDataAdapter(&quot;Select * from Machines&quot;, Con)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Builder = New OleDbCommandBuilder(Adapter)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Adapter.Fill(DS)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DS.Tables(&quot;Machines&quot;).Rows.Item(clickedindex).Item(56) = UserName<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DS.AcceptChanges()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Builder.GetUpdateCommand()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Adapter.Update(DS, &quot;Machines&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Adapter.Dispose()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DS.Dispose()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Con.Close()<br />
&nbsp; &nbsp; &nbsp; &nbsp; Catch ex As Exception<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MsgBox(ex.ToString)<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Try<br />
<br />
'Retrieve updated record and display.<br />
&nbsp; &nbsp; &nbsp; &nbsp; Try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Con.Open()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Adapter = New OleDbDataAdapter(&quot;Select * from Machines&quot;, Con)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Adapter.Fill(DS)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dbRow = DS.Tables(&quot;Machines&quot;).Rows.Item(SearchResults(clickedindex))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Adapter.Dispose()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Con.Close()<br />
&nbsp; &nbsp; &nbsp; &nbsp; Catch ex As Exception<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MsgBox(ex.ToString)<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Try<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; frmMachDisplay.Label13.Text = DS.Tables(&quot;Machines&quot;).Rows.Item(clickedindex).Item(56).ToString<br />
&nbsp; &nbsp; &nbsp; &nbsp; frmMachDisplay.Label30.Text = dbRow(56).ToString</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>juice_0032</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238348.html</guid>
		</item>
		<item>
			<title>few question about vb.net</title>
			<link>http://www.daniweb.com/forums/thread238332.html</link>
			<pubDate>Fri, 13 Nov 2009 17:49:58 GMT</pubDate>
			<description>Hi, I made a new topic so it will not confusing. 
 
I want to ask how to unload sub menu ? 
 
for example, usually if we had sub subname()  then we can just call it by subname() 
 
But then how to unload/not load that subname() 
is it possible ? 
 
Because I use TabControl and it has 2 TabPage</description>
			<content:encoded><![CDATA[<div>Hi, I made a new topic so it will not confusing.<br />
<br />
I want to ask how to unload sub menu ?<br />
<br />
for example, usually if we had sub subname()  then we can just call it by subname()<br />
<br />
But then how to unload/not load that subname()<br />
is it possible ?<br />
<br />
Because I use TabControl and it has 2 TabPage<br />
So, I set when tabpage2 were selected then load editsub()<br />
but then what I want is<br />
When I was in TabPage1 edit button clicked, it will unload editsub() and it will load anothersub()<br />
<br />
Because right now, whenever I clicked edit, it still load the editsub() not anothersub()..<br />
<br />
I hope my question is not confusing.. <br />
<br />
should I attached the program and the code? <br />
Just want to know how to unload the sub before i load another sub<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/thread238332.html</guid>
		</item>
		<item>
			<title>Print images from PictureBox</title>
			<link>http://www.daniweb.com/forums/thread238299.html</link>
			<pubDate>Fri, 13 Nov 2009 15:05:20 GMT</pubDate>
			<description><![CDATA[Well' I'm trying to print image from my PictureBox...this is my code for drawing image: 
  <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...]]></description>
			<content:encoded><![CDATA[<div>Well' I'm trying to print image from my PictureBox...this is my code for drawing image:<br />
 <pre style="margin:20px; line-height:13px">e.Graphics.DrawImage(PictureBox1.Image, 0, 0)</pre><br />
But I need something more specified...when I print my document with this code, for some of those, I don't get the whole document. So I need to specify that...I need to stretch my image to my A4 page so that m. How can I do that? Hope someone could 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/thread238299.html</guid>
		</item>
		<item>
			<title>vb6 handle .net com class events</title>
			<link>http://www.daniweb.com/forums/thread238292.html</link>
			<pubDate>Fri, 13 Nov 2009 14:29:34 GMT</pubDate>
			<description>i have the ComClassSearchCustomers class  and interface IComClassSearchCustomersat .net which used to create a tlb file. The class raise an event inside new. After that i have a vb6 form Form1 which catch the event , but it never see the event. Any ideas?  
Option Strict On 
Option Explicit On...</description>
			<content:encoded><![CDATA[<div>i have the ComClassSearchCustomers class  and interface IComClassSearchCustomersat .net which used to create a tlb file. The class raise an event inside new. After that i have a vb6 form Form1 which catch the event , but it never see the event. Any ideas? <br />
Option Strict On<br />
Option Explicit On<br />
Imports System.Runtime.InteropServices<br />
<br />
&lt;Guid(&quot;BB86EB1C-6444-424f-B83B-A667561E06C3&quot;), _<br />
ComSourceInterfaces(GetType(IComClassSearchCustomers))&gt; _<br />
Public Class ComClassSearchCustomers<br />
<br />
    Public Delegate Sub printReportEventHandler(ByVal codes As String)<br />
    Public Event printReport As printReportEventHandler<br />
<br />
       Public Sub New()<br />
         MyBase.New()<br />
         RaiseEvent printReport(“MARIA”)<br />
    End Sub<br />
End Class<br />
<br />
<br />
Imports System.Runtime.InteropServices<br />
<br />
&lt;Guid(&quot;D8F7EC74-0EFC-4e43-9B59-4CF741DF616D&quot;), _<br />
InterfaceType(ComInterfaceType.InterfaceIsIDispatch)&gt; _<br />
Public Interface IComClassSearchCustomers<br />
    &lt;DispId(1)&gt; _<br />
            Sub printReport(ByVal codes As String)<br />
End Interface<br />
Public WithEvents Instance As Search.ComClassSearchCustomers<br />
<br />
 Private Sub Form_Load()<br />
 Set Instance = New Search.ComClassSearchCustomers<br />
End Sub<br />
<br />
Private Sub Instance_printReport(ByVal codes As String)<br />
MsgBox (&quot;raise&quot;)<br />
End Sub</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>blachogi</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238292.html</guid>
		</item>
		<item>
			<title>Windows Form Designer Error :An error occured while parsing EntityName</title>
			<link>http://www.daniweb.com/forums/thread238255.html</link>
			<pubDate>Fri, 13 Nov 2009 10:37:47 GMT</pubDate>
			<description><![CDATA[Hello friends 
 
I am working on VB.Net project. All was well until I started getting the following error while trying to view Forms ... 
  The error says : 
"An error occurred while parsing EntityName: Line 4 Position 42" 
 
All code is fine not logical problems..but the came suddenly and this...]]></description>
			<content:encoded><![CDATA[<div>Hello friends<br />
<br />
I am working on VB.Net project. All was well until I started getting the following error while trying to view Forms ...<br />
  The error says :<br />
<span style="color:Red"><span style="font-style:italic">&quot;An error occurred while parsing EntityName: Line 4 Position 42&quot;</span></span><br />
<br />
All code is fine not logical problems..but the came suddenly and this error in all the forms...Projects runs perfectly but I am not able to see Forms Designer...<br />
Any help is appreciated..<br />
Thank You</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>mania_comp</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238255.html</guid>
		</item>
		<item>
			<title>Using Bing Search Api to perform a advanced image search ?</title>
			<link>http://www.daniweb.com/forums/thread238236.html</link>
			<pubDate>Fri, 13 Nov 2009 08:35:47 GMT</pubDate>
			<description>I am developing a application in which i need to get images from a search engine. there are many choices to do that google,yahoo, bing etc. I chose  bing simply because microsoft provides tight integration with bing and it offers more functionality to developers. So after searching some more i...</description>
			<content:encoded><![CDATA[<div>I am developing a application in which i need to get images from a search engine. there are many choices to do that google,yahoo, bing etc. I chose  bing simply because microsoft provides tight integration with bing and it offers more functionality to developers. So after searching some more i learned how to use this service in my application. Created a key and added web service reference in my solution.<br />
<br />
the sample code to get images from the internet is written below. <br />
<br />
 <pre style="margin:20px; line-height:13px"> <br />
&nbsp; &nbsp; &nbsp; &nbsp; Try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Clear()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim service As New LiveSearchPortTypeClient<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim request As New BingService.SearchRequest<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; With request<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .Query = TextBox1.Text<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .AppId = &quot;please fill your app id here&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .Sources = New BingService.SourceType() {BingService.SourceType.Image}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End With<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim response As BingService.SearchResponse = service.Search(request)<br />
&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; For Each thumburl As BingService.ImageResult In presponse.Image.Results<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(thumburl.Thumbnail.Url)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(thumburl.MediaUrl)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Next<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Catch ex As Exception<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Try</pre><br />
<span style="font-weight:bold">Now i come to the point, i want to perform a advanced search.<br />
<br />
I want to search image using these parameters<br />
<br />
&gt;A pre defined size of images<br />
&gt;Search on a particular site</span><br />
<br />
But i cant figure out how to do that, after a lot of searching i came up with this link here<br />
<a rel="nofollow" class="t" href="http://msdn.microsoft.com/en-us/library/dd560913.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/dd560913.aspx</a><br />
<br />
I am unable to use it. If i use it no results are returned.<br />
<br />
Besides this article i cannot find any useful information in the form of a working sample or anything.<br />
<br />
Can someone help me with this........</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/thread238236.html</guid>
		</item>
		<item>
			<title>Listbox, Textbox, Database (M.Access)</title>
			<link>http://www.daniweb.com/forums/thread238217.html</link>
			<pubDate>Fri, 13 Nov 2009 07:01:08 GMT</pubDate>
			<description>Hi, I want to ask about listbox things. 
I made a Listbox, 3 textbox, and a Database 
The Database Table is Member 
The member field has 4 which is MemberID, Name, Address, Phone. 
 
I have 2 records and it were display to the listbox which are Adry and Brandy (I get it from database name) 
 
So,...</description>
			<content:encoded><![CDATA[<div>Hi, I want to ask about listbox things.<br />
I made a Listbox, 3 textbox, and a Database<br />
The Database Table is Member<br />
The member field has 4 which is MemberID, Name, Address, Phone.<br />
<br />
I have 2 records and it were display to the listbox which are Adry and Brandy (I get it from database name)<br />
<br />
So, What I want is, when I click/select on Adry, the program will show Name, address , and phone to the 3 textboxes I made.<br />
When I click/select on Brandy, the program will show the name, address, and phone to the 3 textboxes i made.<br />
<br />
Anyway please take a look at my code :<br />
This code is to get records from database and show it to the listbox<br />
 <pre style="margin:20px; line-height:13px">Sub loadlistbox()<br />
&nbsp; &nbsp; &nbsp; &nbsp; ListBox2.Items.Clear()<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim state = &quot;SELECT * FROM Member ORDER BY Names&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim Comm As OleDbCommand = New OleDbCommand(state conn)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; conn.Open()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim reader As OleDbDataReader = sCommand.ExecuteReader()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; While reader.Read<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListBox2.Items.Add(reader(1).ToString)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End While<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sConnection.Close()<br />
&nbsp; &nbsp; &nbsp; &nbsp; Catch excep 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<br />
&nbsp; &nbsp; &nbsp; &nbsp; If conn.State &lt;&gt; ConnectionState.Closed Then conn.Close()<br />
&nbsp; &nbsp; &nbsp; &nbsp; If ListBox2.Items.Count &gt; 0 Then ListBox2.Items(0).Selected = True<br />
&nbsp; &nbsp; &nbsp; &nbsp; ListBox2.Focus()<br />
&nbsp; &nbsp; End Sub</pre><br />
And Here is my Code when the listbox select changed<br />
 <pre style="margin:20px; line-height:13px">Private Sub ListBox2_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox2.SelectedIndexChanged<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim state= &quot;SELECT * FROM Member ORDER BY Names&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim commAs OleDbCommand = New OleDbCommand(state, conn)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; conn.Open()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim readerAs OleDbDataReader = sCommand.ExecuteReader()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; While reader.Read<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  TextBox1.Text = reader(1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  TextBox2.Text = reader(2)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  TextBox3.Text = reader(3)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End While<br />
&nbsp; &nbsp; &nbsp; &nbsp; Catch ex As Exception<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MsgBox(&quot;Error Loading Data&quot;, , &quot;My Address Book&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; conn.Close()<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Try<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'btnDelete.Enabled = True<br />
&nbsp; &nbsp; End Sub</pre><br />
Something is wrong there, I don't now. It can show, but I can't click another record :(<br />
<br />
I have done searching also from google but still I'm stuck. Please help.</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/thread238217.html</guid>
		</item>
		<item>
			<title>duration of DSS audio file</title>
			<link>http://www.daniweb.com/forums/thread238209.html</link>
			<pubDate>Fri, 13 Nov 2009 05:34:06 GMT</pubDate>
			<description>Hello Every Body 
I am back, this time I am facing same problem. according to the formula given by DdoubleD i resolve DSS audio file duration problem, but this time some dss file is more compressed and duration of these file different according to size of file.  
*IS there is any technique in .net...</description>
			<content:encoded><![CDATA[<div>Hello Every Body<br />
I am back, this time I am facing same problem. according to the formula given by DdoubleD i resolve DSS audio file duration problem, but this time some dss file is more compressed and duration of these file different according to size of file. <br />
<span style="font-weight:bold">IS there is any technique in .net 2005 so that i can include any third party's player and find duration and other thing</span><br />
<br />
I tried to include DLL of these player but not compatible with .net.<br />
.DSS file is basically dictation by doctor(olympus recorder is use to record dictation and it save these file in .dss format) <br />
<br />
I allready included WMP.dll for MP3. But .dss is creating problem.<br />
<br />
<span style="font-weight:bold">Any idea or technique will be appreciable.<br />
</span><br />
<br />
thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>sanjay092</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238209.html</guid>
		</item>
		<item>
			<title>How can i set Textbox1.text equal to the conents of file.txt?</title>
			<link>http://www.daniweb.com/forums/thread238188.html</link>
			<pubDate>Fri, 13 Nov 2009 04:16:51 GMT</pubDate>
			<description>How can i set Textbox1.text equal to the conents of file.txt?</description>
			<content:encoded><![CDATA[<div>How can i set Textbox1.text equal to the conents of file.txt?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>nevets04</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238188.html</guid>
		</item>
		<item>
			<title>How do I add Textbox1.Text to a textfile?</title>
			<link>http://www.daniweb.com/forums/thread238149.html</link>
			<pubDate>Thu, 12 Nov 2009 22:56:45 GMT</pubDate>
			<description>How do I add Textbox1.Text to a textfile?</description>
			<content:encoded><![CDATA[<div>How do I add Textbox1.Text to a textfile?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>nevets04</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238149.html</guid>
		</item>
		<item>
			<title>Streamwriter to write SQL query results</title>
			<link>http://www.daniweb.com/forums/thread238134.html</link>
			<pubDate>Thu, 12 Nov 2009 21:55:31 GMT</pubDate>
			<description><![CDATA[Hello, I'm new to vb.net.  I have successfully run a simple sql query in vb.net and basically wanted to know how I can export the results from the query to a .txt file?  All I really know is that I should be using StreamWriter.  Does anyone have suggestions for sending, for example "SELECT column1,...]]></description>
			<content:encoded><![CDATA[<div>Hello, I'm new to vb.net.  I have successfully run a simple sql query in vb.net and basically wanted to know how I can export the results from the query to a .txt file?  All I really know is that I should be using StreamWriter.  Does anyone have suggestions for sending, for example &quot;SELECT column1, column2, from table1 where column1 = '1'&quot; to a .txt file?  Would it be best to first bind the data to a grid or can I skip that step?  Thanks in advance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>smd5049</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238134.html</guid>
		</item>
		<item>
			<title>Open a Form from OpenFileDialog</title>
			<link>http://www.daniweb.com/forums/thread238038.html</link>
			<pubDate>Thu, 12 Nov 2009 14:23:32 GMT</pubDate>
			<description>My windows Application has a menu which  opens an OpenFileDialog. When the button OK is pressed, I want to place the main form background and show a new Form (with two radiobuttons, one button). 
 
From  the New Form I must take information (which radiobutton was checked) and pass this information...</description>
			<content:encoded><![CDATA[<div>My windows Application has a menu which  opens an OpenFileDialog. When the button OK is pressed, I want to place the main form background and show a new Form (with two radiobuttons, one button).<br />
<br />
From  the New Form I must take information (which radiobutton was checked) and pass this information to the main form.<br />
Can anyone help me?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>nouvaki</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238038.html</guid>
		</item>
		<item>
			<title>System.InvalidOperationException error</title>
			<link>http://www.daniweb.com/forums/thread238025.html</link>
			<pubDate>Thu, 12 Nov 2009 12:24:55 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I have designed a application in VB.net on Win Vista using the MS Office spreadsheet component. 
 
When launching the app on the client PC it gives a 'Windows has encountered a problem and  needs to close' error, when clicked on Debug the error says 'An Unhandled exception occured...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I have designed a application in VB.net on Win Vista using the MS Office spreadsheet component.<br />
<br />
When launching the app on the client PC it gives a 'Windows has encountered a problem and  needs to close' error, when clicked on Debug the error says 'An Unhandled exception occured ('System.InvalidOperationException') in 'ApplicationName.exe'.<br />
<br />
The client PC runs WinXP SP3 with .NET framework 3.5 with SP1 and Office Web Components, also has Office 2007 installed.<br />
<br />
When I remove the spreadsheet componenet from the app and redeploy the app to the client it works fine!<br />
<br />
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/thread238025.html</guid>
		</item>
		<item>
			<title>Vb.Net Writting to the Cd Drive</title>
			<link>http://www.daniweb.com/forums/thread238023.html</link>
			<pubDate>Thu, 12 Nov 2009 12:24:11 GMT</pubDate>
			<description>Hi 
I have been searching the net for information on backing up files to cd  
from vb.net application cannot find anything any help appretiated.</description>
			<content:encoded><![CDATA[<div>Hi<br />
I have been searching the net for information on backing up files to cd <br />
from vb.net application cannot find anything any help appretiated.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>zakben1</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238023.html</guid>
		</item>
		<item>
			<title><![CDATA[Saving A Remote PC's Event Log]]></title>
			<link>http://www.daniweb.com/forums/thread237966.html</link>
			<pubDate>Thu, 12 Nov 2009 09:04:49 GMT</pubDate>
			<description>Hi Hoping some one can help me out i am trying to create a program to save all the event logs (Application,Security,System) and diagnostic files (No problems with this) from all the PC on my network .If possible i am trying to save as a csv or text file .Any assistance or guidance you could give...</description>
			<content:encoded><![CDATA[<div>Hi Hoping some one can help me out i am trying to create a program to save all the event logs (Application,Security,System) and diagnostic files (No problems with this) from all the PC on my network .If possible i am trying to save as a csv or text file .Any assistance or guidance you could give would be greatly appreciated<br />
<br />
Regards<br />
Ian</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>ian1971</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237966.html</guid>
		</item>
		<item>
			<title>I need help</title>
			<link>http://www.daniweb.com/forums/thread237892.html</link>
			<pubDate>Thu, 12 Nov 2009 02:15:10 GMT</pubDate>
			<description><![CDATA[I'm back ^^! Ok so the second assignment is like this. First, there is an InputBox that appears for you to enter as many bowling scores as you desire. Then there is a "Statistic" button. When this button is clicked, the answer will display the highest score and the lowest score that you have just...]]></description>
			<content:encoded><![CDATA[<div>I'm back ^^! Ok so the second assignment is like this. First, there is an InputBox that appears for you to enter as many bowling scores as you desire. Then there is a &quot;Statistic&quot; button. When this button is clicked, the answer will display the highest score and the lowest score that you have just entered. Can somebody help me write the code for this. I really have no idea.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>TommyTran</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237892.html</guid>
		</item>
		<item>
			<title>For...Next statement</title>
			<link>http://www.daniweb.com/forums/thread237889.html</link>
			<pubDate>Thu, 12 Nov 2009 02:08:57 GMT</pubDate>
			<description>Hi everybody. Today i have an assignment in VBNet. The application is like this. There are 2 TextBox. The 1st TextBox is to enter the 1st random number. The 2nd TextBox is to enter the 2nd random number. Then there is a button. The point is: when the button is clicked, it calculates the Sum of all...</description>
			<content:encoded><![CDATA[<div>Hi everybody. Today i have an assignment in VBNet. The application is like this. There are 2 TextBox. The <span style="color:red">1st TextBox </span>is to enter the <span style="color:Green">1st random number</span>. The <span style="color:Red">2nd TextBox </span>is to enter the <span style="color:Green">2nd random number</span>. Then there is a button. The point is: when the button is clicked, it calculates the Sum of all the numbers (starting at the 1st number to the 2nd number). For example, I enter 1 in the first TxtBox, and 4 in the second txtBox. The answer should display something like this: 1+2+3+4 = 10. I know how to write the code to get the right answer. But i'm stuck at how to make all the numbers from 1 to 4 (2,3) show up. Can somebody help me.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>TommyTran</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237889.html</guid>
		</item>
		<item>
			<title>Datagridview and MS Access</title>
			<link>http://www.daniweb.com/forums/thread237879.html</link>
			<pubDate>Thu, 12 Nov 2009 01:20:49 GMT</pubDate>
			<description><![CDATA[Hi guys,  
 
I have a question, but first I'll explain my scenario. 
 
So I've got this datagridview where I use it as a look up for a certain table in Ms Access and I want to update just 1 field in that table.  
 
My question now is that, *can I update a field in my Table in Ms Access using a...]]></description>
			<content:encoded><![CDATA[<div>Hi guys, <br />
<br />
I have a question, but first I'll explain my scenario.<br />
<br />
So I've got this datagridview where I use it as a look up for a certain table in Ms Access and I want to update just 1 field in that table. <br />
<br />
My question now is that, <span style="font-weight:bold">can I update a field in my Table in Ms Access using a datagridview?<br />
</span><br />
Regards,<br />
Alphard</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>Alphard</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237879.html</guid>
		</item>
		<item>
			<title>How to search through an array</title>
			<link>http://www.daniweb.com/forums/thread237823.html</link>
			<pubDate>Wed, 11 Nov 2009 19:14:28 GMT</pubDate>
			<description>Hey there, long time reader, first time post; 
 
Here is my situation: I need to search through an array of X numbers (X is going to change, so for example, one instance could be that X =  20, the next could be X = 67). 
 
I need to find how many combinations of 1000 I can make. For example, each...</description>
			<content:encoded><![CDATA[<div>Hey there, long time reader, first time post;<br />
<br />
Here is my situation: I need to search through an array of X numbers (X is going to change, so for example, one instance could be that X =  20, the next could be X = 67).<br />
<br />
I need to find how many combinations of 1000 I can make. For example, each element in the array is going to be a number that is less than 1000. I want to see how many combinations I can make of the elements in the array (and what the combination is) such that the total of the combination is within 20 of 1000 (but not to exceed 1000). If getting within 20 is not possible, the range can increase to 30. If 30 is not possible, the range can increase to 40 and so on. <br />
<br />
Every time an element in the array is used to get the combination closer to 1000, that element is to be deleted and NOT used for further combinations.<br />
<br />
The deliverable from this function would be the number of combinations along with what each combination is made of.<br />
<br />
I am really having trouble with this. Any help is appreciated.<br />
<br />
Thanks<br />
Bryan</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>Thomas7399</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237823.html</guid>
		</item>
		<item>
			<title>StreamReader/Writer Error on Close</title>
			<link>http://www.daniweb.com/forums/thread237777.html</link>
			<pubDate>Wed, 11 Nov 2009 15:23:49 GMT</pubDate>
			<description><![CDATA[Thanks to a friend I was able to code a sub that opens a StreamReader and Writer. The Reader reads a *.txt file and the Writer modifies it line by line as it's entered into the memory then writes it to a temporary file which is then copied over the file that the Reader read. 
 
The problem is that...]]></description>
			<content:encoded><![CDATA[<div>Thanks to a friend I was able to code a sub that opens a StreamReader and Writer. The Reader reads a *.txt file and the Writer modifies it line by line as it's entered into the memory then writes it to a temporary file which is then copied over the file that the Reader read.<br />
<br />
The problem is that the StreamReader and Writer seem to fail to close.<br />
<br />
At first when I tested it I would get an error stating:<br />
<br />
<div style="margin:20px; margin-top:5px; "> <div class="smallfont" style="margin-bottom:2px">Quote:</div> <table cellpadding="5" cellspacing="0" border="0" width="100%"> <tr> <td class="alt2"> <hr />  Object reference not set to an instance of an object  <hr /> </td> </tr> </table> </div>I put breakpoints in the sub to figure out where it's erroring out and it's erroring out when it does sr.close() and sw.close() (Reader/Writer.close())<br />
<br />
Here's the code for the sub. Maybe someone can tell me what I did wrong.<br />
<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; If pDebugMessages = True Then MsgBox(&quot;Stream Reader/Writer initialized.&quot;, MsgBoxStyle.OkOnly, &quot;Debug&quot;)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Using sr As StreamReader = New StreamReader(ToolStripStatusLabel4.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Using sw As StreamWriter = New StreamWriter(Environment.GetEnvironmentVariable(&quot;PUBLIC&quot;) &amp; &quot;\&quot; &amp; &quot;TextReplacer\trtemp.txt&quot;)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim line As String<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Do<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; line = sr.ReadLine()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If o1.Text = &quot;Replace&quot; Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; line.Replace(str1.Text, a1.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sw.WriteLine(line)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Loop Until line Is Nothing<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sr.Close()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sw.Close()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End Using<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End Using<br />
&nbsp; &nbsp; &nbsp; &nbsp; Catch ex As Exception<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If pDebugMessages = True Then MsgBox(&quot;An error has occured attempting writing.&quot;, MsgBoxStyle.OkOnly, &quot;Debug&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 orig As String = Environment.GetEnvironmentVariable(&quot;PUBLIC&quot;) &amp; &quot;\&quot; &amp; &quot;TextReplacer\trtemp.txt&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim temp As String = ToolStripStatusLabel4.Text<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; File.Delete(temp)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; File.Copy(orig, temp)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Catch ex As Exception<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If pDebugMessages = True Then MsgBox(&quot;An error has occured while attempting to write.&quot;, MsgBoxStyle.OkOnly, &quot;Debug&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MsgBox(ex.Message)<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Try<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim r As IO.StreamReader<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; txtfile.Items.Clear()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; r = New IO.StreamReader(ToolStripStatusLabel4.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; While (r.Peek() &gt; -1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; txtfile.Items.Add(r.ReadLine)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End While<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; r.Close()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If pDebugMessages = True Then MsgBox(&quot;File reloaded succesfully.&quot;, MsgBoxStyle.OkOnly, &quot;Debug&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Catch ex As Exception<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MsgBox(ex.Message)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If pDebugMessages = True Then MsgBox(&quot;An error has occured while attempting to reload the file.&quot;, MsgBoxStyle.OkOnly, &quot;Debug&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Try<br />
&nbsp; &nbsp; End Sub</pre><br />
I've been stuck trying to figure out why it's erroring out for days, but I haven't figured it out.<br />
<br />
Thanks.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>Darkicon</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237777.html</guid>
		</item>
		<item>
			<title>Cd database</title>
			<link>http://www.daniweb.com/forums/thread237770.html</link>
			<pubDate>Wed, 11 Nov 2009 15:02:02 GMT</pubDate>
			<description>hello every1, pls am new to programming . doin my undergrad dissertation on cd database. cd is manually put into cd drive. cd contents like artist, song, etc, are copied off the cd and then put into a database.  
right now, am having problems with the copying of cd contents. my code gives no error...</description>
			<content:encoded><![CDATA[<div>hello every1, pls am new to programming . doin my undergrad dissertation on cd database. cd is manually put into cd drive. cd contents like artist, song, etc, are copied off the cd and then put into a database. <br />
right now, am having problems with the copying of cd contents. my code gives no error but its not retrieving the contents. tested with the same cd.using a textbox as a storage of contents for now.<br />
<br />
can som1 pls help me with this code pls or help with another way of retrieving the cd contents. i dnt know wat else to do. my deadline is in 3wks. PLS HELP!!!<br />
<br />
<br />
<br />
   <pre style="margin:20px; line-height:13px">Imports System</pre>   <pre style="margin:20px; line-height:13px">Imports System.Collections.Generic</pre>   <pre style="margin:20px; line-height:13px">Imports System.ComponentModel</pre>   <pre style="margin:20px; line-height:13px">Imports System.Data</pre>  <pre style="margin:20px; line-height:13px">Imports System.Drawing</pre> <pre style="margin:20px; line-height:13px">Imports System.Text</pre> <pre style="margin:20px; line-height:13px">Imports System.Windows.Forms</pre><br />
<br />
   <pre style="margin:20px; line-height:13px">Namespace CdRomManagement</pre>    <br />
        <br />
      <pre style="margin:20px; line-height:13px"> Public Partial Class Form1 <br />
&nbsp; &nbsp; &nbsp;  Inherits Form</pre>        <br />
                 <pre style="margin:20px; line-height:13px">&nbsp; Public Sub New() <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; InitializeComponent() <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End Sub</pre>        <br />
<br />
        <br />
        <pre style="margin:20px; line-height:13px">&nbsp;  Private Sub axWindowsMediaPlayer1_CdromMediaChange(ByVal sender As Object, ByVal e As AxWMPLib._WMPOCXEvents_CdromMediaChangeEvent) <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; axWindowsMediaPlayer1.currentPlaylist = axWindowsMediaPlayer1.cdromCollection.Item(e.cdromNum).Playlist <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; axWindowsMediaPlayer1.Ctlcontrols.play() <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'this.textBox1.Text = axWindowsMediaPlayer1.currentMedia.getItemInfo(&quot;Name&quot;); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.textBox1.Text = (&quot;Name: &quot; &amp; axWindowsMediaPlayer1.currentMedia.getItemInfo(&quot;Name&quot;)) + Environment.NewLine <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Me.textBox1.Text += (&quot;author: &quot; &amp; axWindowsMediaPlayer1.currentMedia.getItemInfo(&quot;author&quot;)) + Environment.NewLine <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.textBox1.Text += (&quot;Title: &quot; &amp; axWindowsMediaPlayer1.currentMedia.getItemInfo(&quot;Title&quot;)) + Environment.NewLine <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.textBox1.Text += (&quot;Album: &quot; &amp; axWindowsMediaPlayer1.currentMedia.getItemInfo(&quot;Album&quot;)) + Environment.NewLine<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Me.textBox1.Text += (&quot;copyright: &quot; &amp; axWindowsMediaPlayer1.currentMedia.getItemInfo(&quot;copyright&quot;)) + Environment.NewLine <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Me.textBox1.Text += (&quot;Artist: &quot; &amp; axWindowsMediaPlayer1.currentMedia.getItemInfo(&quot;Artist&quot;)) + Environment.NewLine <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp;  Me.textBox1.Text += (&quot;Genre: &quot; &amp; axWindowsMediaPlayer1.currentMedia.getItemInfo(&quot;Genre&quot;)) + Environment.NewLine <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.textBox1.Text += (&quot;Bitrate: &quot; &amp; axWindowsMediaPlayer1.currentMedia.getItemInfo(&quot;Bitrate&quot;)) + Environment.NewLine <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Me.textBox1.Text += (&quot;Abstract: &quot; &amp; axWindowsMediaPlayer1.currentMedia.getItemInfo(&quot;Abstract&quot;)) + Environment.NewLine <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.textBox1.Text += (&quot;bitRate: &quot; &amp; axWindowsMediaPlayer1.currentMedia.getItemInfo(&quot;bitRate&quot;)) + Environment.NewLine <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp;  Me.textBox1.Text += (&quot;duration: &quot; &amp; axWindowsMediaPlayer1.currentMedia.getItemInfo(&quot;duration&quot;)) + Environment.NewLine <br />
&nbsp; &nbsp;  End Sub</pre>        <br />
    <pre style="margin:20px; line-height:13px"> End Class <br />
&nbsp; &nbsp; <br />
End Namespace</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>mimi8469</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237770.html</guid>
		</item>
		<item>
			<title>How do i read the serial port</title>
			<link>http://www.daniweb.com/forums/thread237767.html</link>
			<pubDate>Wed, 11 Nov 2009 14:59:29 GMT</pubDate>
			<description><![CDATA[Ive got a big problem. 
I need to read data from the serial port 
Ive used serialport from the toolbox , but dont know how to use it. 
I used to do it on a Amiga like this 
 
open serial("serial.device".0.2400.0) rem(open port) 
repeat GW.w=readserial(0) 
  if gw>29 and gw<128 
   ...]]></description>
			<content:encoded><![CDATA[<div>Ive got a big problem.<br />
I need to read data from the serial port<br />
Ive used serialport from the toolbox , but dont know how to use it.<br />
I used to do it on a Amiga like this<br />
<br />
open serial(&quot;serial.device&quot;.0.2400.0) rem(open port)<br />
repeat GW.w=readserial(0)<br />
  if gw&gt;29 and gw&lt;128<br />
    gewicht$=gewicht$+chr$(gw) rem(at to string)<br />
  endif<br />
until gw=10 or gw=13 rem (stop at linefeed or return)<br />
Closeserial 0<br />
<br />
Now VB suposed to be easy , well i cant find it <br />
Plzzzz 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/thread237767.html</guid>
		</item>
		<item>
			<title>Deploying the VB app - how to find the Mdf file</title>
			<link>http://www.daniweb.com/forums/thread237688.html</link>
			<pubDate>Wed, 11 Nov 2009 07:50:50 GMT</pubDate>
			<description><![CDATA[Dear everybody 
 
I really need your help!! 
 
I have made a small application in Visual Basic 2008 Express. It's a small form application with a Database connected to the project. (made from the wizard in VB express) 
 
My problem is that when I deploy my application i can't find the mdf file...]]></description>
			<content:encoded><![CDATA[<div>Dear everybody<br />
<br />
I really need your help!!<br />
<br />
I have made a small application in Visual Basic 2008 Express. It's a small form application with a Database connected to the project. (made from the wizard in VB express)<br />
<br />
My problem is that when I deploy my application i can't find the mdf file where the data of the application i stored. I have found a mdf file which i have tryed to connect to through excel but this data is not the same as in my application. <br />
<br />
What am i doing wrong??</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>21KristianN</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237688.html</guid>
		</item>
		<item>
			<title>Synchronise time with remote time server</title>
			<link>http://www.daniweb.com/forums/thread237663.html</link>
			<pubDate>Wed, 11 Nov 2009 06:34:17 GMT</pubDate>
			<description><![CDATA[Hi Buddy's, 
 
I need your guide to done this item...how to set my pc time application sync with my remote time server?...my pc application is 192.1.2.1 and my time server is 192.20.10.1.... 
 
Can anyone help me.... 
Thank in advance]]></description>
			<content:encoded><![CDATA[<div>Hi Buddy's,<br />
<br />
I need your guide to done this item...how to set my pc time application sync with my remote time server?...my pc application is 192.1.2.1 and my time server is 192.20.10.1....<br />
<br />
Can anyone help me....<br />
Thank in advance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>kerek2</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237663.html</guid>
		</item>
		<item>
			<title>Employee Schedule</title>
			<link>http://www.daniweb.com/forums/thread237659.html</link>
			<pubDate>Wed, 11 Nov 2009 06:03:43 GMT</pubDate>
			<description>hi 
 
i am working in paytime software using vb.net 2005, i have a problem employee schedule creation. how to use dayoff(fixed or flexible). any one help me  
 
thanks</description>
			<content:encoded><![CDATA[<div>hi<br />
<br />
i am working in paytime software using vb.net 2005, i have a problem employee schedule creation. how to use dayoff(fixed or flexible). any one help me <br />
<br />
thanks</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/thread237659.html</guid>
		</item>
		<item>
			<title>Error in vb application: Argument Null Exception was unhandled.</title>
			<link>http://www.daniweb.com/forums/thread237644.html</link>
			<pubDate>Wed, 11 Nov 2009 04:17:44 GMT</pubDate>
			<description><![CDATA[I am working on a vb windows form application with several connected forms. Its used to manipulate a MySQL database. One of the sub-forms has the following code snippet: 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>I am working on a vb windows form application with several connected forms. Its used to manipulate a MySQL database. One of the sub-forms has the following code snippet:<br />
 <pre style="margin:20px; line-height:13px">1&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; myCommand.Connection = conn<br />
2&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; myCommand.CommandText = SQL1<br />
3&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; myAdapter.SelectCommand = myCommand<br />
4&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; myAdapter.Fill(myData1)<br />
5&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ComboBox4.DataSource = myData1<br />
6&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ComboBox4.DisplayMember = &quot;area_name&quot;<br />
7&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ComboBox4.ValueMember = &quot;area_name&quot;</pre>This works fine the first time I access the form, but if I go back to the main form then try to access the same sub-form again, I get a runtime error at line 4 saying &quot;Argument NullException was undandled: Key cannot be null. Parameter name: key&quot;.<br />
<br />
I tried disposing of myData1 (a data table) after use, but that still didn't work. Note that all the variables are declared as New in the beginning. Help?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>xcorpionxting</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237644.html</guid>
		</item>
		<item>
			<title>bind datagrid to sql table</title>
			<link>http://www.daniweb.com/forums/thread237514.html</link>
			<pubDate>Tue, 10 Nov 2009 17:02:36 GMT</pubDate>
			<description>is there a way to caputre the values in a datagrid and bind them to a sql table?  I have a datagrid bound to a sql query with some editable cells and I wanted to know if the updates could be sent back to the sql table. is there a way to set the updated datagrid to a new dataset and bind the new...</description>
			<content:encoded><![CDATA[<div>is there a way to caputre the values in a datagrid and bind them to a sql table?  I have a datagrid bound to a sql query with some editable cells and I wanted to know if the updates could be sent back to the sql table. is there a way to set the updated datagrid to a new dataset and bind the new data to the existing sql table?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>smd5049</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237514.html</guid>
		</item>
		<item>
			<title>Save and retrieve image in access database</title>
			<link>http://www.daniweb.com/forums/thread237502.html</link>
			<pubDate>Tue, 10 Nov 2009 15:39:13 GMT</pubDate>
			<description>i am a new user of visual studio 2008 
 
i make a database program, but i cant save the image in access data base, i also want that image save a copy file in database. 
 
any one help me.</description>
			<content:encoded><![CDATA[<div>i am a new user of visual studio 2008<br />
<br />
i make a database program, but i cant save the image in access data base, i also want that image save a copy file in database.<br />
<br />
any one help me.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>yasirm79</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237502.html</guid>
		</item>
		<item>
			<title>Single Sided Id Card Printers</title>
			<link>http://www.daniweb.com/forums/thread237485.html</link>
			<pubDate>Tue, 10 Nov 2009 14:06:36 GMT</pubDate>
			<description>ID cards can store a variety of information, it can be as simple as an identification number on a bar code or magnetic stripe, or as sophisticated as biometric information encoded on a smart chip. Beyond security concerns, the new generation of smart cards can open doors or sign employees in and...</description>
			<content:encoded><![CDATA[<div>ID cards can store a variety of information, it can be as simple as an identification number on a bar code or magnetic stripe, or as sophisticated as biometric information encoded on a smart chip. Beyond security concerns, the new generation of smart cards can open doors or sign employees in and out. ID card printers provide ease for making any kind of identification card for banks, government offices, colleges and universities, hospitals and private offices.<br />
<br />
For more details:idcards-printers.com</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>aiden1</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237485.html</guid>
		</item>
		<item>
			<title>Benefits of data typing</title>
			<link>http://www.daniweb.com/forums/thread237448.html</link>
			<pubDate>Tue, 10 Nov 2009 09:45:27 GMT</pubDate>
			<description>Explain why data typing helps the programmer when writing a program</description>
			<content:encoded><![CDATA[<div>Explain why data typing helps the programmer when writing a program</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>oluscoa</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237448.html</guid>
		</item>
		<item>
			<title>Please Teach me VB.NEt!!!</title>
			<link>http://www.daniweb.com/forums/thread237411.html</link>
			<pubDate>Tue, 10 Nov 2009 07:33:55 GMT</pubDate>
			<description>Hi everyone... 
 
Can you guys please teach me in Programming in VB.Net,  
Im a newbie in Programming... 
 
Thank you... 
 
migz.natividad</description>
			<content:encoded><![CDATA[<div>Hi everyone...<br />
<br />
Can you guys please teach me in Programming in VB.Net, <br />
Im a newbie in Programming...<br />
<br />
Thank you...<br />
<br />
migz.natividad</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>migz.natividad</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237411.html</guid>
		</item>
		<item>
			<title>getting the coordinates of a object</title>
			<link>http://www.daniweb.com/forums/thread237244.html</link>
			<pubDate>Mon, 09 Nov 2009 15:10:03 GMT</pubDate>
			<description><![CDATA[guys I'm just new with visual basic. I would like to ask a question regarding coordinates.. Suppose I have object lets say a button how do i get the coordinates of the button in the form? also I want to button to move given a particular path, example if i draw a vertical line, the button will...]]></description>
			<content:encoded><![CDATA[<div>guys I'm just new with visual basic. I would like to ask a question regarding coordinates.. Suppose I have object lets say a button how do i get the coordinates of the button in the form? also I want to button to move given a particular path, example if i draw a vertical line, the button will follow the line and move vertically. how do i get the coordinates of starting and endpoints of the line? thanks...hope to hear from you soon</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>herms14</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237244.html</guid>
		</item>
		<item>
			<title>Group Box on top</title>
			<link>http://www.daniweb.com/forums/thread237233.html</link>
			<pubDate>Mon, 09 Nov 2009 13:57:35 GMT</pubDate>
			<description><![CDATA[Hi all, 
 
New user here using VB .Net 2008 
 
I seem to be having trouble getting group boxes to appear when I click a radio button. 
 
For example: 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Hi all,<br />
<br />
New user here using VB .Net 2008<br />
<br />
I seem to be having trouble getting group boxes to appear when I click a radio button.<br />
<br />
For example:<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; &nbsp; &nbsp; If radiobutton1.Checked Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Groupbox1.Visible = True<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Groupbox2.Visible = False<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Groupbox3.Visible = False<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Groupbox4.Visible = False<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If</pre><br />
This indeed brings up the first radio button however I have other groupboxes underneath which with the same code will not appear when the radio button is checked.<br />
<br />
Eg:<br />
<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; &nbsp;  If radiobutton2.Checked Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Groupbox2.Visible = True<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Groupbox1.Visible = False<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Groupbox3.Visible = False<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Groupbox4.Visible = False<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If</pre><br />
The second groupbox does not appear and is directly behind the first groupbox.<br />
<br />
The  <pre style="margin:20px; line-height:13px">.Top</pre> code doesn't seem to be working either.<br />
<br />
If anyone could shed some light on this I would really appreciate it.<br />
<br />
Thanks!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>tiscood</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237233.html</guid>
		</item>
		<item>
			<title>Read serial port data into a text file in VB2008 express</title>
			<link>http://www.daniweb.com/forums/thread237197.html</link>
			<pubDate>Mon, 09 Nov 2009 10:28:00 GMT</pubDate>
			<description>Hi i am trying to write a simple programme to allow the user to open and read data from a RS232 port on a medical equipment and save the data into text file. Iam not a techie. I am totally new to programming save a few projects in foxpro(lol.....yeah oldshool). 
 
can anyone help , i have vb2008...</description>
			<content:encoded><![CDATA[<div>Hi i am trying to write a simple programme to allow the user to open and read data from a RS232 port on a medical equipment and save the data into text file. Iam not a techie. I am totally new to programming save a few projects in foxpro(lol.....yeah oldshool).<br />
<br />
can anyone help , i have vb2008 express edition.<br />
<br />
Bejoy</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>bejoy.baby</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237197.html</guid>
		</item>
		<item>
			<title>Raise error does not triggered VB.Net Exception</title>
			<link>http://www.daniweb.com/forums/thread237186.html</link>
			<pubDate>Mon, 09 Nov 2009 10:01:31 GMT</pubDate>
			<description>Hi, 
 
I have a VB.Net system that connect to SQL Server through ODBC. 
When I try to raiseerror from an IF...ELSE statement, it does not triggered the exception handling. 
 
I have done some raise error testing at my side. Below is my finding: 
 
1. RaiseError did not triggered exception: 
 
 ...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I have a VB.Net system that connect to SQL Server through ODBC.<br />
When I try to raiseerror from an IF...ELSE statement, it does not triggered the exception handling.<br />
<br />
I have done some raise error testing at my side. Below is my finding:<br />
<br />
1. RaiseError did not triggered exception:<br />
<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; &nbsp;  CREATE PROC xxx<br />
&nbsp; &nbsp; &nbsp;  AS<br />
&nbsp; &nbsp; &nbsp; &nbsp;  IF 1=1<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  BEGIN<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  raiserror (70000,15,15)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  END</pre><br />
2. RaiseError triggered exception:<br />
<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; &nbsp;  CREATE PROC xxx<br />
&nbsp; &nbsp; &nbsp;  AS<br />
&nbsp; &nbsp; &nbsp; &nbsp;  IF 1=1<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  BEGIN<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  raiserror (70000,15,15)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  raiserror (70000,15,15)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  END<br />
<br />
<br />
&nbsp; &nbsp; &nbsp;  CREATE PROC xxx<br />
&nbsp; &nbsp; &nbsp;  AS<br />
&nbsp; &nbsp; &nbsp;  BEGIN<br />
&nbsp; &nbsp; &nbsp; &nbsp;  raiserror (70000,15,15)<br />
&nbsp; &nbsp; &nbsp;  END</pre><br />
<br />
Any idea why it does not work in IF...ELSE statement?<br />
<br />
Thank you.<br />
<br />
KC</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>lara_</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237186.html</guid>
		</item>
		<item>
			<title>Save And retrieve  Picture in Access Database In Vb.net</title>
			<link>http://www.daniweb.com/forums/thread237162.html</link>
			<pubDate>Mon, 09 Nov 2009 08:18:20 GMT</pubDate>
			<description>How to Save and retrieve picture in access data base with vb.net 2008</description>
			<content:encoded><![CDATA[<div>How to Save and retrieve picture in access data base with vb.net 2008</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>yasirm79</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237162.html</guid>
		</item>
		<item>
			<title>Help for Vb.</title>
			<link>http://www.daniweb.com/forums/thread237082.html</link>
			<pubDate>Mon, 09 Nov 2009 00:22:54 GMT</pubDate>
			<description>Hello i am building a transaction called client search the location of movie in store which mean client search the movie then get the direction of the movie where it is located in store. So now i need to build classes for this transaction which i am unable to find it because  i am confuse about...</description>
			<content:encoded><![CDATA[<div>Hello i am building a transaction called client search the location of movie in store which mean client search the movie then get the direction of the movie where it is located in store. So now i need to build classes for this transaction which i am unable to find it because  i am confuse about direction table . Can anyone pleas help me out for my classes about my transaction .</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>sisi</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237082.html</guid>
		</item>
		<item>
			<title>Makeing program to watch for server crash?</title>
			<link>http://www.daniweb.com/forums/thread236974.html</link>
			<pubDate>Sun, 08 Nov 2009 12:08:39 GMT</pubDate>
			<description><![CDATA[Hello i have been trying to make a program that should restart my server if it crashes. Just some few problems... it won't work. 
  <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"...]]></description>
			<content:encoded><![CDATA[<div>Hello i have been trying to make a program that should restart my server if it crashes. Just some few problems... it won't work.<br />
 <pre style="margin:20px; line-height:13px">Imports System.Net.Sockets<br />
Imports System.Text<br />
Module Module1<br />
&nbsp; &nbsp; Sub Main()<br />
&nbsp; &nbsp; &nbsp; &nbsp; Console.Title = &quot;Shifty Server Keeper&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim clientSocket As New System.Net.Sockets.TcpClient()<br />
&nbsp; &nbsp; &nbsp; &nbsp; While clientSocket.Connected = False<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; clientSocket.Connect(&quot;127.0.0.1&quot;, 27015)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Running&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Catch ex As Exception<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Crashed&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim pProcess() As Process = System.Diagnostics.Process.GetProcessesByName(&quot;ssrcds&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; For Each p As Process In pProcess<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; p.Kill()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Next<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.Diagnostics.Process.Start(&quot;C:\....&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End Try<br />
&nbsp; &nbsp; &nbsp; &nbsp; End While<br />
&nbsp; &nbsp; &nbsp; &nbsp; While clientSocket.Connected = True<br />
&nbsp; &nbsp; &nbsp; &nbsp; End While<br />
&nbsp; &nbsp; End Sub<br />
End Module</pre><br />
My problem is that when it notices the program runs, it won't do the process again, and just stop watching for the server crash. Please tell me a way to make it repeat :)<br />
I tryet do a Do...Loop but i don't seem to do it right.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>Qvintus</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236974.html</guid>
		</item>
		<item>
			<title>Visual Basic 2008 programming challenges</title>
			<link>http://www.daniweb.com/forums/thread236895.html</link>
			<pubDate>Sun, 08 Nov 2009 00:30:39 GMT</pubDate>
			<description>Hello! 
 
  I currently am enrolled in an intro to VB2008. I have done well thus far but have hit a snag on Chapter 5 programming challenge 4 on p350 of the 4th edition(yellow). I swear to you I have put probably 10 hours into this embarressingly and I am ready to throw my laptop into the wall lol....</description>
			<content:encoded><![CDATA[<div>Hello!<br />
<br />
  I currently am enrolled in an intro to VB2008. I have done well thus far but have hit a snag on Chapter 5 programming challenge 4 on p350 of the 4th edition(yellow). I swear to you I have put probably 10 hours into this embarressingly and I am ready to throw my laptop into the wall lol. <br />
  The &quot;Hotel Occupancy&quot; challenge states there are 8 floors, 30 rooms per floor. I am asked to design a program that prompts the user 8 separate times with an input box so they can enter the rooms that are filled on each floor.<br />
  The program should display in a listbox the floor #, rooms occupied on that floor, and percentage of rooms occupied on that floor.In addition to the list box, two labels on the form should display total occupancy percentage for entire hotel and total rooms occupied respectively. <br />
  I am new but familiar with loops and such but this one has got me.  Any ideas a plus-Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>Dimonbak</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236895.html</guid>
		</item>
		<item>
			<title>Assigning an icon to an extension saved by .net application</title>
			<link>http://www.daniweb.com/forums/thread236817.html</link>
			<pubDate>Sat, 07 Nov 2009 16:11:44 GMT</pubDate>
			<description>Hi All, 
Using Visual studio 2008, I have an application that its data can save to a binary file, using *.SDB extension, Moreover users can open this file from my application. I have 2 questions about this. 
1-	How can I assign an icon to this saved file with SDB extension when my application has...</description>
			<content:encoded><![CDATA[<div>Hi All,<br />
Using Visual studio 2008, I have an application that its data can save to a binary file, using *.SDB extension, Moreover users can open this file from my application. I have 2 questions about this.<br />
1-	How can I assign an icon to this saved file with SDB extension when my application has been installed in other computer?<br />
2-	Similar to *.sln file (for Visual Studio project), How can I assign tow icon to single extension? For example when a solution is saved with visual studio 2005 its icon different from that one saved from visual studio 2008. In first, the solution’s icon contains “5” but in 08 solution’s icon contains “8”.<br />
Thanks Again.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>A.Najafi</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236817.html</guid>
		</item>
		<item>
			<title>The publisher could not be verified...</title>
			<link>http://www.daniweb.com/forums/thread236788.html</link>
			<pubDate>Sat, 07 Nov 2009 13:15:45 GMT</pubDate>
			<description><![CDATA[When users run my vb2008 executable they get the windows security message "The published could not be published. Are you sure you want to run this software?" 
 
Is there any way to get rid of this message when users run my app? Or do individual users need to change their security settings? 
 
Many...]]></description>
			<content:encoded><![CDATA[<div>When users run my vb2008 executable they get the windows security message &quot;The published could not be published. Are you sure you want to run this software?&quot;<br />
<br />
Is there any way to get rid of this message when users run my app? Or do individual users need to change their security settings?<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/thread236788.html</guid>
		</item>
		<item>
			<title>Cannot Open Flash Files From the VB.Net EXE</title>
			<link>http://www.daniweb.com/forums/thread236711.html</link>
			<pubDate>Sat, 07 Nov 2009 05:41:13 GMT</pubDate>
			<description>I have created a small application to open the Flash File from my VB.Net Windows Application. To open the Flash file - I have used the Shockwave Flash Object. When I run the application directly from the Solution, the flash files are opening perfectly. But, once I created the EXE and tried to open...</description>
			<content:encoded><![CDATA[<div>I have created a small application to open the Flash File from my VB.Net Windows Application. To open the Flash file - I have used the Shockwave Flash Object. When I run the application directly from the Solution, the flash files are opening perfectly. But, once I created the EXE and tried to open the same file, I could not. But I can still open other files such as XML, PDF, and Word file from the same directory. <br />
<br />
Can Anyone Help me?<br />
<br />
Thanks,<br />
<br />
ArunSankar</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>a_arunsankar</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236711.html</guid>
		</item>
	</channel>
</rss>
