<?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, 07 Nov 2009 21:28:35 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>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>
		<item>
			<title>Convert 1-Dim String Array to String</title>
			<link>http://www.daniweb.com/forums/thread236701.html</link>
			<pubDate>Sat, 07 Nov 2009 04:14:53 GMT</pubDate>
			<description><![CDATA[I'm working on a mass text replacer program because I'm sick of all the 10-day trial ones out there that aren't very good. 
 
The entire program is basically finished (All easy stuff), but now I need to code the actual replace/delete stuff, which I'm stuck on because apparently the way I originally...]]></description>
			<content:encoded><![CDATA[<div>I'm working on a mass text replacer program because I'm sick of all the 10-day trial ones out there that aren't very good.<br />
<br />
The entire program is basically finished (All easy stuff), but now I need to code the actual replace/delete stuff, which I'm stuck on because apparently the way I originally intended to do it is not possible.<br />
<br />
The way it works is you load a text file (.txt, .cfg, .ini, .doc, etc.) which opens a StreamReader which writes all the data into a listbox. Then you pick whether you want to replace or delete a string. If you select replace, then you enter the string to search for and in another textbox you enter the string to replace it with.<br />
<br />
The way I originally intended to do this was like this:<br />
<br />
 <pre style="margin:20px; line-height:13px">If o1.Text = &quot;Replace&quot; Then 'The option<br />
&nbsp; &nbsp; Replace(txtfile, str1, a1) 'txtfile is the data, str1 is the string to find and a1 is the replacement<br />
End If</pre><br />
The problem is, I believe this method requires txtfile, str1 and a1 to be strings, but they're all 1-dimensional string arrays, which cannot be converted to strings, or at least I don't know how to convert them.<br />
<br />
A friend told me one way I could do this is to open both a StreamReader and StreamWriter and do the replace/delete line by line as they are entered into the memory and write them to a temporary file which is then copied over the original. I can do this kind of, but I still don't know the proper way of doing the actual replace code because the string to find and the string to replace with are still 1-dimensional string arrays rather than strings.<br />
<br />
I can't think of any other way to do this, due to I'm not that experienced in VBNet. Any help is greatly appreciated.</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/thread236701.html</guid>
		</item>
		<item>
			<title>Web Browser Help.</title>
			<link>http://www.daniweb.com/forums/thread236696.html</link>
			<pubDate>Sat, 07 Nov 2009 03:37:16 GMT</pubDate>
			<description><![CDATA[I am currently trying to create a Web Design program, freeware, for use to help with the aid of web design.  I want it to be sorta like... "Web-Design-Toy"  by ACME, only with more features.  To where when you type in the textbox, it comes out in a live view using a web browser.  Anybody have any...]]></description>
			<content:encoded><![CDATA[<div>I am currently trying to create a Web Design program, freeware, for use to help with the aid of web design.  I want it to be sorta like... &quot;Web-Design-Toy&quot;  by ACME, only with more features.  To where when you type in the textbox, it comes out in a live view using a web browser.  Anybody have any ideas of how to code that with Visual Basic 2008 Express Edition!?!  Please and Thank-You!!!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>Gangstafier</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236696.html</guid>
		</item>
		<item>
			<title>ContextMenuStrip</title>
			<link>http://www.daniweb.com/forums/thread236691.html</link>
			<pubDate>Sat, 07 Nov 2009 02:52:20 GMT</pubDate>
			<description><![CDATA[HI 
 
I'm trying to use a menu on a datagridview, I have put a Contextmenutrip on the form. When I right click in a cell 
I would like a menu to pop up. but nothing happens. 
This is the code I have tried. 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right;...]]></description>
			<content:encoded><![CDATA[<div>HI<br />
<br />
I'm trying to use a menu on a datagridview, I have put a Contextmenutrip on the form. When I right click in a cell<br />
I would like a menu to pop up. but nothing happens.<br />
This is the code I have tried.<br />
<br />
 <pre style="margin:20px; line-height:13px">&nbsp;  Private Sub CustomerPopMenu_ItemClicked(ByVal sender As Object, ByVal e As System.Windows.Forms.ToolStripItemClickedEventArgs)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Select Case e.ClickedItem.ToString()<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Case &quot;Edit&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MsgBox(&quot;Edit&quot;)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Case &quot;Delete&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MsgBox(&quot;Delete&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Select<br />
<br />
&nbsp; &nbsp; End Sub</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>VIPER5646</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236691.html</guid>
		</item>
		<item>
			<title>Serial State Change Monitoring</title>
			<link>http://www.daniweb.com/forums/thread236657.html</link>
			<pubDate>Fri, 06 Nov 2009 23:16:18 GMT</pubDate>
			<description>HI, 
What I am trying to do is find a program that will track incoming information through a serial port and log any state changes. If anyone has any ideas on how to solve this problem please let me know.</description>
			<content:encoded><![CDATA[<div>HI,<br />
What I am trying to do is find a program that will track incoming information through a serial port and log any state changes. If anyone has any ideas on how to solve this problem please let me know.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>tyesbooks</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236657.html</guid>
		</item>
		<item>
			<title>String length problem</title>
			<link>http://www.daniweb.com/forums/thread236627.html</link>
			<pubDate>Fri, 06 Nov 2009 19:28:52 GMT</pubDate>
			<description><![CDATA[I understood that a string in VB .Net maximum length was quite large (could be way over 1000 characters) but do not know for sure.  I keep having a problem when I concatenate one string to another and the result is the second string.   
 
Example:  
Str1 = “this is the first test” 
Str1 &= “this is...]]></description>
			<content:encoded><![CDATA[<div>I understood that a string in VB .Net maximum length was quite large (could be way over 1000 characters) but do not know for sure.  I keep having a problem when I concatenate one string to another and the result is the second string.  <br />
<br />
Example: <br />
Str1 = “this is the first test”<br />
Str1 &amp;= “this is the second test”<br />
<br />
Now Str1 = “this is the second test”<br />
<br />
The lengths of the strings in the example are not correct (much longer) but are under 1000 characters.  Does anyone have a clue?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>glennt</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236627.html</guid>
		</item>
		<item>
			<title>Code Snippet Keypress event</title>
			<link>http://www.daniweb.com/code/snippet236575.html</link>
			<pubDate>Fri, 06 Nov 2009 14:31:14 GMT</pubDate>
			<description>Dear Sir, 
                   I am completely new to VB.NET but i worked in VB6.0 very well. My problem in VB.net is that i need a code through which i can print a message box which will show what key is pressed like control , alt,1,.,2 etc. Please help me. 
 or other way  
i want to deactivate...</description>
			<content:encoded><![CDATA[<div>Dear Sir,<br />
                   I am completely new to VB.NET but i worked in VB6.0 very well. My problem in VB.net is that i need a code through which i can print a message box which will show what key is pressed like control , alt,1,.,2 etc. Please help me.<br />
 or other way <br />
i want to deactivate ctrl key when a particular form is loaded.<br />
Please help<br />
<br />
Thanks <br />
<br />
<br />
pardeep</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>pardeep3dec</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236575.html</guid>
		</item>
		<item>
			<title>Issue using Like in VB query to Access DB</title>
			<link>http://www.daniweb.com/forums/thread236535.html</link>
			<pubDate>Fri, 06 Nov 2009 10:09:41 GMT</pubDate>
			<description><![CDATA[Hi Everyone 
 
I'm designing a program with a front end vb.net (2007 Express version) app and a back-end Access 2007 database. I've added the following query to the database dataset (SAUJSDataSet). I have a table which contains information of students and there is a search form where the user can...]]></description>
			<content:encoded><![CDATA[<div>Hi Everyone<br />
<br />
I'm designing a program with a front end vb.net (2007 Express version) app and a back-end Access 2007 database. I've added the following query to the database dataset (SAUJSDataSet). I have a table which contains information of students and there is a search form where the user can input a variety of search parameters depending on how specific they want their search to be. I used the following query<br />
<br />
 <pre style="margin:20px; line-height:13px">SELECT * FROM Students WHERE (FirstName LIKE '%' + ? + '%') AND (LastName LIKE '%' + ? + '%') AND&nbsp; (TelNum LIKE '%' + ? + '%') AND (CelNum LIKE '%' + ? + '%') AND (Email LIKE '%' + ? + '%') AND (University LIKE '%' + ? + '%')&nbsp; AND (Degree LIKE '%' + ? + '%')</pre><br />
The query is called as follows when the search button is pressed, where fname, lname, tel, cell, email, univ and degree are variables storing the relevant search criteria.<br />
<br />
Me.StudentsTableAdapter.FillBySearchStudentG(SaujsDataSet.Students, fname, lname, tel, cell, email, univ, degree)<br />
<br />
It works fine if all the fields in the table that are searched have a value in it (i.e, so long as each record has a first name, last name, telnum, celnum, email, university and degree) but the moment one of those fields is blank in the database (e.g. the person doesn't have an email address) it won't include that record in the results even if no email address is entered in the search parameters and the record matches all other search criteria.<br />
<br />
How can i modify my code so that it will return records with no data in specific fields so long as there is nothing specified in that field in the search criteria (e.g. search for FirstName = &quot;Sar&quot;, LastName = &quot;Sm&quot;, telnum, celnum, email, university and degree are left blank, should return the record with FirstName = &quot;Sarah&quot;, LastName = &quot;Smith&quot;, telnum =&quot;1234567890&quot;, celnum = &quot;0987654321&quot;, email = &quot;&quot;, ... and so on<br />
<br />
I hope i've made some sense with what I'm trying to ask. I'd appreciate any help with this.<br />
<br />
Thanks<br />
Laura</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>Loony064</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236535.html</guid>
		</item>
		<item>
			<title>vb.net, database manipulation</title>
			<link>http://www.daniweb.com/forums/thread236487.html</link>
			<pubDate>Fri, 06 Nov 2009 05:59:21 GMT</pubDate>
			<description><![CDATA[Hello all you geniuses out there... Long time reader first time poster, 
 
So, here is what I'm trying to do.  
 
The program I am trying to construct is for tracking when a person has entered a location. Each person has an RFID card. When a person passes a point, the RFID tag is read and the...]]></description>
			<content:encoded><![CDATA[<div>Hello all you geniuses out there... Long time reader first time poster,<br />
<br />
So, here is what I'm trying to do. <br />
<br />
The program I am trying to construct is for tracking when a person has entered a location. Each person has an RFID card. When a person passes a point, the RFID tag is read and the reader outputs virtual keystrokes. The reader keyboard wedge will output a 6 digit integer.<br />
<br />
The program will be left on the run screen, each time a card is read it is placed into a multi-line text box. Every 15 mins or so, the program must read each of the 6 digit numbers, locate them in the database, and change the number of times the card has been read and the time it was read.<br />
<br />
<span style="font-weight:bold">What I have so far</span><br />
<br />
So I have no problem creating a data set and filtering that data set and also I have no problem creating user info and writing that to the database. The problem I have is searching for a specific record in my database and then having the program change certain data and update the database. <br />
<br />
<br />
Here is a sample program I made to test my search method<br />
<br />
 <pre style="margin:20px; line-height:13px">Public Class Main<br />
<br />
&nbsp; &nbsp; Private Sub ListingBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListingBindingNavigatorSaveItem.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; Me.Validate()<br />
&nbsp; &nbsp; &nbsp; &nbsp; Me.ListingBindingSource.EndEdit()<br />
&nbsp; &nbsp; &nbsp; &nbsp; Me.TableAdapterManager.UpdateAll(Me.CarTrackerDataSet)<br />
<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Private Sub Main_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'TODO: This line of code loads data into the 'CarTrackerDataSet.CarType' table. You can move, or remove it, as needed.<br />
&nbsp; &nbsp; &nbsp; &nbsp; Me.CarTypeTableAdapter.Fill(Me.CarTrackerDataSet.CarType)<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'TODO: This line of code loads data into the 'CarTrackerDataSet.Make' table. You can move, or remove it, as needed.<br />
&nbsp; &nbsp; &nbsp; &nbsp; Me.MakeTableAdapter.Fill(Me.CarTrackerDataSet.Make)<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'TODO: This line of code loads data into the 'CarTrackerDataSet.Color' table. You can move, or remove it, as needed.<br />
&nbsp; &nbsp; &nbsp; &nbsp; Me.ColorTableAdapter.Fill(Me.CarTrackerDataSet.Color)<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'TODO: This line of code loads data into the 'CarTrackerDataSet.Listing' table. You can move, or remove it, as needed.<br />
&nbsp; &nbsp; &nbsp; &nbsp; Me.ListingTableAdapter.Fill(Me.CarTrackerDataSet.Listing)<br />
<br />
&nbsp; &nbsp; End Sub<br />
<br />
<br />
&nbsp; &nbsp; Private Sub FillByColorNameToolStripButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FillByColorNameToolStripButton.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; Try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.ListingTableAdapter.FillByColorName(Me.CarTrackerDataSet.Listing, ColorNameToolStripTextBox.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Catch ex As System.Exception<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.Windows.Forms.MessageBox.Show(ex.Message)<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Try<br />
<br />
&nbsp; &nbsp; End Sub<br />
<br />
<br />
&nbsp; &nbsp; Private Sub tsbFilterByMake_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tsbFilterByMake.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim filteredByMake = From Listing In Me.CarTrackerDataSet.Listing _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Join Make In Me.CarTrackerDataSet.Make _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  On Listing.MakeID Equals Make.MakeID _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Where Make.MakeName.ToLower() Like _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;*&quot; &amp; Me.tstbFilterByMake.Text.ToLower() &amp; &quot;*&quot; _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Select Listing<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.ListingBindingSource.DataSource = filteredByMake.CopyToDataTable<br />
&nbsp; &nbsp; &nbsp; &nbsp; Catch ex As System.InvalidOperationException<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.Show(&quot;No matching data&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Try<br />
<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Private Sub tsbFilterByCarType_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tsbFilterByCarType.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim filteredByCarType = From Listing In Me.CarTrackerDataSet.Listing _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Join CarType In Me.CarTrackerDataSet.CarType _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; On Listing.CarTypeID Equals CarType.CarTypeID _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Where CarType.CarTypeName.ToLower() Like _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;*&quot; &amp; Me.tstbFilterByCarType.Text.ToLower() &amp; &quot;*&quot; _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Select Listing<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.ListingBindingSource.DataSource = filteredByCarType.CopyToDataTable<br />
&nbsp; &nbsp; &nbsp; &nbsp; Catch ex As System.InvalidOperationException<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.Show(&quot;No matching data&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Try<br />
<br />
&nbsp; &nbsp; End Sub<br />
End Class</pre><br />
Any ideas??</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>Brian2sos</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236487.html</guid>
		</item>
		<item>
			<title>Help with Reverse Problem</title>
			<link>http://www.daniweb.com/forums/thread236404.html</link>
			<pubDate>Thu, 05 Nov 2009 22:59:01 GMT</pubDate>
			<description>In Visual Basic 2008 Express edition: Create a new string replacing the order of the words, from last one to the first one and show it in a text box 
Example: 
	Input: 	“This is an example” 
	Output:	“example an is This” 
 
I know theres a function to reverse the letters (StrReverse), but the order...</description>
			<content:encoded><![CDATA[<div>In Visual Basic 2008 Express edition: Create a new string replacing the order of the words, from last one to the first one and show it in a text box<br />
Example:<br />
	Input: 	“This is an example”<br />
	Output:	“example an is This”<br />
<br />
I know theres a function to reverse the letters (StrReverse), but the order of the words? Please someone help me out.</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/thread236404.html</guid>
		</item>
		<item>
			<title>Hotel Occupancy formHelp</title>
			<link>http://www.daniweb.com/forums/thread236395.html</link>
			<pubDate>Thu, 05 Nov 2009 22:05:52 GMT</pubDate>
			<description><![CDATA[i'm new to visual basic and I managed to make somewhat of an assignment I need. now it's not perfect but, I am terrible when it comes to calculations... what am I doing wrong? ;-; 
 
' This procedure calculates and displays each floors 
' occupancy rate. 
 
Dim intCount As Integer ' Loop counter...]]></description>
			<content:encoded><![CDATA[<div>i'm new to visual basic and I managed to make somewhat of an assignment I need. now it's not perfect but, I am terrible when it comes to calculations... what am I doing wrong? ;-;<br />
<br />
' This procedure calculates and displays each floors<br />
' occupancy rate.<br />
<br />
Dim intCount As Integer ' Loop counter<br />
Dim decoccupancy As Decimal ' occupancy rate<br />
<br />
' Calculate the occupancy rate for each floor, the total <br />
' of all occupancy rates , and the total rooms occupied.<br />
<br />
For intCount = 0 To intMAX_floor = 250<br />
decoccupancy = introoms(intCount) * decroom_occupancy_RATE<br />
decoccupancyrate(intCount) = decoccupancy<br />
decTotaloccupancyrate /= decoccupancy<br />
intTotalrooms &amp;= Int(intCount)<br />
<br />
it's telling me to divie the number of rooms by the occupied rooms... 18/30 = .6 or 60%<br />
and the hotel has 240 rooms<br />
<br />
Not sure wat direction to go in now.... Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>hhh0505</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236395.html</guid>
		</item>
		<item>
			<title>Can I have a message box pop up in a form that is called via ShowDialog?</title>
			<link>http://www.daniweb.com/forums/thread236382.html</link>
			<pubDate>Thu, 05 Nov 2009 21:11:24 GMT</pubDate>
			<description><![CDATA[I have a form that is called w/ ShowDialog.  Inside that form, I want to pop a message box to ask the user a question, but it doesn't show. 
 
Form: 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>I have a form that is called w/ ShowDialog.  Inside that form, I want to pop a message box to ask the user a question, but it doesn't show.<br />
<br />
Form:<br />
 <pre style="margin:20px; line-height:13px">Dim someFrame as myFrame = new myFrame<br />
someFrame.ShowDialog()</pre><br />
Then, inside that form:<br />
 <pre style="margin:20px; line-height:13px">Dim ans As MsgBoxResult<br />
ans = MsgBox(transarr(16), MsgBoxStyle.YesNo + MsgBoxStyle.SystemModal, &quot;WARNING!&quot;)<br />
<br />
If ans = MsgBoxResult.Yes Then<br />
&nbsp; 'do something<br />
Else<br />
&nbsp;'do something else<br />
End If</pre><br />
Is this possible to get working?</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/thread236382.html</guid>
		</item>
		<item>
			<title>Voice Recognition System</title>
			<link>http://www.daniweb.com/forums/thread236350.html</link>
			<pubDate>Thu, 05 Nov 2009 19:02:42 GMT</pubDate>
			<description><![CDATA[Hello,Frndz i am new in vb.net.I hav done all of its basics.Can somebody help me to make a Voice Recognition System in vb.net . 
Actually i want user to give voice commands through microphone and his computer do the same.*I don't  need pet code or full Project I want guidance and ideas on those i...]]></description>
			<content:encoded><![CDATA[<div>Hello,Frndz i am new in vb.net.I hav done all of its basics.Can somebody help me to make a Voice Recognition System in vb.net .<br />
Actually i want user to give voice commands through microphone and his computer do the same.<span style="font-weight:bold">I don't  need pet code or full Project I want guidance and ideas on those i can float to my aim.</span>Thanx................</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>gagansharma</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236350.html</guid>
		</item>
		<item>
			<title>Help with class</title>
			<link>http://www.daniweb.com/forums/thread236339.html</link>
			<pubDate>Thu, 05 Nov 2009 18:19:46 GMT</pubDate>
			<description>Hey guys, I am having trouble building this class, my teacher is not very helpful. Here is the code I have been working on, I am still confused on methods, constuctors, properties, etc. He gave me a wierd example to try to follow. Here are the requirements my teacher wants as well as the code: 
 
....</description>
			<content:encoded><![CDATA[<div>Hey guys, I am having trouble building this class, my teacher is not very helpful. Here is the code I have been working on, I am still confused on methods, constuctors, properties, etc. He gave me a wierd example to try to follow. Here are the requirements my teacher wants as well as the code:<br />
<br />
.   Design a class named Rectangle to represent a rectangle.  The class contains:<br />
•	Two double data fields named dblwidth and dblheight that specify the width and height of the rectangle.  The default values are 1 for both dblwidth and dblheight.<br />
•	A string data field named strcolor that specifies the color of a rectangle.  Hypothetically, assume that all rectangles have the same color.  The default color is white.<br />
•	A no parameter constructor will be created which represents the default rectangle.<br />
•	A three parameter (width, length, color) will be created.<br />
•	Three properties (width, length, and color) will be created.<br />
•	A method named getArea() will be created to find the area (area = width * length).<br />
•	A method named getPerimeter() will be created to find the perimeter (perimeter = 2 * width + 2 * length).<br />
Write a test program in Windows that asks for the width, length and color of a rectangle and find the area and perimeter.<br />
<br />
<br />
 <pre style="margin:20px; line-height:13px">Public Class Rectangle<br />
<br />
&nbsp; &nbsp; Private dblWidth As Double<br />
&nbsp; &nbsp; Private dblHeight As Double<br />
&nbsp; &nbsp; Private strColor As String<br />
&nbsp; &nbsp; Public Sub New(ByVal vwidth As Integer, _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ByVal vlength As Integer, _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ByVal vcolor As String)<br />
&nbsp; &nbsp; &nbsp; &nbsp; width = vwidth<br />
&nbsp; &nbsp; &nbsp; &nbsp; length = vlength<br />
&nbsp; &nbsp; &nbsp; &nbsp; color = vcolor<br />
&nbsp; &nbsp; End Sub<br />
&nbsp; &nbsp; Public Property width() As Integer<br />
&nbsp; &nbsp; &nbsp; &nbsp; Get<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Return dblWidth()<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Get<br />
&nbsp; &nbsp; &nbsp; &nbsp; Set(ByVal value As Integer)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dblWidth = value<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Set<br />
&nbsp; &nbsp; End Property<br />
<br />
&nbsp; &nbsp; Public Property length() As Integer<br />
&nbsp; &nbsp; &nbsp; &nbsp; Get<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Return<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Get<br />
&nbsp; &nbsp; &nbsp; &nbsp; Set(ByVal value As Integer)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Set<br />
&nbsp; &nbsp; End Property<br />
<br />
&nbsp; &nbsp; Public Property color() As String<br />
&nbsp; &nbsp; &nbsp; &nbsp; Get<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Get<br />
&nbsp; &nbsp; &nbsp; &nbsp; Set(ByVal value As Integer)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Set<br />
&nbsp; &nbsp; End Property<br />
<br />
&nbsp; &nbsp; Public Sub getArea()<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim area As Integer = width * length<br />
<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Public Sub getPerimeter()<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim perimeter As Integer = (2 * width) + (2 + length)<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/thread236339.html</guid>
		</item>
		<item>
			<title>Printing in VB.NET</title>
			<link>http://www.daniweb.com/forums/thread236275.html</link>
			<pubDate>Thu, 05 Nov 2009 13:46:20 GMT</pubDate>
			<description>I am creating cheque printing application using VB.Net and MS Access.  
 
Which is the best way to print a cheque in VB.NET where the data stored in access. 
 
I am newbie to windows developement.. Using VB 2005 express edition. 
 
Thanks</description>
			<content:encoded><![CDATA[<div>I am creating cheque printing application using VB.Net and MS Access. <br />
<br />
Which is the best way to print a cheque in VB.NET where the data stored in access.<br />
<br />
I am newbie to windows developement.. Using VB 2005 express edition.<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/thread236275.html</guid>
		</item>
		<item>
			<title>Help with array</title>
			<link>http://www.daniweb.com/forums/thread236145.html</link>
			<pubDate>Thu, 05 Nov 2009 05:08:56 GMT</pubDate>
			<description>Hey guys need help with this problem that is suppose to read an unspecified number of scores and determines how many scores are above or equal to the average and how many scores are below the average.  Enter a negative number to signify the end of the input.  Assume that the maximum number of...</description>
			<content:encoded><![CDATA[<div>Hey guys need help with this problem that is suppose to read an unspecified number of scores and determines how many scores are above or equal to the average and how many scores are below the average.  Enter a negative number to signify the end of the input.  Assume that the maximum number of scores is 100. Anyway here is what I have so far. I know I'll need an array for the add button and a calculate that will need to access the array. My teacher is not very helpful. Here is what I have so far. I am completely lost.<br />
<br />
  <pre style="margin:20px; line-height:13px">Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim getAverage() As Integer = txtAddScore.Text{getAverage1, getAverage2}<br />
&nbsp; &nbsp; &nbsp; &nbsp; Do While getAverage(99) &gt; 0<br />
&nbsp; &nbsp; &nbsp; &nbsp; Loop<br />
&nbsp; &nbsp; End Sub<br />
Private Sub btnCalc_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalc.Click<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/thread236145.html</guid>
		</item>
		<item>
			<title>How to print data from vb form?</title>
			<link>http://www.daniweb.com/forums/thread236121.html</link>
			<pubDate>Thu, 05 Nov 2009 02:54:46 GMT</pubDate>
			<description><![CDATA[Hi all,  
 
I want to print out the searched data from vb form, what command should I put it?  
I had add the "Print" button, but do not know where to start to programme. 
Thanks.]]></description>
			<content:encoded><![CDATA[<div>Hi all, <br />
<br />
I want to print out the searched data from vb form, what command should I put it? <br />
I had add the &quot;Print&quot; button, but do not know where to start to programme.<br />
Thanks.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>michelle2025</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236121.html</guid>
		</item>
		<item>
			<title>Changing time in datetimepicker</title>
			<link>http://www.daniweb.com/forums/thread236064.html</link>
			<pubDate>Wed, 04 Nov 2009 22:06:01 GMT</pubDate>
			<description>I have 2 datetimepickers on my form, and I use them to pass parameters to my sql queries for reporting purposes.  You would use them to pick a date range and display clock in times for employees.  Anyway, I need an option so users can see information from a single day(24 hour timespan)  My first...</description>
			<content:encoded><![CDATA[<div>I have 2 datetimepickers on my form, and I use them to pass parameters to my sql queries for reporting purposes.  You would use them to pick a date range and display clock in times for employees.  Anyway, I need an option so users can see information from a single day(24 hour timespan)  My first Idea was to let the user change the date on the first datetimepicker then changing the time to 12:00 AM then the second datetimepicker to 11:59 PM.  I want to be able to do this programmatically, but I couldnt figure out how to change the time.  I feel so stupid please give me some advice.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>lolwtf</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236064.html</guid>
		</item>
		<item>
			<title>Problem with form</title>
			<link>http://www.daniweb.com/forums/thread236059.html</link>
			<pubDate>Wed, 04 Nov 2009 21:37:06 GMT</pubDate>
			<description>Hey guys I am a newbie to VB and need help with this form, 
The idea is that people enter there age and if they over 65 and are a member its one price, if they are under 65 its one price and if they are not a member it is one price. Age is entered into a textbox, memberahip is indicated by a...</description>
			<content:encoded><![CDATA[<div>Hey guys I am a newbie to VB and need help with this form,<br />
The idea is that people enter there age and if they over 65 and are a member its one price, if they are under 65 its one price and if they are not a member it is one price. Age is entered into a textbox, memberahip is indicated by a checkbox and the price is then displayed in a textbox. Anyway I a confused about why it is not calculating. Here is what I have so far. Again I am very new to VB.<br />
<br />
 <pre style="margin:20px; line-height:13px">Public Class Form1<br />
<br />
&nbsp; &nbsp; Private Sub btnPrice_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPrice.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim getAge As Integer = txtAge.Text<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim isChecked As Integer = chkMemeber.Checked<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim showPrice As Integer = txtPrice.Text<br />
&nbsp; &nbsp; &nbsp; &nbsp; If getAge &gt; 65 And isChecked = True Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; txtPrice.Text = 5<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf getAge &lt; 65 And isChecked = True Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; txtPrice.Text = 10<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf isChecked = False Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; txtPrice.Text = 20<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<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/thread236059.html</guid>
		</item>
		<item>
			<title>Visual Basic.Net Data types</title>
			<link>http://www.daniweb.com/forums/thread236052.html</link>
			<pubDate>Wed, 04 Nov 2009 20:24:12 GMT</pubDate>
			<description>Using Visual Basic .Net, explain what each variable type listed below holds, how big it is (i.e. the number of bytes it uses) and give an example of how it might be used. 
 
  
     Data Type           Explanation         space occupied      Example 
     Text 
     Integer 
     Floating point 
  ...</description>
			<content:encoded><![CDATA[<div>Using Visual Basic .Net, explain what each variable type listed below holds, how big it is (i.e. the number of bytes it uses) and give an example of how it might be used.<br />
<br />
 <br />
     Data Type           Explanation         space occupied      Example<br />
     Text<br />
     Integer<br />
     Floating point<br />
     Date<br />
     Boolean<br />
     Bytes</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/thread236052.html</guid>
		</item>
		<item>
			<title>saving pictures to Access using ADO</title>
			<link>http://www.daniweb.com/forums/thread235982.html</link>
			<pubDate>Wed, 04 Nov 2009 14:54:38 GMT</pubDate>
			<description><![CDATA[Hi Guys 
 
please I need your help. 
 
I'm creating this small application that will control some equipments based on its bar code and the owner picture. 
 
everything is working fine, except the picture. 
 
is there a way to save image to access database using ADO Connections and\or recordsets?...]]></description>
			<content:encoded><![CDATA[<div>Hi Guys<br />
<br />
please I need your help.<br />
<br />
I'm creating this small application that will control some equipments based on its bar code and the owner picture.<br />
<br />
everything is working fine, except the picture.<br />
<br />
is there a way to save image to access database using ADO Connections and\or recordsets?<br />
I've head its possible to store the path and the retrieve. does any body have a step by step tutorial?<br />
<br />
I would really appreciate your quickest answer<br />
<br />
Thank you<br />
<br />
my app example<br />
<br />
/code<br />
 With rs<br />
<br />
            .AddNew()<br />
            .Fields(&quot;Nome&quot;).Value = txtName.Text<br />
            .Fields(&quot;CAI&quot;).Value = txtCAI.Text<br />
            .Fields(&quot;Empresa&quot;).Value = cbCompany.Text<br />
            .Fields(&quot;Departamento&quot;).Value = txtDepartment.Text<br />
            .Fields(&quot;Extensao&quot;).Value = txtPhone.Text<br />
            .Fields(&quot;Passe&quot;).Value = txtPass.Text<br />
            .Fields(&quot;Tipo&quot;).Value = cbTipo.Text<br />
            .Fields(&quot;Marca&quot;).Value = txtMarca.Text<br />
            .Fields(&quot;Modelo&quot;).Value = txtModelo.Text<br />
            .Fields(&quot;Serie&quot;).Value = txtNSerie.Text<br />
            .Fields(&quot;Data&quot;).Value = Date.Today<br />
<br />
            .Update()<br />
            .Requery()<br />
            clear()<br />
            rs.Close()<br />
            Call Imagem()<br />
<br />
        End With<br />
        'Else<br />
        With rs<br />
            .Fields(&quot;Nome&quot;).Value = txtName.Text<br />
            .Fields(&quot;CAi&quot;).Value = txtCAI.Text<br />
            .Fields(&quot;Empresa&quot;).Value = cbCompany.Text<br />
            .Fields(&quot;Departamento&quot;).Value = txtDepartment.Text<br />
            .Fields(&quot;Extensao&quot;).Value = txtPhone.Text<br />
            .Fields(&quot;Passe&quot;).Value = txtPass.Text<br />
            .Fields(&quot;Tipo&quot;).Value = cbTipo.Text<br />
            .Fields(&quot;Marca&quot;).Value = txtMarca.Text<br />
            .Fields(&quot;Modelo&quot;).Value = txtModelo.Text<br />
            .Fields(&quot;Serie&quot;).Value = txtNSerie.Text<br />
            .Update()<br />
        End With<br />
        'End If<br />
    End Sub<br />
\code</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>Leodumbi</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235982.html</guid>
		</item>
		<item>
			<title>Visual Basic Databases</title>
			<link>http://www.daniweb.com/forums/thread235979.html</link>
			<pubDate>Wed, 04 Nov 2009 14:31:34 GMT</pubDate>
			<description>I am an IT student and working on a project. Since we have not yet been taught  
about databases, can anyone show me basically how you design and create 
an access database in Visual Basic 6?</description>
			<content:encoded><![CDATA[<div>I am an IT student and working on a project. Since we have not yet been taught <br />
about databases, can anyone show me basically how you design and create<br />
an access database in Visual Basic 6?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>ghost-virus</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235979.html</guid>
		</item>
		<item>
			<title>DLL debugging</title>
			<link>http://www.daniweb.com/forums/thread235964.html</link>
			<pubDate>Wed, 04 Nov 2009 13:03:26 GMT</pubDate>
			<description><![CDATA[Hi, I am having some 'fun' with a VB.Net DLL. I have written and debugged my DLL, built it and copied the .dll file to a separate 'live' folder. Calling applications will reference the DLL in this folder. 
Now, when there is an error in my application the DLL code appears on a new tab. Whilst this...]]></description>
			<content:encoded><![CDATA[<div>Hi, I am having some 'fun' with a VB.Net DLL. I have written and debugged my DLL, built it and copied the .dll file to a separate 'live' folder. Calling applications will reference the DLL in this folder.<br />
Now, when there is an error in my application the DLL code appears on a new tab. Whilst this allows the developer to run through the code which is nice for debugging the application it scares me - will any 'accidental' edits to the DLL code be saved? This would be bad. <br />
I thought this behavious only happened when you used the 'debug' output of building the DLL - I am (I think) using the 'release' version.<br />
All suggestions appreciated!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>WillC9999</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235964.html</guid>
		</item>
		<item>
			<title>CPU Usage</title>
			<link>http://www.daniweb.com/forums/thread235925.html</link>
			<pubDate>Wed, 04 Nov 2009 09:54:54 GMT</pubDate>
			<description>Hi friends, 
 
Can you please help *how to find cpu usage information through net-snmp* using .net application. 
 
Thanks</description>
			<content:encoded><![CDATA[<div>Hi friends,<br />
<br />
Can you please help <span style="font-weight:bold">how to find cpu usage information through net-snmp</span> using .net application.<br />
<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>raghavpraveen</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235925.html</guid>
		</item>
		<item>
			<title>is this right in asp.net also</title>
			<link>http://www.daniweb.com/forums/thread235885.html</link>
			<pubDate>Wed, 04 Nov 2009 07:53:25 GMT</pubDate>
			<description><![CDATA[this is the code in vb.net for searching when a serial number is given from the sqldatabase..................... 
  <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>this is the code in vb.net for searching when a serial number is given from the sqldatabase.....................<br />
 <pre style="margin:20px; line-height:13px">Private Sub s2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles s2.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim a As Integer<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim b As Boolean<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim connection As OleDb.OleDbConnection<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim command As OleDb.OleDbCommand<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim dr As OleDb.OleDbDataReader<br />
&nbsp; &nbsp; &nbsp; &nbsp; connection = New OleDb.OleDbConnection(&quot;provider=Microsoft.Jet.OLEDB.4.0;data source='e:\amit kumar\nic hyd\nichyd.mdb'&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; connection.Open()<br />
&nbsp; &nbsp; &nbsp; &nbsp; command = New OleDb.OleDbCommand(&quot;select *from gate_pass&quot;, connection)<br />
&nbsp; &nbsp; &nbsp; &nbsp; dr = command.ExecuteReader<br />
&nbsp; &nbsp; &nbsp; &nbsp; b = False<br />
&nbsp; &nbsp; &nbsp; &nbsp; If (sno2.Text = &quot;&quot;) Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; b = True<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.Show(&quot;enter the serial number first&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a = Integer.Parse(sno2.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; While dr.Read()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If (a = dr(0)) Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim bytImage() As Byte<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bytImage = CType(dr(9), Byte())<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim ms As New System.IO.MemoryStream(bytImage)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim bmImage As New Bitmap(ms)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Form5.r0.Text = dr(0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Form5.r1.Text = dr(1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Form5.r2.Text = dr(2)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Form5.r3.Text = dr(3)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Form5.r4.Text = dr(4)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Form5.r5.Text = dr(5)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Form5.r6.Text = dr(6)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Form5.r7.Text = dr(7)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Form5.r8.Text = dr(8)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Form5.picout.Image = bmImage<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Form5.picout.Refresh()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; b = True<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dr.Close()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; connection.Close()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.Hide()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Form5.Show()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Exit While<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End While<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Catch ex As FormatException<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.ErrorProvider1.SetError(sno2, &quot;please enter a numeric value&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.Show(&quot;please enter a numeric value&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sno2.Focus()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; b = True<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End Try<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; If (b = False) Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.Show(&quot;No data found matching to this serial number&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; dr.Dispose()<br />
&nbsp; &nbsp; &nbsp; &nbsp; connection.Dispose()<br />
&nbsp; &nbsp; &nbsp; &nbsp; dr.Close()<br />
&nbsp; &nbsp; &nbsp; &nbsp; connection.Close()<br />
&nbsp; &nbsp; &nbsp; &nbsp; sno2.Text = &quot;&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; Me.ErrorProvider1.Clear()<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; End Sub</pre>is this one right in asp.net coding also. if there are any changes plz mention it thanking you</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>mshravs</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235885.html</guid>
		</item>
		<item>
			<title>How to add aHow to add Datetimepicker in datagridview column?</title>
			<link>http://www.daniweb.com/forums/thread235864.html</link>
			<pubDate>Wed, 04 Nov 2009 06:08:52 GMT</pubDate>
			<description>Using VB.Net 
 
I have the Datagridview control, In Datagridview one of the column I want to use Datetimepicker control Inside of the column. 
 
For Example, 
 
Datagridview Control 
 
Column1 column2 column3 column4</description>
			<content:encoded><![CDATA[<div>Using VB.Net<br />
<br />
I have the Datagridview control, In Datagridview one of the column I want to use Datetimepicker control Inside of the column.<br />
<br />
For Example,<br />
<br />
Datagridview Control<br />
<br />
Column1 column2 column3 column4<br />
<br />
             Datetimepicker1 Checkbox<br />
             Datetimepicker1 Checkbox<br />
…..,<br />
<br />
In whole column2 I want to add the datetimepicker1 control<br />
<br />
I gone through the google,<br />
<br />
I got this links<br />
<br />
 <pre style="margin:20px; line-height:13px">http://msdn2.microsoft.com/en-us/library/7tas5c80.aspx</pre>I added the datagridview control in the form, and then I added the above link code in my form. I try to run it showing the error.<br />
<br />
Any other helpful and simple way (links or code) is available for adding the Datetimepicker in Datagridview column.<br />
<br />
Please need vb.net code Help</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>jetjash</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235864.html</guid>
		</item>
		<item>
			<title><![CDATA[VB 2008 & Database Issues]]></title>
			<link>http://www.daniweb.com/forums/thread235836.html</link>
			<pubDate>Wed, 04 Nov 2009 03:28:06 GMT</pubDate>
			<description>Hello everyone!  
 
So as my first post, I would like to say I am in no way unfamiliar with Visual Basic or programming in general, but this Database integration is giving me quite a problem! lol 
 
So basically I have a VB 2008 Project with a single form that displays a list of guitars that I have...</description>
			<content:encoded><![CDATA[<div>Hello everyone! <br />
<br />
So as my first post, I would like to say I am in no way unfamiliar with Visual Basic or programming in general, but this Database integration is giving me quite a problem! lol<br />
<br />
So basically I have a VB 2008 Project with a single form that displays a list of guitars that I have in a SQL Database. I made the Database inside of VB with the &quot;Add Data Connection&quot; option. It should also be known I know very little about SQL in general. The information in the columns is placed in its own text box to be displayed. <br />
<br />
My problem is I can not figure out how to &quot;Add&quot; or &quot;Delete&quot; Records to/from my Database. <br />
<br />
My original plan was to have the Binding Source Navigator work all these functions for me. The Add worked fine (as long as you did not leave any necessary boxes blank), and Delete worked to an extent. I added a simple &quot;Double Check&quot; box that asked if they are sure they wanted to delete the entry. But no matter your answer, it deleted it anyways. So I decided it would be easier to just move the Add and Delete functions to command buttons.<br />
<br />
Problem there is, I have no clue on how to even start. And all my &quot;Googling&quot; can not provide me with an adequate answer. <br />
<br />
I will be happy to get some Code and Pics of the project to simply what I am saying as soon as my VMWare Fusion is updated and working.<br />
<br />
Oh Im a Mac user, did I mention that? :) haha<br />
<br />
Thanks in advance everyone!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>JonnyHawes</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235836.html</guid>
		</item>
		<item>
			<title>code to clear all textboxes in a form</title>
			<link>http://www.daniweb.com/forums/thread235830.html</link>
			<pubDate>Wed, 04 Nov 2009 03:00:44 GMT</pubDate>
			<description><![CDATA[I am trying to find a code to clear all text boxes in a form. I am using VB8 
Here is the code I found but I get an error telling me I need a comma between two arguments 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>I am trying to find a code to clear all text boxes in a form. I am using VB8<br />
Here is the code I found but I get an error telling me I need a comma between two arguments<br />
 <pre style="margin:20px; line-height:13px">Private Sub btnclearall_Click<br />
Dim ctl As New Control<br />
For Each ctl In Me.Controls<br />
Next<br />
If Typeof ctl Is textbox Then<br />
Dim txtcontrol As Textbox = Directcast (ctl.Textbox)<br />
Me.text = StringEmpty</pre>Thanks</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/thread235830.html</guid>
		</item>
		<item>
			<title>Swapping values</title>
			<link>http://www.daniweb.com/forums/thread235785.html</link>
			<pubDate>Tue, 03 Nov 2009 22:23:58 GMT</pubDate>
			<description><![CDATA[Hey guys here is the problem I have two variables that need their values switched , but only if the value stored in the first is less than the value stored in the second. Tried a couple of things, but am at a brick wall, I am a newbie to VB. 
 
  <div class="codeblock"> <div class="spaced"> <div...]]></description>
			<content:encoded><![CDATA[<div>Hey guys here is the problem I have two variables that need their values switched , but only if the value stored in the first is less than the value stored in the second. Tried a couple of things, but am at a brick wall, I am a newbie to VB.<br />
<br />
 <pre style="margin:20px; line-height:13px">Public Class Form1<br />
<br />
&nbsp; &nbsp; Private Sub btnCheck_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCheck.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim getMarySales As Integer<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim getJeffSales As Integer<br />
&nbsp; &nbsp; &nbsp; &nbsp; If getMarySales &lt; getJeffSales Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; getJeffSales = txtGetMarySales.Text<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; getMarySales = txtGetJeffSales.Text<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
<br />
<br />
<br />
<br />
&nbsp; &nbsp; End Sub</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/thread235785.html</guid>
		</item>
		<item>
			<title>How to add strings that contain amounts</title>
			<link>http://www.daniweb.com/forums/thread235739.html</link>
			<pubDate>Tue, 03 Nov 2009 19:15:12 GMT</pubDate>
			<description><![CDATA['Radio Choice Selection 
        Console.WriteLine("Please enter the Radio Choice for your vehicle: ") 
        Console.WriteLine("Enter 1 for AM/FM Radio") 
        Console.WriteLine("Enter 2 for AM/FM/CD/DVD") 
        strRadioChoice = Console.ReadLine() 
        Select Case strRadioChoice 
     ...]]></description>
			<content:encoded><![CDATA[<div> <pre style="margin:20px; line-height:13px">'Radio Choice Selection<br />
&nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Please enter the Radio Choice for your vehicle: &quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Enter 1 for AM/FM Radio&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Enter 2 for AM/FM/CD/DVD&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; strRadioChoice = Console.ReadLine()<br />
&nbsp; &nbsp; &nbsp; &nbsp; Select Case strRadioChoice<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Case &quot;1&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Price : $100&quot;)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Case &quot;2&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Price : $400&quot;)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Case Else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Invalid selection&quot;)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Select<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; SellingPrice = BasePrice + strEngineChoice + strInteriorChoice + strRadioChoice + ShippingCharge + DealerCharge<br />
&nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;The total selling price for your vehicle is $&quot; + SellingPrice)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine()<br />
&nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Press Enter to Exit&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Console.ReadLine()</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>JRabbit2307</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235739.html</guid>
		</item>
		<item>
			<title>Need to convert from string to integer</title>
			<link>http://www.daniweb.com/forums/thread235722.html</link>
			<pubDate>Tue, 03 Nov 2009 18:24:41 GMT</pubDate>
			<description><![CDATA[How would I ask the user to input what type of engine they want and getting an output of $150 
 
Console.WriteLine("Enter EngineChoice for your vehicle:") 
        Response = Console.ReadLine() 
        EngineChoice = Convert.ToString(Response) 
 
        If EngineChoice = Sixcylinder Then 
       ...]]></description>
			<content:encoded><![CDATA[<div>How would I ask the user to input what type of engine they want and getting an output of $150<br />
<br />
 <pre style="margin:20px; line-height:13px">Console.WriteLine(&quot;Enter EngineChoice for your vehicle:&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Response = Console.ReadLine()<br />
&nbsp; &nbsp; &nbsp; &nbsp; EngineChoice = Convert.ToString(Response)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; If EngineChoice = Sixcylinder Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Convert.ToInt32(Response)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(150)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf EngineChoice = Eightcylinder Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(475)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf EngineChoice = Diesel Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(750)</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>JRabbit2307</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235722.html</guid>
		</item>
		<item>
			<title>Keeping spaces when extracting text from HTML</title>
			<link>http://www.daniweb.com/forums/thread235678.html</link>
			<pubDate>Tue, 03 Nov 2009 14:59:25 GMT</pubDate>
			<description><![CDATA[Hi, 
 
When I extract text from HTML i get 2 words that bleed into each other when the text goes to a new line. 
This is the HTML. 
 
<b>Special truck license plates celebrating Virginia's tobacco 
heritage.</b>  Authorizes the issuance of &quot;tobacco heritage&quot; special 
license plates for trucks. ...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
When I extract text from HTML i get 2 words that bleed into each other when the text goes to a new line.<br />
This is the HTML.<br />
<br />
&lt;b&gt;Special truck license plates celebrating Virginia's tobacco<br />
heritage.&lt;/b&gt;  Authorizes the issuance of &amp;quot;tobacco heritage&amp;quot; special<br />
license plates for trucks.  This bill was incorporated into HB 2534.&lt;/p&gt;<br />
<br />
I get the following result when I extract the text.<br />
<br />
Special truck license plates celebrating Virginia's tobaccoheritage.¿ Authorizes the issuance of ;tobacco heritage; speciallicense plates for trucks.¿ This bill was incorporated into HB 2534.<br />
<br />
Can anyone please offer any suggestions.<br />
<br />
Thanks.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>jamesrobb</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235678.html</guid>
		</item>
		<item>
			<title>My VB app looks blocky when I move to a different OS</title>
			<link>http://www.daniweb.com/forums/thread235645.html</link>
			<pubDate>Tue, 03 Nov 2009 12:19:15 GMT</pubDate>
			<description><![CDATA[I've written an app in VB2008 using a Windows Vista laptop. My problem is that when I run the app on my XP desktop, the fonts look a little blurry/blocky. I've attached 2 screenshots (which don't really capture the issue too well unfortunately). 
 
The 'Vista' screenshot is the one I am happy with...]]></description>
			<content:encoded><![CDATA[<div>I've written an app in VB2008 using a Windows Vista laptop. My problem is that when I run the app on my XP desktop, the fonts look a little blurry/blocky. I've attached 2 screenshots (which don't really capture the issue too well unfortunately).<br />
<br />
The 'Vista' screenshot is the one I am happy with - it looks fine on screen. The 'XP' screenshot looks blocky. (If you look at the 'O' in 'OK' you can really see the difference.)<br />
<br />
The font used is Verdana, which I believe is a very common font.<br />
<br />
Any ideas as to what might be causing this?</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=12437&amp;d=1257250658" target="_blank">xp.jpg</a> (9.0 KB)</td> </tr><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=12438&amp;d=1257250673" target="_blank">vista.jpg</a> (9.3 KB)</td> </tr> </table> </fieldset>   </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/thread235645.html</guid>
		</item>
		<item>
			<title>How to select a value in the database</title>
			<link>http://www.daniweb.com/forums/thread235593.html</link>
			<pubDate>Tue, 03 Nov 2009 08:29:50 GMT</pubDate>
			<description><![CDATA[Using VB.NET 
 
I am using Combobox, when i select the value in combobox, the date value should display in datetimepicker where date = combobox id 
 
vb6 code 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Using VB.NET<br />
<br />
I am using Combobox, when i select the value in combobox, the date value should display in datetimepicker where date = combobox id<br />
<br />
vb6 code<br />
<br />
 <pre style="margin:20px; line-height:13px">cmd.CommandText = &quot;select distinct Name from T_Person where personid = '&quot; &amp; txtno &amp; &quot;'&quot;<br />
Set rs = cmd.Execute<br />
While Not rs.EOF<br />
&nbsp;  If Not IsNull(rs(&quot;Name&quot;)) Then<br />
txtName.Text = rs(&quot;Name&quot;)<br />
&nbsp; &nbsp; &nbsp;  rs.MoveNext<br />
&nbsp; &nbsp; End If<br />
Wend</pre><br />
txtno - combobox, txtname = datetimepicker1<br />
<br />
The above code is working in vb6, But am new to vb.net<br />
<br />
How to modify my code in vb.net<br />
<br />
Need vb.net code help</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>jetjash</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235593.html</guid>
		</item>
		<item>
			<title>How to enter a value in datagridview</title>
			<link>http://www.daniweb.com/forums/thread235592.html</link>
			<pubDate>Tue, 03 Nov 2009 08:27:09 GMT</pubDate>
			<description>An new to data grid view, I am having column header like ID Date Intime Outtime 
 
When I open the software Data grid view should display the column header – ID, Date, Intime, Outtime and display blank rows then I want to enter the values in Data grid view itself, the entered values automatically...</description>
			<content:encoded><![CDATA[<div>An new to data grid view, I am having column header like ID Date Intime Outtime<br />
<br />
When I open the software Data grid view should display the column header – ID, Date, Intime, Outtime and display blank rows then I want to enter the values in Data grid view itself, the entered values automatically saved in the table. Suppose I modified the entered values in Data grid view that values also should change in table.<br />
<br />
How to make a code in VB.NET for the above condition?<br />
<br />
And also I am entering the Date and Time value in Data grid view, If entered date and time values is wrong, data grid view cell should not allow wrong date and time values.<br />
<br />
How to make a code for this condition also.<br />
<br />
Need VB.NET code Help</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>jetjash</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235592.html</guid>
		</item>
		<item>
			<title>FTP url in address bar??</title>
			<link>http://www.daniweb.com/forums/thread235543.html</link>
			<pubDate>Tue, 03 Nov 2009 03:40:57 GMT</pubDate>
			<description>I want to run a FTP url in explorer. (Not in IE) 
What i want is some how when the button clicked the URL should appear in the address bar of the windows explorer.  
 
This is because the ftp I access should be accessed in that way (By typing the url in the address bar of..lets say ..mycomputer...</description>
			<content:encoded><![CDATA[<div>I want to run a FTP url in explorer. (Not in IE)<br />
What i want is some how when the button clicked the URL should appear in the address bar of the windows explorer. <br />
<br />
This is because the ftp I access should be accessed in that way (By typing the url in the address bar of..lets say ..mycomputer window.)<br />
<br />
I don't knw whether both do the same thing. But when I do I manually I could access the FTP by typing the URL in address bar in mycomputer(I think it is windows explorer) but not by typing it in the address bar of  IE.<br />
<br />
Please let me knw the way to put an address in the address bar in windows explorer <br />
<br />
thank u.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>jrosh</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235543.html</guid>
		</item>
		<item>
			<title>help with windows form applications</title>
			<link>http://www.daniweb.com/forums/thread235538.html</link>
			<pubDate>Tue, 03 Nov 2009 03:12:24 GMT</pubDate>
			<description>I need to assign code to a button, that when clicked on, validates an ISBN code, and displays a message that it is either Valid or Invalid. I basically need help transforming code used in a console application that will now be used in a windows form application, so no more writeline stuff, now...</description>
			<content:encoded><![CDATA[<div>I need to assign code to a button, that when clicked on, validates an ISBN code, and displays a message that it is either Valid or Invalid. I basically need help transforming code used in a console application that will now be used in a windows form application, so no more writeline stuff, now message boxes.<br />
Here is the code I need help with:<br />
 <pre style="margin:20px; line-height:13px">Select Case ISBN.Length<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Case 10<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim x As Integer = 0<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; noCheck = ISBN.Substring(0, ISBN.Length - 1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x = checkISBN10(ISBN, noCheck)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If x = 11 Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; noCheck += &quot;0&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ElseIf x = 10 Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; noCheck += &quot;X&quot;<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; noCheck += x.ToString<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If (ISBN &lt;&gt; noCheck) Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.Console.WriteLine(&quot;Invalid ISBN - Check digit is &quot; &amp; x)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Case Else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.Console.WriteLine(&quot;Invalid ISBN length&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End Select<br />
<br />
Private Function checkISBN10( _<br />
ByVal ISBN As String, ByVal noCheck As String) As Integer<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim x As Integer = 0<br />
&nbsp; &nbsp; &nbsp; &nbsp; If ISBN.Length = 10 Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x = 10 * Integer.Parse(noCheck.Chars(0))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x += 9 * Integer.Parse(noCheck.Chars(1))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x += 8 * Integer.Parse(noCheck.Chars(2))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x += 7 * Integer.Parse(noCheck.Chars(3))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x += 6 * Integer.Parse(noCheck.Chars(4))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x += 5 * Integer.Parse(noCheck.Chars(5))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x += 4 * Integer.Parse(noCheck.Chars(6))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x += 3 * Integer.Parse(noCheck.Chars(7))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x += 2 * Integer.Parse(noCheck.Chars(8))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x = 11 - (x Mod 11)<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; Return x<br />
&nbsp; &nbsp; End Function</pre><br />
Also, how do I make a connection between a button and textbox. In other words, if a button is clicked on, how do I assign it to read that certain textbox where the information was entered?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>pinkladyxo</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235538.html</guid>
		</item>
		<item>
			<title>Passing a value to Crystal Reports fields</title>
			<link>http://www.daniweb.com/forums/thread235477.html</link>
			<pubDate>Mon, 02 Nov 2009 21:14:24 GMT</pubDate>
			<description><![CDATA[I've asked few similar questions 'til now but here's one more. 
 
Well, I have example of Crystal Report document, in that document I have 3 fields from 2 tables (loaded from my database). What I'm trying to do is to access one of those fields (year field) programmaticly and pass only one...]]></description>
			<content:encoded><![CDATA[<div>I've asked few similar questions 'til now but here's one more.<br />
<br />
Well, I have example of Crystal Report document, in that document I have 3 fields from 2 tables (loaded from my database). What I'm trying to do is to access one of those fields (year field) programmaticly and pass only one value...let's say I only want to show year &quot;2006.&quot;<br />
I've tried different things but nothing works 'til now. Last thing I've tried is this code:<br />
<br />
 <pre style="margin:20px; line-height:13px">Dim report As New Report123<br />
<br />
rep03.Section3.ReportObjects.Item(&quot;Field1&quot;).Name.ToString</pre><br />
So, with this, I can access to the field i want...but I don't know how to set or get any of his value...this code above only gets name of that field, I just put that for an example.<br />
I just want to do next: give user a chance to print different reports for different years, and I want to have some combobox menu...hope someone could help me. thanks</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/thread235477.html</guid>
		</item>
		<item>
			<title>help with the listbox  :(</title>
			<link>http://www.daniweb.com/forums/thread235417.html</link>
			<pubDate>Mon, 02 Nov 2009 17:30:19 GMT</pubDate>
			<description><![CDATA[hey there  
 
i'm new in programing and there is a lot of hard things on me  
 
:( 
 
i want to make a program that take a value of text box and add it to the list box and one button to delete the selected item 
 
i make that  and this is my code]]></description>
			<content:encoded><![CDATA[<div>hey there <br />
<br />
i'm new in programing and there is a lot of hard things on me <br />
<br />
:(<br />
<br />
i want to make a program that take a value of text box and add it to the list box and one button to delete the selected item<br />
<br />
i make that  and this is my code<br />
<br />
 <pre style="margin:20px; line-height:13px"><br />
Public Class Form1<br />
<br />
&nbsp; &nbsp; Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles adbut.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; ListBox1.Items.Add(TextBox1.Text)<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles delbut.Click<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; ListBox1.SelectedItem.Clear()<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 />
<br />
&nbsp; &nbsp; End Sub<br />
End Class</pre><br />
the problem that if the user didn't select an item and press the delete button the program will crush  how can i make the button disable until user select item ?<br />
<br />
i try this code but there is error :<br />
<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; &nbsp;  If ListBox1.SelectedItem = True Then delbut.Enabled = True<br />
&nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; delbut.Enabled = False<br />
&nbsp; &nbsp; &nbsp; &nbsp; ListBox1.SelectedItem.Clear()<br />
end if</pre><br />
<br />
can you plz help ari ??</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>lovely ari</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235417.html</guid>
		</item>
		<item>
			<title>printing documents in vb.net</title>
			<link>http://www.daniweb.com/forums/thread235330.html</link>
			<pubDate>Mon, 02 Nov 2009 11:37:55 GMT</pubDate>
			<description><![CDATA[hi to all, 
 
i want to print the vb.net into a specified printer ,my code is as following 
 
	pdKbill.AllowPrintToFile = True 
        pdKbill.PrinterSettings = New PrinterSettings 
	pdKbill.PrinterSettings.PrinterName = "printername" 
        Me.printKbill = New PrintDocument 
       ...]]></description>
			<content:encoded><![CDATA[<div>hi to all,<br />
<br />
i want to print the vb.net into a specified printer ,my code is as following<br />
<br />
	pdKbill.AllowPrintToFile = True<br />
        pdKbill.PrinterSettings = New PrinterSettings<br />
	pdKbill.PrinterSettings.PrinterName = &quot;printername&quot;<br />
        Me.printKbill = New PrintDocument<br />
        printKbill.PrintController = New StandardPrintController<br />
        Me.printKbill.Print()<br />
<br />
but it always prints in to the system default printer, how can i do this?,anybody can help me..</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>zinu</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235330.html</guid>
		</item>
		<item>
			<title>playbook application</title>
			<link>http://www.daniweb.com/forums/thread235310.html</link>
			<pubDate>Mon, 02 Nov 2009 10:14:04 GMT</pubDate>
			<description><![CDATA[hi guys! 
 
could i please ask for some ideas on my project. I'm trying to do a basketball playbook manager. The application should allow users to create plays for basketball and generate a animation on how the play works. I just would like to ask how could I generate animations in vb.net? Thanks...]]></description>
			<content:encoded><![CDATA[<div>hi guys!<br />
<br />
could i please ask for some ideas on my project. I'm trying to do a basketball playbook manager. The application should allow users to create plays for basketball and generate a animation on how the play works. I just would like to ask how could I generate animations in vb.net? Thanks guys..Any ideas would be of great help</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/thread235310.html</guid>
		</item>
		<item>
			<title>A lot of subs into only one</title>
			<link>http://www.daniweb.com/forums/thread235300.html</link>
			<pubDate>Mon, 02 Nov 2009 09:55:47 GMT</pubDate>
			<description><![CDATA[Hello, 
 
I'm a beginner in Visual Basic and I was wondering if it is possible to shorten twenty subs into only 1 sub. 
 
example: 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
I'm a beginner in Visual Basic and I was wondering if it is possible to shorten twenty subs into only 1 sub.<br />
<br />
example:<br />
 <pre style="margin:20px; line-height:13px">Private Sub box1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles kist1.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim box1Click As Boolean = True<br />
&nbsp; &nbsp; End Sub<br />
<br />
Private Sub box2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles kist1.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim box2Click As Boolean = True<br />
&nbsp; &nbsp; End Sub<br />
<br />
...<br />
<br />
Private Sub box20_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles kist1.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim box20Click As Boolean = True<br />
&nbsp; &nbsp; End Sub</pre><br />
Thank you</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>fulcrum9</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235300.html</guid>
		</item>
		<item>
			<title>How do i deploy my vb program to a cd?</title>
			<link>http://www.daniweb.com/forums/thread235269.html</link>
			<pubDate>Mon, 02 Nov 2009 07:01:29 GMT</pubDate>
			<description>hey every1:) 
my question is how do i go about publishing my program so that it can run right from the cd? do i just publish it to my pc then install it to a blank cd?? a quick run down of the steps or a link to a good tutorial would be much appreciated... thanks in advance for the help.</description>
			<content:encoded><![CDATA[<div>hey every1:)<br />
my question is how do i go about publishing my program so that it can run right from the cd? do i just publish it to my pc then install it to a blank cd?? a quick run down of the steps or a link to a good tutorial would be much appreciated... thanks in advance for the help.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>blackknight469</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235269.html</guid>
		</item>
		<item>
			<title>two times Comparison</title>
			<link>http://www.daniweb.com/forums/thread235134.html</link>
			<pubDate>Sun, 01 Nov 2009 17:42:23 GMT</pubDate>
			<description><![CDATA[Hi, i have three textboxs, system time is in texbox1 , "09:00:00" is in  textbox2  and i want to two times Comparison  in vb.net, textbox3=textbox2 - textbox2, is any solution?]]></description>
			<content:encoded><![CDATA[<div>Hi, i have three textboxs, system time is in texbox1 , &quot;09:00:00&quot; is in  textbox2  and i want to two times Comparison  in vb.net, textbox3=textbox2 - textbox2, is any solution?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>snip</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235134.html</guid>
		</item>
		<item>
			<title>How to save ?</title>
			<link>http://www.daniweb.com/forums/thread235052.html</link>
			<pubDate>Sun, 01 Nov 2009 11:00:26 GMT</pubDate>
			<description>Hi guys , how can i save some texts from textboxes into a word in a listbox so when i will reopen the program i will continue having the save? 
 
Regards, 
xVent.</description>
			<content:encoded><![CDATA[<div>Hi guys , how can i save some texts from textboxes into a word in a listbox so when i will reopen the program i will continue having the save?<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/thread235052.html</guid>
		</item>
		<item>
			<title>Setup project, add project output group</title>
			<link>http://www.daniweb.com/forums/thread235034.html</link>
			<pubDate>Sun, 01 Nov 2009 08:18:53 GMT</pubDate>
			<description><![CDATA[I use Visual Studio 8.0 Enterpice  
I create setup project  
Then I do the following:  
Right mouse click on application folder  
select Add -> Project Output  
"add project output group" shows up empty (see Annex)  
Pull Down by project and configuration option is empty !!! 
what's is wrong or...]]></description>
			<content:encoded><![CDATA[<div>I use Visual Studio 8.0 Enterpice <br />
I create setup project <br />
Then I do the following: <br />
Right mouse click on application folder <br />
select Add -&gt; Project Output <br />
&quot;add project output group&quot; <span style="color:Red">shows up empty </span>(see Annex) <br />
Pull Down by <span style="color:Green">project</span> and <span style="color:green">configuration</span> option is empty !!!<br />
what's is wrong or what have I forgotten?</div>  <br /> <div style="padding:5px">    <fieldset class="fieldset"> <legend>Attached Images</legend> <table cellpadding="0" cellspacing="5" border="0"> <tr> <td><img class="inlineimg" src="http://www.daniweb.com/forums/images/attach/bmp.gif" alt="File Type: bmp" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12404&amp;d=1257063508" target="_blank">error add project output group.bmp</a> (497.6 KB)</td> </tr> </table> </fieldset>   </div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>dre-logics</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235034.html</guid>
		</item>
		<item>
			<title>WPF UserControls reference from VB</title>
			<link>http://www.daniweb.com/forums/thread234964.html</link>
			<pubDate>Sat, 31 Oct 2009 19:58:44 GMT</pubDate>
			<description>Help please... 
I have a WPF window that contains several WPF user controls.  
I am using VB express. 
How can I reference the controls in a UserControl from the main window? 
Thanks</description>
			<content:encoded><![CDATA[<div>Help please...<br />
I have a WPF window that contains several WPF user controls. <br />
I am using VB express.<br />
How can I reference the controls in a UserControl from the main window?<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>hardindp</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234964.html</guid>
		</item>
		<item>
			<title>printing document</title>
			<link>http://www.daniweb.com/forums/thread234933.html</link>
			<pubDate>Sat, 31 Oct 2009 15:11:17 GMT</pubDate>
			<description>hi, 
 
i have 2 documents to print from the same vb.net form. 
i want to print it using 2  printers.how can i set the printer for each one  
without selecting the printer at run time. i want to set it printer1,printer2 and for document1 i want to select printer1, and for document 2 i want to select...</description>
			<content:encoded><![CDATA[<div>hi,<br />
<br />
i have 2 documents to print from the same vb.net form.<br />
i want to print it using 2  printers.how can i set the printer for each one <br />
without selecting the printer at run time. i want to set it printer1,printer2 and for document1 i want to select printer1, and for document 2 i want to select printer2.<br />
<br />
pls help me its an urgent.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>zinu</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234933.html</guid>
		</item>
		<item>
			<title>VB.Net 2005 PrintPreviewDialog Limitations</title>
			<link>http://www.daniweb.com/forums/thread234756.html</link>
			<pubDate>Fri, 30 Oct 2009 19:34:18 GMT</pubDate>
			<description><![CDATA[Hello,  
I am working with VB.net 2005. The PrintPreviewDialog I am working with allows users to preview a document but the Page numbers in the top right had corner limits the user to 999 pages.  I have found a way to change the start page for that control but can't seem to find a way to up that...]]></description>
			<content:encoded><![CDATA[<div>Hello, <br />
I am working with VB.net 2005. The PrintPreviewDialog I am working with allows users to preview a document but the Page numbers in the top right had corner limits the user to 999 pages.  I have found a way to change the start page for that control but can't seem to find a way to up that 999 to 9999.  Is this a limitation of this dialog?  When the user goes directly to print, all pages (1,231 of them) print just fine.  Thanks very much</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>rgerman</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234756.html</guid>
		</item>
		<item>
			<title>visual studio 2008 vb</title>
			<link>http://www.daniweb.com/forums/thread234726.html</link>
			<pubDate>Fri, 30 Oct 2009 16:30:50 GMT</pubDate>
			<description><![CDATA[open and close serial port and making variables, dim statement help. i written the code that show me my serial port 3 is on pc. don't know how to make my variable"theComPort work and declare as string to use in/out of lstbox. can anyone get me on the right track? thanks]]></description>
			<content:encoded><![CDATA[<div>open and close serial port and making variables, dim statement help. i written the code that show me my serial port 3 is on pc. don't know how to make my variable&quot;theComPort work and declare as string to use in/out of lstbox. can anyone get me on the right track? thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>tatetg</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234726.html</guid>
		</item>
		<item>
			<title><![CDATA[Visual Studio 2008 Collaboration & Management]]></title>
			<link>http://www.daniweb.com/forums/thread234643.html</link>
			<pubDate>Fri, 30 Oct 2009 09:36:02 GMT</pubDate>
			<description>I write as a systems administrator and own VS Team 2008 Team Suite.  I would want to learn about the features within the package that allow developers to collaborate with other developers either real-time or otherwise. 
 
Additionally, I would want to learn about the features that would allow me to...</description>
			<content:encoded><![CDATA[<div>I write as a systems administrator and own VS Team 2008 Team Suite.  I would want to learn about the features within the package that allow developers to collaborate with other developers either real-time or otherwise.<br />
<br />
Additionally, I would want to learn about the features that would allow me to assign and monitor the progress of projects.  Much thanks for an informed response.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>mnewsome</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234643.html</guid>
		</item>
		<item>
			<title>Hidden column in ListBox</title>
			<link>http://www.daniweb.com/forums/thread234633.html</link>
			<pubDate>Fri, 30 Oct 2009 08:54:34 GMT</pubDate>
			<description><![CDATA[Ok, this is what I need... 
I select four columns(those are informations about payed fee for each member...so it could have zero or more rows)  from my database (from two different tables), one record as "ID" and other three (i've band them together) as "Rest". 
Then, I've put that column "Rest" as...]]></description>
			<content:encoded><![CDATA[<div>Ok, this is what I need...<br />
I select four columns(those are informations about payed fee for each member...so it could have zero or more rows)  from my database (from two different tables), one record as &quot;ID&quot; and other three (i've band them together) as &quot;Rest&quot;.<br />
Then, I've put that column &quot;Rest&quot; as a DisplayMember for my first ListBox...because I couldn't find a solution to put that &quot;ID&quot; column in the same ListBox, and make it invisible for user (I need &quot;ID&quot; column for accessing those fields about payed fee) I've made another ListBox and set DisplayMember = &quot;ID&quot;. I've put that ListBox on Visible=False and when I select rows from first ListBox &quot;ID&quot; is also changing and on event &quot;SelectedIndexChange&quot; for first ListBox I'm trying to get this &quot;ID&quot;, store it into Integer variable and then put it into another select query that will select only selected pay fee from database...everything of this works fine but when I try to put that data from the last select query (something like this: TextBox3.Text = dataTablePodaci.Rows(0).Item(1) ) to a different textboxes (because there are three columns in select) here comes the problem, suddenly. The thing is that I can't see my real records in the main ListBox anymore...and instead of that for all rows I get: &quot;System.Data.DataRowView&quot;. Yes, and also...everything in the back works ok...when I select each &quot;System.Data.DataRowView&quot; row, I see that my ID is changing and also my select is working fine and values I select are also changing...so everything works instead that first/main Listbox got himself confused somehow.<br />
<br />
Any ideas? Does anyone know if listbox is having some kind of ability to hide column, to put &quot;ID&quot; for each record of something?<br />
I've tried to do this with DataGridView also but I had some problems (with date) so I've tried with ListBox...</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/thread234633.html</guid>
		</item>
		<item>
			<title>automatic year change</title>
			<link>http://www.daniweb.com/forums/thread234628.html</link>
			<pubDate>Fri, 30 Oct 2009 08:31:19 GMT</pubDate>
			<description>i have a problem here. I need to change the year automatically...ie i have given year 2009 in the text box, but it should change along with the change of the year................do anyone know the code for this......if so please help me thnks</description>
			<content:encoded><![CDATA[<div>i have a problem here. I need to change the year automatically...ie i have given year 2009 in the text box, but it should change along with the change of the year................do anyone know the code for this......if so please help me thnks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>mshravs</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234628.html</guid>
		</item>
		<item>
			<title>Create an event handler for a third party library that I use</title>
			<link>http://www.daniweb.com/forums/thread234562.html</link>
			<pubDate>Fri, 30 Oct 2009 02:17:37 GMT</pubDate>
			<description>Hello, 
 
I am developing an application and I use a 3rd party library which is basically Native excel. The problem is that this library does not implement an event which is able to notify me when the value of a cell value changes. Can I do it in my program and how? 
 
(I thought that I could...</description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
I am developing an application and I use a 3rd party library which is basically Native excel. The problem is that this library does not implement an event which is able to notify me when the value of a cell value changes. Can I do it in my program and how?<br />
<br />
(I thought that I could posible do sth like this :<br />
<br />
 <pre style="margin:20px; line-height:13px">while(OLDvalue=NEWvalue)<br />
end while<br />
MsgBox(&quot;The value has changed&quot;)</pre><br />
but this is a very slow procedure so is there a better way or I will have to stick to this)</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>papageorge</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234562.html</guid>
		</item>
		<item>
			<title>How to delete a record from a DB?</title>
			<link>http://www.daniweb.com/forums/thread234553.html</link>
			<pubDate>Fri, 30 Oct 2009 01:44:23 GMT</pubDate>
			<description><![CDATA[Hi!  
I'm a beginner to VB.NET. I'm working on an application which is created using VB.NET 2005 and the DB is created in SQL server 2005. I'm able to delete a record from a table when it is not used in another table as a Foreign Key. 
For eg. If I create a new Customer and saves it in Customer...]]></description>
			<content:encoded><![CDATA[<div>Hi! <br />
I'm a beginner to VB.NET. I'm working on an application which is created using VB.NET 2005 and the DB is created in SQL server 2005. I'm able to delete a record from a table when it is not used in another table as a Foreign Key.<br />
For eg. If I create a new Customer and saves it in Customer Table, i can delete it with out any problems using the following code..<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If .DeleteCancelbutton.Text = &quot;&amp;Delete&quot; Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; deleteDialogResult = MessageBox.Show(&quot;Delete this record?&quot;, &quot;Confirm Delete&quot;, MessageBoxButtons.YesNo, MessageBoxIcon.Question)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If deleteDialogResult = Windows.Forms.DialogResult.Yes Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .CustomerBindingSource.RemoveCurrent()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .CustomerTableAdapter.Update(.ProjectPrototypeV2DataSet.Customer)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .ToolStripStatusLabel1.Text = &quot; Record Deleted&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If</pre><br />
But if i add a SITE to that customer, then try to delete the Customer, It deletes the customer, but does not delete the related SITE.<br />
I tried  setting the foreign key constriants to DELETE  CASCADE, but then I can't load the tables using the Fill method to the Tableadapters... gives an error saying something about too much forign key constraints. currently i'm only having relational constraints.<br />
is there a method which I use to delete a record from a table and delete all the information in other tables that are related to the deleted record?<br />
I was thinking of using a Stored Procedure, but I don't know how to call a Stored procedure in the forms. I'm using TableAdapters and Bindingsource to get data to the froms...<br />
Can any one please help me....<br />
<br />
Ishani</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>Ishaniwp</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234553.html</guid>
		</item>
		<item>
			<title>FlatStyle</title>
			<link>http://www.daniweb.com/forums/thread234529.html</link>
			<pubDate>Thu, 29 Oct 2009 22:17:12 GMT</pubDate>
			<description>Hi I have been trying to flatten the columns header in a Datagrid, the same way as we do it with buttons using .FlatStyle = FlatStyle.Flat but have been unsuccessful. 
If it is possible to do it can someone help me. 
Thank you</description>
			<content:encoded><![CDATA[<div>Hi I have been trying to flatten the columns header in a Datagrid, the same way as we do it with buttons using .FlatStyle = FlatStyle.Flat but have been unsuccessful.<br />
If it is possible to do it can someone help me.<br />
Thank you</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>VIPER5646</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234529.html</guid>
		</item>
		<item>
			<title>Filter record using vb net 2003 through textbox on Datagrid</title>
			<link>http://www.daniweb.com/forums/thread234413.html</link>
			<pubDate>Thu, 29 Oct 2009 12:01:20 GMT</pubDate>
			<description><![CDATA[Hi to everyone! 
 
I am new in programming and I'm making an application that can filter records on datagrid from the user's input in textbox..I tried this code that I also got here.. But I'm getting an error..please help me..thanks in advance.. 
 
ERROR MESSAGE: 
An unhandled exception of type...]]></description>
			<content:encoded><![CDATA[<div>Hi to everyone!<br />
<br />
I am new in programming and I'm making an application that can filter records on datagrid from the user's input in textbox..I tried this code that I also got here.. But I'm getting an error..please help me..thanks in advance..<br />
<br />
ERROR MESSAGE:<br />
An unhandled exception of type 'System.InvalidOperationException' occurred in system.data.dll<br />
<br />
Additional information: Fill: SelectCommand.Connection property has not been initialized.<br />
<br />
<br />
_____________________________________________________<br />
Imports System.Data.OleDb<br />
Imports System.Data<br />
Public Class Form1<br />
    Inherits System.Windows.Forms.Form<br />
<br />
    Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged<br />
        Dim keywords As String = TextBox1.Text<br />
<br />
        Dim con As OleDbConnection = New OleDbConnection(&quot;PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source = C:\addressbook1.mdb&quot;)<br />
        ' Use wildcard   <br />
        Dim cmd As OleDbCommand = New OleDbCommand(&quot;SELECT * FROM tblcontacts WHERE firstname Like '% &quot; &amp; keywords &amp; &quot; %', con &quot;)<br />
        ' or Where Filed1='&quot; &amp; keywords &amp; &quot;'   <br />
        con.Open()<br />
<br />
        Dim myDA As OleDbDataAdapter = New OleDbDataAdapter(cmd)<br />
        Dim myDataSet As DataSet = New DataSet<br />
<br />
        myDA.Fill(myDataSet, &quot;MyTable&quot;)<br />
        DataGridView1.DataSource = myDataSet.Tables(&quot;MyTable&quot;).DefaultView<br />
<br />
    End Sub</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>bluerdanblue08</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234413.html</guid>
		</item>
		<item>
			<title>Query by date</title>
			<link>http://www.daniweb.com/forums/thread234386.html</link>
			<pubDate>Thu, 29 Oct 2009 10:22:03 GMT</pubDate>
			<description>Hi all, 
I have a small problem that i cant figure out. i have a program that i want when a user select a date from a datetimepicker, it filters evrything from the datagridview that are for that date.. 
Hare is the code i have 
 
Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As...</description>
			<content:encoded><![CDATA[<div>Hi all,<br />
I have a small problem that i cant figure out. i have a program that i want when a user select a date from a datetimepicker, it filters evrything from the datagridview that are for that date..<br />
Hare is the code i have<br />
<br />
Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
        Dim oledb As System.Data.OleDb.OleDbConnection<br />
        oledb = New System.Data.OleDb.OleDbConnection()<br />
<br />
        oledb.ConnectionString = &quot;Provider=Microsoft.Jet.OLEDB.4.0;Data Source=CMRS.mdb;Persist Security Info=True&quot;<br />
        oledb.Close()<br />
        oledb.Open()<br />
<br />
        Try<br />
            Dim da As New OleDb.OleDbDataAdapter(&quot;Select * FROM Medical WHERE DateAttended= &quot; &amp; DtDate.Text, oledb)<br />
            Dim ds As New DataSet<br />
            da.Fill(ds)<br />
<br />
            'set filter to view only medical records of certain Student<br />
            medicalFilter(ds.Tables(0).Rows(0)(0))<br />
            oledb.Close()<br />
<br />
        Catch ex As Exception<br />
            MessageBox.Show(ex.Message)<br />
<br />
        End Try<br />
    End Sub<br />
<br />
it returns an error. No data at position 0<br />
<br />
PLEASE help ASAP</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>sackymatt</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234386.html</guid>
		</item>
		<item>
			<title>Need a small help in my login system code</title>
			<link>http://www.daniweb.com/forums/thread234361.html</link>
			<pubDate>Thu, 29 Oct 2009 08:25:16 GMT</pubDate>
			<description><![CDATA[hey every one 
 
happy Halloween ^__^ 
 
i'm trying to make a log in system but i have a small problem 
 
the problem is i want the user name to be not Sensitive to the capital letter and small letter e.x if the user name is ari and password is IT 
 
i can write ari as any way  like : Ari , ARi ,...]]></description>
			<content:encoded><![CDATA[<div>hey every one<br />
<br />
happy Halloween ^__^<br />
<br />
i'm trying to make a log in system but i have a small problem<br />
<br />
the problem is i want the user name to be not Sensitive to the capital letter and small letter e.x if the user name is ari and password is IT<br />
<br />
i can write ari as any way  like : Ari , ARi , ArI  but the password must be it <br />
<br />
here is my code :<br />
<br />
 <pre style="margin:20px; line-height:13px">Public Class Form1<br />
&nbsp; &nbsp; Dim user As String = &quot;ari&quot;<br />
<br />
<br />
<br />
<br />
&nbsp; &nbsp; Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
&nbsp; &nbsp;  <span style="color:Red">&nbsp;  If TextBox1.Text = user And TextBox2.Text = &quot;IT&quot; Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.Show(&quot;ok&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Else<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.Show(&quot;wrong password&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
</span><br />
<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br />
<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Private Sub TextBox2_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox2.TextChanged<br />
<br />
&nbsp; &nbsp; End Sub<br />
End Class</pre><br />
<br />
thanks ...ari~</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>lovely ari</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234361.html</guid>
		</item>
		<item>
			<title>code for saving data along with image in sql server</title>
			<link>http://www.daniweb.com/forums/thread234336.html</link>
			<pubDate>Thu, 29 Oct 2009 06:59:32 GMT</pubDate>
			<description><![CDATA[hey, 
I'm working on a project, where I need to save data along with the image in Sql server, using Vb 2005. i just need the code for the above one. 
please post asap need it urgently.]]></description>
			<content:encoded><![CDATA[<div>hey,<br />
I'm working on a project, where I need to save data along with the image in Sql server, using Vb 2005. i just need the code for the above one.<br />
please post asap need it urgently.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>mshravs</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234336.html</guid>
		</item>
		<item>
			<title>Math concerning Arrays and Ubound.. coding now!</title>
			<link>http://www.daniweb.com/forums/thread234292.html</link>
			<pubDate>Thu, 29 Oct 2009 04:19:12 GMT</pubDate>
			<description>Alright.. i figured out mostly everything but my math is still screwing me up. I need to accumulate running totals for number of checks and number of deposits ;and total value of checks and total value of deposits. Im supposed to do this by looping through my arrays and this is what I have so far:...</description>
			<content:encoded><![CDATA[<div>Alright.. i figured out mostly everything but my math is still screwing me up. I need to accumulate running totals for number of checks and number of deposits ;and total value of checks and total value of deposits. Im supposed to do this by looping through my arrays and this is what I have so far:<br />
<br />
Private Sub LoadArrayElements()<br />
<br />
strTransDate(UBound(strTransDate)) = dtpTransDate.ToString<br />
objCheckNum(UBound(objCheckNum)) = txtCheck.Text<br />
strPayee(UBound(strPayee)) = txtPayee.Text<br />
strPurpose(UBound(strPurpose)) = txtPurpose.Text<br />
End Sub<br />
<br />
<br />
Call LoadArrayElements()<br />
'*Redim arrays to add new element<br />
ReDim Preserve strTransDate(UBound(strTransDate) + 1)<br />
ReDim Preserve objCheckNum(UBound(objCheckNum) + 1)<br />
ReDim Preserve strPayee(UBound(strPayee) + 1)<br />
ReDim Preserve strPurpose(UBound(strPurpose) + 1)<br />
ReDim Preserve intAmount(UBound(intAmount) + 1)<br />
<br />
sglAmount = Convert.ToSingle(txtAmount.Text)<br />
<br />
'* Accumulate transaction count<br />
ReDim Preserve intItemCount(UBound(intItemCount) + 1)<br />
intItemCount(UBound(intItemCount)) = 1<br />
<br />
'* Perform calculations<br />
If radDeposit.Checked = True Then '* Transaction is a deposit<br />
'* Accumulate totals<br />
sglBalance += txtAmount.Text<br />
<br />
Dim x As Integer = 0, i As Integer = 0<br />
For i = 0 To intDepositAmount.GetUpperBound(0)<br />
sglDepositAmount += intDepositAmount(i)<br />
Next<br />
<br />
<br />
Else '* Transaction is a check<br />
'* Accumulate totals<br />
sglBalance -= txtAmount.Text<br />
<br />
Dim x As Integer = 0, i As Integer = 0<br />
For i = 0 To intDepositAmount.GetUpperBound(0)<br />
sglCheckAmount += intCheckAmount(i)<br />
Next<br />
<br />
End If '* End of transaction type test<br />
'*<br />
'* Display accumulated totals<br />
'*<br />
'* Overall totals<br />
lblBalance.Text = FormatNumber(sglBalance, 2)<br />
lblNumOfItems.Text = intItemCount.Length<br />
'* Check totals<br />
lblValueOfChecks.Text = FormatNumber(sglCheckAmount, 2)<br />
lblNumOfChecks.Text = intCheckAmount.Length<br />
'* Deposit totals<br />
lblValueOfDeposits.Text = FormatNumber(sglDepositAmount, 2)<br />
lblNumOfDeposits.Text = intDepositAmount.Length<br />
'* Transfer input values to display labels<br />
If radDeposit.Checked = True Then<br />
lblType.Text = &quot;Deposit&quot;<br />
Else<br />
lblType.Text = &quot;Check&quot;<br />
End If<br />
lblTransDate.Text = dtpTransDate.Text<br />
lblCheckNum.Text = txtCheck.Text<br />
lblPayee.Text = txtPayee.Text<br />
lblPurpose.Text = txtPurpose.Text<br />
lblAmount.Text = FormatNumber(sglAmount, 2)<br />
'* Reset input controls<br />
'* Leaves transaction date at last value<br />
radCheck.Checked = False<br />
radDeposit.Checked = False<br />
txtCheck.Text = &quot;&quot;<br />
txtPayee.Text = &quot;&quot;<br />
txtPurpose.Text = &quot;&quot;<br />
txtAmount.Text = &quot;&quot;<br />
'* Notify user of success<br />
lblHelp.Text = &quot;Transaction processed successfully&quot;<br />
End If '* End of processing for valid entries<br />
<br />
<br />
My balance always comes out right and so does total number of items.. but my running totals for the checks and deposits come out to zero.. Please someone help! =) Thank you!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>bcohenllc</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234292.html</guid>
		</item>
		<item>
			<title>About VB.Net ?</title>
			<link>http://www.daniweb.com/forums/thread234252.html</link>
			<pubDate>Thu, 29 Oct 2009 01:30:24 GMT</pubDate>
			<description><![CDATA[I'm a beginner to IT education.So, I wan't to know major differences between VB.NET and Visual Basic 6. What're the new features? Are they same?]]></description>
			<content:encoded><![CDATA[<div>I'm a beginner to IT education.So, I wan't to know major differences between VB.NET and Visual Basic 6. What're the new features? Are they same?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>HarshaDhanushka</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234252.html</guid>
		</item>
		<item>
			<title><![CDATA[problem, two asp buttons are working as one, don't want that]]></title>
			<link>http://www.daniweb.com/forums/thread234231.html</link>
			<pubDate>Wed, 28 Oct 2009 23:50:21 GMT</pubDate>
			<description><![CDATA[I've got one form in a masterpage en here i've got one asp:button with a submit function that sends data to my mail for now. And then I made a contactform in a contentpage with a asp:button.Herefore is a second submitbutton. All code behind vb.net(the function) 
 
Problem: when i click on the...]]></description>
			<content:encoded><![CDATA[<div>I've got one form in a masterpage en here i've got one asp:button with a submit function that sends data to my mail for now. And then I made a contactform in a contentpage with a asp:button.Herefore is a second submitbutton. All code behind vb.net(the function)<br />
<br />
Problem: when i click on the submitbutton of my contactform, the submitbutton from my masterpage will respond as well. They work as one. I don't want that. They must have there own function. How can i solve this? When I click one of them, the button must only do the things, the validations, it must do for that part. This is my masterpage aspx:<br />
 <pre style="margin:20px; line-height:13px">&lt;asp:Panel ID=&quot;Panel1&quot; runat=&quot;server&quot; Width=&quot;100%&quot; DefaultButton=&quot;btnSubmit&quot;&gt;<br />
&lt;div id=&quot;main&quot;&gt;<br />
&lt;form runat=&quot;server&quot; defaultbutton=&quot;btnSubmit&quot;&gt;<br />
<br />
&nbsp; &nbsp; &lt;table&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td align=&quot;left&quot; valign=&quot;top&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;leftContainer&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;newsLetter&quot;&gt;&lt;span class=&quot;kopLeftMenu&quot;&gt;NIEUWSBRIEF&lt;/span&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;mainMailing&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:TextBox ID=&quot;tbMailing&quot; runat=&quot;server&quot; Text=&quot;&lt;enter email-address here...&gt;&quot; Width=&quot;200px&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:Label id=&quot;labelSucces&quot; runat=&quot;server&quot; Visible=&quot;false&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:ValidationSummary ID=&quot;valsumMail&quot; runat=&quot;server&quot; DisplayMode=&quot;SingleParagraph&quot; /&gt;&lt;/span&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;&nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div style=&quot;float:right; margin-right: 15px; padding-top: 6px;&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:Button ID=&quot;btnSubmit&quot; runat=&quot;server&quot; Text=&quot;Verzenden&quot; TabIndex=&quot;1&quot;/&gt;&lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td align=&quot;left&quot; valign=&quot;top&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:ContentPlaceHolder id=&quot;ContentPlaceHolder1&quot; runat=&quot;server&quot;&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/asp:ContentPlaceHolder&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &lt;/table&gt;</pre><br />
here my contactform aspx:<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 />  &lt;asp:Content ID=&quot;Content1&quot; ContentPlaceHolderID=&quot;head&quot; Runat=&quot;Server&quot; DefaultButton=&quot;btnSubmit2&quot;&gt;<br />
&lt;/asp:Content&gt;<br />
&lt;asp:Content ID=&quot;Content2&quot; ContentPlaceHolderID=&quot;ContentPlaceHolder1&quot; Runat=&quot;Server&quot;&gt;<br />
    &lt;asp:Panel ID=&quot;Panel1&quot; runat=&quot;server&quot; Width=&quot;100%&quot; DefaultButton=&quot;btnSubmit2&quot;&gt;<br />
&lt;div id=&quot;inhoud&quot;&gt;<br />
    &lt;table&gt;<br />
        &lt;tr&gt;<br />
            &lt;td&gt;<br />
                &lt;div&gt;<br />
                    &lt;div&gt;&lt;/div&gt; <br />
                    &lt;div style=&quot;padding-top: 3px;&quot;&gt;&lt;asp:Label AssociatedControlID=&quot;name&quot; runat=&quot;server&quot;&gt;Naam&lt;/asp:Label&gt;&lt;/div&gt;                        <br />
                    &lt;div style=&quot;padding-top: 12px;&quot;&gt;&lt;asp:Label AssociatedControlID=&quot;email&quot; runat=&quot;server&quot;&gt;E-mailadres&lt;/asp:Label&gt;&lt;/div&gt;<br />
                    &lt;div style=&quot;padding-top: 67px;&quot;&gt;&lt;asp:Label AssociatedControlID=&quot;description&quot; runat=&quot;server&quot;&gt;Boodschap&lt;/asp:Label&gt;&lt;/div&gt;<br />
                &lt;/div&gt;<br />
            &lt;/td&gt;<br />
            &lt;td&gt;<br />
                &lt;div&gt;<br />
                    &lt;asp:RadioButtonList ID=&quot;tbTitleDhrMevr&quot; runat=&quot;server&quot; RepeatDirection=&quot;Horizontal&quot;&gt;<br />
                        &lt;asp:ListItem&gt;Dhr.&lt;/asp:ListItem&gt;<br />
                        &lt;asp:ListItem&gt;Mevr.&lt;/asp:ListItem&gt;<br />
                    &lt;/asp:RadioButtonList&gt;<br />
                &lt;/div&gt;  <br />
                &lt;div&gt;<br />
                    &lt;asp:TextBox id=&quot;name&quot; runat=&quot;server&quot; /&gt;<br />
&lt;/div&gt;<br />
                &lt;div style=&quot;padding-top: 1px;&quot;&gt;<br />
                    &lt;asp:TextBox id=&quot;email&quot; runat=&quot;server&quot; /&gt;<br />
                &lt;/div&gt;<br />
                &lt;div style=&quot;padding-top: 1px;&quot;&gt;<br />
                    &lt;asp:TextBox id=&quot;description&quot; runat=&quot;server&quot; Height=&quot;100px&quot; Width=&quot;250px&quot; TextMode=&quot;MultiLine&quot; /&gt;<br />
                &lt;/div&gt;<br />
            &lt;/td&gt;<br />
        &lt;/tr&gt;<br />
    &lt;/table&gt;<br />
                &lt;div style=&quot;float:right;&quot;&gt;&lt;asp:Button ID=&quot;btnSubmit2&quot; runat=&quot;server&quot; Text=&quot;Verzenden&quot; TabIndex=&quot;2&quot; /&gt;&lt;/div&gt;<br />
                &lt;div&gt;&lt;asp:Label id=&quot;labelSucces&quot; runat=&quot;server&quot; Visible=&quot;false&quot;&gt;&lt;/asp:Label&gt;&lt;/div&gt;<br />
                &lt;div&gt;&lt;span&gt;&lt;asp:ValidationSummary ID=&quot;valsumName&quot; runat=&quot;server&quot; DisplayMode=&quot;BulletList&quot; /&gt;&lt;/span&gt;&lt;/div&gt;  <hr /> </td> </tr> </table> </div>the code for my submitbutton is written in code behind, like this:<br />
Protected Sub btnSubmit2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit2.Click<br />
'... code<br />
end Sub<br />
<br />
PLEASE HELP ME OUT OF THIS</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>RC1007</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234231.html</guid>
		</item>
		<item>
			<title>Need help taking numbers from inputbox to textbox</title>
			<link>http://www.daniweb.com/forums/thread234203.html</link>
			<pubDate>Wed, 28 Oct 2009 21:30:58 GMT</pubDate>
			<description>I am trying to write a program that is a statistical calculator. The way i have it set up is that you press the enter data button and it asks you how many numbers you want entered by inputbox then it proceeds to take the numbers one by one by inputbox. The problem i am having is that i dont know...</description>
			<content:encoded><![CDATA[<div>I am trying to write a program that is a statistical calculator. The way i have it set up is that you press the enter data button and it asks you how many numbers you want entered by inputbox then it proceeds to take the numbers one by one by inputbox. The problem i am having is that i dont know how to take these numbers and then have then printed in the &quot;input&quot; textbox. I have attached a pic of my program to give you some idea of what im talking about.<br />
<br />
 <pre style="margin:20px; line-height:13px">Dim N As Integer<br />
Dim i As Integer<br />
N = InputBox(&quot;How many numbers need entered:&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; For i = 1 To N<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; number(i) = InputBox(&quot;Enter number&quot; &amp; i &amp; &quot;:&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Next</pre><br />
i have no idea what to do...</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=12342&amp;d=1256765309" target="_blank">s calculator.jpg</a> (21.8 KB)</td> </tr> </table> </fieldset>   </div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>ckenned8</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234203.html</guid>
		</item>
		<item>
			<title>Problem in writing to a file using StreamWriter</title>
			<link>http://www.daniweb.com/forums/thread234179.html</link>
			<pubDate>Wed, 28 Oct 2009 18:39:54 GMT</pubDate>
			<description>---Quote--- 
Hi; 
I have developed a MCQ based learning game. A user has to play the game repeatedly to improve his learning. For each session of game, player gets score. I want to write the score in a single file for every session. e.g. I want to print user name and his score for first game in...</description>
			<content:encoded><![CDATA[<div><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 />  Hi;<br />
I have developed a MCQ based learning game. A user has to play the game repeatedly to improve his learning. For each session of game, player gets score. I want to write the score in a single file for every session. e.g. I want to print user name and his score for first game in first line of file and for 2nd game in second line and so on. <br />
At the moment, every time a new session is played it overrides the earlier line. I need some help with the  below code.  <hr /> </td> </tr> </table> </div> <pre style="margin:20px; line-height:13px">Dim fs As New FileStream(&quot;file1.doc&quot;, FileMode.Create, FileAccess.Write)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim s As New StreamWriter(fs)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  s.BaseStream.Seek(0, SeekOrigin.End)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; s.WriteLine(namebox.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; s.WriteLine(scorebox.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; s.Close()</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>Learning78</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234179.html</guid>
		</item>
		<item>
			<title>Insert From One DataSet To Another</title>
			<link>http://www.daniweb.com/forums/thread234126.html</link>
			<pubDate>Wed, 28 Oct 2009 15:38:04 GMT</pubDate>
			<description>In VS2008 Is there a way to run an insert query against 2 different DataSources.  I have a source that I would like to select about 10 fields from and insert into a different source. 
Example .. 
DS1 select 10 fields of data  
DS2 Insert those 10 fields of data from DS1</description>
			<content:encoded><![CDATA[<div>In VS2008 Is there a way to run an insert query against 2 different DataSources.  I have a source that I would like to select about 10 fields from and insert into a different source.<br />
Example ..<br />
DS1 select 10 fields of data <br />
DS2 Insert those 10 fields of data from DS1</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>RRD</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234126.html</guid>
		</item>
		<item>
			<title><![CDATA[[HELP] sending n receiving several picture using socket programming]]></title>
			<link>http://www.daniweb.com/forums/thread234121.html</link>
			<pubDate>Wed, 28 Oct 2009 15:12:41 GMT</pubDate>
			<description><![CDATA[*Sending Parts:* 
  <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><span style="font-weight:bold">Sending Parts:</span><br />
 <pre style="margin:20px; line-height:13px">For var = i To x<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim PACKET_SIZE As UInt16 = 4096<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim ByteArray() As Byte ' Data buffer<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; filestream = New FileStream(at(z), FileMode.Open, FileAccess.Read)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Reader = New BinaryReader(filestream)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Writer = New BinaryWriter(clientSocke.GetStream) ' Get socket's stream<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'send size of file<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Writer.Write(CInt(filestream.Length))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'Send the file data<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Do<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'read data from file<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ByteArray = Reader.ReadBytes(PACKET_SIZE)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'write data to Network Stream<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Writer.Write(ByteArray)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Loop While ByteArray.Length = PACKET_SIZE<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'make sure all data is sent<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Writer.Flush()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; z = z + 3<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Next</pre><br />
NOTE : at(z) ---&gt; arrayteks that's save filepath<br />
<br />
<span style="font-weight:bold">Receiving Parts:</span><br />
 <pre style="margin:20px; line-height:13px">For var = i To x<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim PACKET_SIZE As UInt16 = 4096<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim Reader As BinaryReader<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim ReadBuffer(PACKET_SIZE - 1) As Byte<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim NData As Int32<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim MStream As MemoryStream<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim LData As Int32<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Reader = New BinaryReader(clientSocket.GetStream)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ' Read Length of data (Int32)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NData = Reader.ReadInt32<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MsgBox(NData.ToString)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ' Now comes the data, save it in a memory stream<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MStream = New MemoryStream<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; While NData &gt; 0<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LData = clientSocket.GetStream.Read(ReadBuffer, 0, PACKET_SIZE)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MStream.Write(ReadBuffer, 0, LData)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NData -= LData<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; probar += 1<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BackgroundWorker1.ReportProgress(probar)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Threading.Thread.Sleep(100)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End While<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; probar = 100<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BackgroundWorker1.ReportProgress(probar)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Threading.Thread.Sleep(100)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SaveFile(arrayTeks(z), MStream.ToArray, False) 'Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; z = z + 3<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; probar = 0<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BackgroundWorker1.ReportProgress(probar)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Next</pre><br />
NOTE: arrayteks(z) ----&gt; file path that I use to save received picture file<br />
<br />
problem :<br />
I successfully received the 1st picture file, but, when it comes the 2nd picture mu program start to have an infinite loops...<br />
<br />
any Idea ???<br />
<br />
thanks before...</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/thread234121.html</guid>
		</item>
		<item>
			<title>Can Somebody Fix my Code ( Filter Listview )</title>
			<link>http://www.daniweb.com/forums/thread234116.html</link>
			<pubDate>Wed, 28 Oct 2009 13:57:55 GMT</pubDate>
			<description><![CDATA[I create a filter to search a text from listview 
but it show a error message Like this 
 
{"Index and length must refer to a location within the string. Parameter name: length"} 
 
HERE IS MY CODE 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>I create a filter to search a text from listview<br />
but it show a error message Like this<br />
<br />
{&quot;Index and length must refer to a location within the string. Parameter name: length&quot;}<br />
<br />
HERE IS MY CODE<br />
<br />
 <pre style="margin:20px; line-height:13px">Public Class Form1<br />
<br />
&nbsp; &nbsp; Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged<br />
&nbsp; &nbsp; &nbsp; &nbsp; ListView1.SelectedItems.Clear()<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; For ix As Integer = 0 To ListView1.Items.Count - 1<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim ls As String = ListView1.Items(ix).Text<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If String.Compare(ls.Substring(0, TextBox1.Text.Length), TextBox1.Text, True) = 0 Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListView1.Items(ix).Selected = True<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListView1.Items(ix).EnsureVisible()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Exit For<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; Next ix<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load<br />
&nbsp; &nbsp; &nbsp; &nbsp; With ListView1<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .Columns.Add(&quot;Abadaba&quot;, 70)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .View = View.Details<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .HideSelection = False<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .Items.Add(&quot;ABC&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .Items.Add(&quot;ABD&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .Items.Add(&quot;ACD&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .Items.Add(&quot;BCD&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .Items.Add(&quot;BDE&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .Items.Add(&quot;TEST01&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .Items.Add(&quot;TEST02&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .Items.Add(&quot;TEST03&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; End With<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>soeppp</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234116.html</guid>
		</item>
		<item>
			<title>How to print the whole form using printform</title>
			<link>http://www.daniweb.com/forums/thread234065.html</link>
			<pubDate>Wed, 28 Oct 2009 06:51:49 GMT</pubDate>
			<description><![CDATA[Please help me on this. 
Printform of the visual powerpack 3.0 cant print the whole content of the form. I used scrollable form in order to have a content equal to a 8""x11" paper. when i preint using printform with scrollble option, i found out that it can only print the scrollable form equal to...]]></description>
			<content:encoded><![CDATA[<div>Please help me on this.<br />
Printform of the visual powerpack 3.0 cant print the whole content of the form. I used scrollable form in order to have a content equal to a 8&quot;&quot;x11&quot; paper. when i preint using printform with scrollble option, i found out that it can only print the scrollable form equal to the screen resolution. in short you cant print the whole form if your scrollable form is bigger than the screen resolution.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>alan_2k9</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234065.html</guid>
		</item>
		<item>
			<title>streaming video through modem to modem...</title>
			<link>http://www.daniweb.com/forums/thread233978.html</link>
			<pubDate>Tue, 27 Oct 2009 23:09:21 GMT</pubDate>
			<description><![CDATA[Hi... 
 
Can anyone tell me (from scratch as I've not done this before) how I can stream live through modem-to-modem connection. The modem here refers to dial-up modem (PSTN modem), there is no internet/lan involved. 
 
It will be 2 programs, the first is to transmit real-time video from webcam,...]]></description>
			<content:encoded><![CDATA[<div>Hi...<br />
<br />
Can anyone tell me (from scratch as I've not done this before) how I can stream live through modem-to-modem connection. The modem here refers to dial-up modem (PSTN modem), there is no internet/lan involved.<br />
<br />
It will be 2 programs, the first is to transmit real-time video from webcam, and the second is to remote video from the first.<br />
<br />
Sorry for bad english..i'm from indonesia instead:icon_redface:</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>dwiest</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233978.html</guid>
		</item>
		<item>
			<title>Change value in datagridview or datatable</title>
			<link>http://www.daniweb.com/forums/thread233888.html</link>
			<pubDate>Tue, 27 Oct 2009 14:36:33 GMT</pubDate>
			<description><![CDATA[I'm selecting value from my database, passing it to datatable then giving DataGridView.DataSource value of datatable. 
The thing is that in those rows i'm also selecting some dates and problem is that my default date in database is '1900-01-01 00:00:00' because i use "smalldatetime".  
And what i...]]></description>
			<content:encoded><![CDATA[<div>I'm selecting value from my database, passing it to datatable then giving DataGridView.DataSource value of datatable.<br />
The thing is that in those rows i'm also selecting some dates and problem is that my default date in database is '1900-01-01 00:00:00' because i use &quot;smalldatetime&quot;. <br />
And what i want is this...when I find default value in database i want to show it like an empty string, like i said...because date is in smalldatetime format i can't do this in SQL query so i wonder how can I change this in DataTable or even better in DataGridView...of course, in code? Thanks...</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/thread233888.html</guid>
		</item>
		<item>
			<title>trim cells in Excel</title>
			<link>http://www.daniweb.com/forums/thread233886.html</link>
			<pubDate>Tue, 27 Oct 2009 14:35:47 GMT</pubDate>
			<description><![CDATA[I have  a spreadsheet that I need to trim 3 columns.  I have scoured the net but can't find anything that I've been able to use to trim each cell in columns A, H and I.  Any help is appreciated. 
I am using Excel 2003 and VS2005.]]></description>
			<content:encoded><![CDATA[<div>I have  a spreadsheet that I need to trim 3 columns.  I have scoured the net but can't find anything that I've been able to use to trim each cell in columns A, H and I.  Any help is appreciated.<br />
I am using Excel 2003 and VS2005.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>juster21</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233886.html</guid>
		</item>
		<item>
			<title>how to do this</title>
			<link>http://www.daniweb.com/forums/thread233862.html</link>
			<pubDate>Tue, 27 Oct 2009 13:03:49 GMT</pubDate>
			<description>. Create an application that will predict the approximate size of a population organisms. The user should select or enter the starting number of organisms in a combo box, enter the average daily population increase (as a percentage) in a text box and select or enter the number of days the organisms...</description>
			<content:encoded><![CDATA[<div>. Create an application that will predict the approximate size of a population organisms. The user should select or enter the starting number of organisms in a combo box, enter the average daily population increase (as a percentage) in a text box and select or enter the number of days the organisms will be left to multiply in another combo box. For example, assume the user enters the following values:<br />
<br />
Starting number of organisms:        2<br />
Average daily increase:            30%<br />
Number of days to multiply        10<br />
<br />
The application should display th following table of data.<br />
Day             Approximate Population<br />
1    2<br />
2    2.6<br />
(table should list values up to 10 days)<br />
<br />
Be sure to add appropriate ToolTips for each control on the form.<br />
Input validation:  Do not accept a number less than 2 for the starting size of the population. Do not accept a negative number for the average daily population increase. Do not accept a number less than 1 for the number of days the organisms will multiply.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>samira1993</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233862.html</guid>
		</item>
		<item>
			<title>Loading user input into parralell arrays, Please help!</title>
			<link>http://www.daniweb.com/forums/thread233860.html</link>
			<pubDate>Tue, 27 Oct 2009 13:01:56 GMT</pubDate>
			<description><![CDATA[Ive been working on a checkbook application for my visual basic class and I'm a little stumped.. 
 
To preface, the values I need to mess with include: 
 
transaction type (checking or deposit) 
DTP 
check number ("dep" if deposit) 
payee (who check is for) 
purpose of check/deposit 
amount of...]]></description>
			<content:encoded><![CDATA[<div>Ive been working on a checkbook application for my visual basic class and I'm a little stumped..<br />
<br />
To preface, the values I need to mess with include:<br />
<br />
transaction type (checking or deposit)<br />
DTP<br />
check number (&quot;dep&quot; if deposit)<br />
payee (who check is for)<br />
purpose of check/deposit<br />
amount of check/deposit<br />
user defined beginning account balance<br />
<br />
Below is the Change I need to make to my program...<br />
<br />
&quot;You will create a set of either collections or arrays (your choice but use just one or the other--don't mix them) scoped at the form/module level.  These structures will store all of the input data needed for your checkbook transactions except for the running balance which will continue to be stored in a single module-scoped variable.  That is, every input that users made in Assignment 3 will be stored in one of these arrays but you will not store any calculated values.  You will not store the transaction type but will store &quot;Dep&quot; or a number in the check number array which will also indicate the transaction type.  The Record button will add the current sale's data to these structures using either ReDim for the arrays or an appropriate technique for the collections.  (You must ReDim your arrays so that the have just enough space for the data that is in them.  Declaring the arrays with a large size with no facility to resize them is not allowed.  Don't forget to use the ReDim Preserve syntax to retain the existing array contents when you resize them.)&quot;<br />
<br />
I don't know if I make a single array for all the values or if I create a separate one for each. If its a separate one for each I don't understand why an array is needed.<br />
<br />
Thank you in advance!!!!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>bcohenllc</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233860.html</guid>
		</item>
		<item>
			<title>Strange Behavior With DataGridview Control...</title>
			<link>http://www.daniweb.com/forums/thread233800.html</link>
			<pubDate>Tue, 27 Oct 2009 10:02:50 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I am having a strange problem in the attached project... I will be very grateful if you people help me. 
 
In the attached project when I load the files in datatable and then try to add images without using the "Dispose" method the datagridview does not showing it correctly and when I load...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I am having a strange problem in the attached project... I will be very grateful if you people help me.<br />
<br />
In the attached project when I load the files in datatable and then try to add images without using the &quot;Dispose&quot; method the datagridview does not showing it correctly and when I load images with &quot;Dispose&quot; method then everything is showing correctly but the files are being lock and i am unable rename them...<br />
<br />
Hope i explain the problem correctly... <br />
<br />
Thanks in advance for your help.</div>  <br /> <div style="padding:5px">     <fieldset class="fieldset"> <legend>Attached Files</legend> <table cellpadding="0" cellspacing="5" border="0"> <tr> <td><img class="inlineimg" src="http://www.daniweb.com/forums/images/attach/zip.gif" alt="File Type: zip" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12320&amp;d=1256637667">ImgTest.zip</a> (151.1 KB)</td> </tr> </table> </fieldset>  </div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>ashi2</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233800.html</guid>
		</item>
		<item>
			<title>GridView Add row</title>
			<link>http://www.daniweb.com/forums/thread233766.html</link>
			<pubDate>Tue, 27 Oct 2009 08:00:36 GMT</pubDate>
			<description><![CDATA[I have bind the DataGridview with DB. To add the data from textboxes to DataGrid, I use the foll. code- 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox"...]]></description>
			<content:encoded><![CDATA[<div>I have bind the DataGridview with DB. To add the data from textboxes to DataGrid, I use the foll. code-<br />
<br />
 <pre style="margin:20px; line-height:13px"> Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; Try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim row0 As String() = {TextBox1.Text, TextBox2.Text, TextBox3.Text}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DataGridView1.Rows.Add(row0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; row0 = Nothing<br />
&nbsp; &nbsp; &nbsp; &nbsp; Catch ex As Exception<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MsgBox(ex.Message)<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Try<br />
&nbsp; &nbsp; End Sub</pre><br />
<br />
<br />
<br />
Error is coming<br />
Rows cannot be programmatically added to the DataGridView's rows collection when the control is data-bound<br />
<br />
there is no any way to add data to the Gridview if we bound it to the Database.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>mansi sharma</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233766.html</guid>
		</item>
		<item>
			<title>Taxable Income</title>
			<link>http://www.daniweb.com/forums/thread233753.html</link>
			<pubDate>Tue, 27 Oct 2009 06:46:36 GMT</pubDate>
			<description>Am I on the right track? 
 
Problem: Compute the income tax due on a taxable income entered by the user, given the data as shown on the following table: 
 
Taxable Income                         Tax Due 
From               To                             
$0                  $50,000               $0...</description>
			<content:encoded><![CDATA[<div>Am I on the right track?<br />
<br />
Problem: Compute the income tax due on a taxable income entered by the user, given the data as shown on the following table:<br />
<br />
Taxable Income                         Tax Due<br />
From               To                            <br />
$0                  $50,000               $0 + 5% of amount over $0<br />
$50,000          $100,000              $2,500 + 7% of amount over $50,000<br />
$100,000        ...                        $6,000 + 9% of amount over $100,000<br />
<br />
 <pre style="margin:20px; line-height:13px">Public Class TaxableIncome1<br />
<br />
&nbsp; &nbsp; Private Sub btnCalculateIncomeTax_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculateIncomeTax.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim TaxableIncome As Decimal<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim TaxDue As Decimal<br />
&nbsp; &nbsp; &nbsp; &nbsp; TaxableIncome = Convert.ToDecimal(txtTaxableIncome.Text)<br />
&nbsp; &nbsp; &nbsp; &nbsp; If (TaxableIncome &lt; 0) Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MsgBox(&quot;Taxable income must be a positive number&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; txtTaxableIncome.Text = &quot;&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf TaxableIncome &lt; 50000 Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TaxDue = TaxableIncome * 0.05<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf TaxableIncome &lt; 100000 Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TaxDue = (TaxableIncome - 50000) * 0.07 + 2500<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf TaxableIncome &gt; 100000 Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TaxDue = (TaxableIncome - 100000) * 0.09 + 6000<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; lblTaxDue.Text = &quot;Income Tax Due: &quot; &amp; FormatCurrency(TaxDue.ToString())<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>JRabbit2307</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233753.html</guid>
		</item>
		<item>
			<title>New Car Price Calculator</title>
			<link>http://www.daniweb.com/forums/thread233749.html</link>
			<pubDate>Tue, 27 Oct 2009 06:37:17 GMT</pubDate>
			<description><![CDATA[I'm not sure if I did this right... 
 
Problem: Using VB.NET write a console application to implement the New Car Price Calculator. 
 
Options available for Universal Motor's vehicles: 
Engine                     Purchase Code               Price 
6 cylinder                       S                 ...]]></description>
			<content:encoded><![CDATA[<div>I'm not sure if I did this right...<br />
<br />
Problem: Using VB.NET write a console application to implement the New Car Price Calculator.<br />
<br />
Options available for Universal Motor's vehicles:<br />
Engine                     Purchase Code               Price<br />
6 cylinder                       S                               $150<br />
8 cylinder                       E                                $475<br />
Diesel                            D                              $750<br />
<br />
Interior Trim             Purchase Code                 Price<br />
Vinyl                               V                                   $50<br />
Cloth                              C                                   $225<br />
Leather                          L                                   $800<br />
<br />
Radio                        Purchase Code                 Price<br />
AM/FM Radio                   C                                  $100<br />
AM/FM/CD/DVD               P                                  $400<br />
<br />
 <pre style="margin:20px; line-height:13px">Module Module1<br />
&nbsp; &nbsp; Dim EngineChoice As String = &quot;&quot;<br />
&nbsp; &nbsp; Dim Sixcylinder As Integer = 0<br />
&nbsp; &nbsp; Dim Eightcylinder As Integer = 0<br />
&nbsp; &nbsp; Dim Diesel As Integer = 0<br />
&nbsp; &nbsp; Dim InteriorChoice As String = &quot;&quot;<br />
&nbsp; &nbsp; Dim Vinyl As Integer = 0<br />
&nbsp; &nbsp; Dim Cloth As Integer = 0<br />
&nbsp; &nbsp; Dim Leather As Integer = 0<br />
&nbsp; &nbsp; Dim RadioChoice As String = &quot;&quot;<br />
&nbsp; &nbsp; Dim C As Integer = 0<br />
&nbsp; &nbsp; Dim P As Integer = 0<br />
&nbsp; &nbsp; Dim ShippingCharge As Integer = 0<br />
&nbsp; &nbsp; Dim DealerCharge As Integer = 0<br />
&nbsp; &nbsp; Dim BasePrice As Integer = 0<br />
&nbsp; &nbsp; Dim intSellingPrice As Integer = 0<br />
&nbsp; &nbsp; Dim Response As String = &quot;&quot;<br />
&nbsp; &nbsp; Dim MessageBox.Show As String =<br />
<br />
&nbsp; &nbsp; Sub Main()<br />
&nbsp; &nbsp; &nbsp; &nbsp; MessageBox.Show(&quot;Welcome to New Car Payment Calculation!&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Enter the base price:&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Response = Console.ReadLine()<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Enter EngineChoice for your vehicle:&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Response = Console.ReadLine()<br />
&nbsp; &nbsp; &nbsp; &nbsp; EngineChoice = Convert.ToInt32(Response)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; If EngineChoice = Sixcylinder Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(150)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf EngineChoice = Eightcylinder Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(475)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf EngineChoice = Diesel Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(750)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Enter InteriorChoice for your vehicle:&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Response = Console.ReadLine()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; InteriorChoice = Convert.ToInt32(Response)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If InteriorChoice = Vinyl Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(50)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ElseIf InteriorChoice = Cloth Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(225)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ElseIf InteriorChoice = Leather Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(800)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Enter the RadioChoice for your vehicle:&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Response = Console.ReadLine()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Response = Convert.ToInt32(Response)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If RadioChoice = C Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(100)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ElseIf RadioChoice = P Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(400)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BasePrice = 800<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ShippingCharge = 500<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DealerCharge = 175<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; intSellingPrice = BasePrice + EngineChoice + InteriorChoice + RadioChoice + ShippingCharge + DealerCharge<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;The total selling price for your vehicle is $&quot; + intSellingPrice)<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; End If<br />
<br />
<br />
&nbsp; &nbsp; End Sub<br />
<br />
End Module</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>JRabbit2307</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233749.html</guid>
		</item>
		<item>
			<title>Nweb needs help printing...</title>
			<link>http://www.daniweb.com/forums/thread233673.html</link>
			<pubDate>Tue, 27 Oct 2009 03:28:13 GMT</pubDate>
			<description><![CDATA[ok I have imported a working code from vb 6.0 and it said that the form1.print function couldnt be converted... i am absolutely new at this .net stuff, and desperately need help... the code is below: 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>ok I have imported a working code from vb 6.0 and it said that the form1.print function couldnt be converted... i am absolutely new at this .net stuff, and desperately need help... the code is below:<br />
 <pre style="margin:20px; line-height:13px">Private Sub Command1_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command1.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; On Error GoTo printer_err<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'On Error Resume Next<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'Printer.RichTextBox1Print<br />
&nbsp; &nbsp; &nbsp; &nbsp; ' If Form1.Caption = &quot;Drawer Count: Edit Mode&quot; Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; '&nbsp; &nbsp;  MsgBox &quot;You are still in edit mode, you will not be able to print untill you exit this mode&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; '&nbsp; &nbsp;  Printer.AbortPrint<br />
&nbsp; &nbsp; &nbsp; &nbsp; ' End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; Me.PrintPreviewDialog1 = Me.PrintDocument1<br />
&nbsp; &nbsp; &nbsp; &nbsp; Kill((My.Application.Info.DirectoryPath &amp; &quot;\count.stcc&quot;))<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'Print(Me, PowerPacks.Printing.PrintForm.PrintOption.Scrollable))<br />
&nbsp; &nbsp; &nbsp; &nbsp; MsgBox(&quot;you should be printing now.... but .NET sucks ---&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Exit Sub<br />
printer_err:<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim m, whattodo As String<br />
&nbsp; &nbsp; &nbsp; &nbsp; m = &quot;A printer error has occured:&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; Select Case Err.Number<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Case 53<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; m = m &amp; &quot; The file nessisary to print is missing.&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Case 68<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; m = m &amp; &quot; The printer was not ready or couldn't be found, check connections, and make sure that the printer has power.&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Case 76<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; m = m &amp; &quot; The file path is incorrect, please reinstall the latest edition or contact us to resolve the issue.&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Case 482<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; m = m &amp; &quot; The printer is not found or is off, or the computer that it is shared on is off. Please check that the power is on to these devices.&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Case Else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; m = m &amp; &quot; &quot; &amp; Err.Number &amp; &quot; '&quot; &amp; Err.Description &amp; &quot;' has occured, please contect us for resolution.&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Select<br />
&nbsp; &nbsp; &nbsp; &nbsp; m = m &amp; vbCrLf &amp; vbCrLf &amp; &quot;Press yes to contenue, no to attempt an auto fix, and cancel to end the program&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; whattodo = CStr(MsgBox(m, MsgBoxStyle.Critical + MsgBoxStyle.YesNoCancel, &quot;Printer Error Has Occured&quot;))<br />
&nbsp; &nbsp; &nbsp; &nbsp; If whattodo = CStr(MsgBoxResult.Yes) Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Resume<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf whattodo = CStr(MsgBoxResult.No) Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Command2_Click(Command2, New System.EventArgs())<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MsgBox(&quot;Autofix complete, Retring to print.&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Command1_Click(Command1, New System.EventArgs())<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf whattodo = CStr(MsgBoxResult.Cancel) Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.Close()<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
<br />
&nbsp; &nbsp; End Sub</pre>and then this is the code from the menu button to basically press command 1...<br />
 <pre style="margin:20px; line-height:13px">Public Sub Print_Renamed_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Print_Renamed.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim Index As Short = Print_Renamed.GetIndex(eventSender)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If Frame1.Enabled = True Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Command1.Enabled = False<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ElseIf Frame2.Enabled = True Then <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Command1.Enabled = False<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If Frame1.Enabled = False Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If Frame2.Enabled = False Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Command1.Enabled = True<br />
&nbsp; &nbsp; &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; &nbsp; &nbsp; MsgBox(&quot;To properly print the revinue report place the count face up in your printer, then print the revinue report from Atrex following the prompts to select&nbsp; the correct printer to print.&quot;, MsgBoxStyle.Information, &quot;Printing Explination&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Command1_Click(Command1, New System.EventArgs())<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Sub</pre><br />
now i have installed the vb power packs 2.0 and 3.0 and neither have worked... its a bit frustrating but hey... what ever...<br />
<br />
thanks for any input any one give me...<br />
<br />
Jesse Fender</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>chuckjessup</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233673.html</guid>
		</item>
		<item>
			<title>Else Statement</title>
			<link>http://www.daniweb.com/forums/thread233640.html</link>
			<pubDate>Tue, 27 Oct 2009 00:14:29 GMT</pubDate>
			<description><![CDATA[Well, I did this program and it works, but my instructor wants me to use this statements instead of the one I used: 
 
My original code was:  
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Well, I did this program and it works, but my instructor wants me to use this statements instead of the one I used:<br />
<br />
My original code was: <br />
 <pre style="margin:20px; line-height:13px"><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim DiscountVal As Double = 1.0&nbsp; &nbsp; &nbsp;  'ByVal&nbsp; arguments passed as by value (chapter VI)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim BasePrice As Double = 9.95&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim AdditionalPrice As Double = 2.0&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim HoursAllowed As Integer = 10<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim HoursUsed As Integer = CInt(Me.TextBox1.Text) ' convert to integer<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim HoursOver As Integer = 0<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; ' Set discount rate for nonprofit.<br />
&nbsp; &nbsp; &nbsp; &nbsp; If Me.chkNonProfit.Checked Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DiscountVal = 0.8&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ' value is passed <br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; ' Start branching structure using If..ElseIf<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; If Me.radPackageA.Checked Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BasePrice = 9.95<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HoursAllowed = 10<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AdditionalPrice = 2.0<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf Me.radPackageB.Checked Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BasePrice = 14.95<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HoursAllowed = 20<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AdditionalPrice = 1.0<br />
&nbsp; &nbsp; &nbsp; &nbsp; ElseIf Me.radPackage3.Checked Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BasePrice = 19.95<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HoursAllowed = Me.TextBox1.Text<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AdditionalPrice = 0<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; HoursOver = HoursUsed - HoursAllowed<br />
&nbsp; &nbsp; &nbsp; &nbsp; If HoursOver &lt; 0 Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HoursOver = 0<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp;  ' Calculate total.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim Total As Double = DiscountVal * (BasePrice + (AdditionalPrice * HoursOver))<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Me.txtHours.Text = FormatCurrency(Total)</pre><br />
Instead I have to use:<br />
 <pre style="margin:20px; line-height:13px"><br />
If Me.radPackageA.Checked Then<br />
If CInt (Me.Textbox1.Text) &lt; = 10 Then<br />
&nbsp; &nbsp;  charge = 9.95<br />
else<br />
&nbsp; &nbsp; &nbsp;  charge = 9.95 +2*(CInt(Me.TextBox1.Text)-10)<br />
EndIf</pre><br />
It works for Package A and Package B, but I am having problems coding PackageC<br />
<br />
Thank you<br />
<br />
<br />
[/CODE]</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>jess99</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233640.html</guid>
		</item>
		<item>
			<title>Help needed with MP3 Player</title>
			<link>http://www.daniweb.com/forums/thread233622.html</link>
			<pubDate>Mon, 26 Oct 2009 22:39:24 GMT</pubDate>
			<description>Hi there.  
 
My problem is that when i click play to resume a paused song it starts the song from the beginning.  
 
I added an IF statement to the play button to say basically ...  
 
IF PAUSED THEN PLAY (RESUME)  
ELSE 
PLAY FROM IMPORT LIST.</description>
			<content:encoded><![CDATA[<div>Hi there. <br />
<br />
My problem is that when i click play to resume a paused song it starts the song from the beginning. <br />
<br />
I added an IF statement to the play button to say basically ... <br />
<br />
IF PAUSED THEN PLAY (RESUME) <br />
ELSE<br />
PLAY FROM IMPORT LIST. <br />
<br />
The problem with the IF statement, is that it says the pause command has no value. <br />
<br />
For the life of me, i cannot figure out the IF statement. Please help<br />
<br />
 <br />
 <pre style="margin:20px; line-height:13px">Public Class MP3Form<br />
<br />
&nbsp; &nbsp; Private Sub OpenFileDialog1_FileOk(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles importDiag.FileOk<br />
&nbsp; &nbsp; &nbsp; &nbsp; For Each track As String In importDiag.FileNames<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Playlist.Items.Add(track)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Next<br />
<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Private Sub btnimport_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnimport.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; importDiag.ShowDialog()<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Private Sub btnPlay_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPlay.Click<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; If AxWindowsMediaPlayer1.Ctlcontrols.pause() = True Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AxWindowsMediaPlayer1.Ctlcontrols.play()<br />
&nbsp; &nbsp; &nbsp; &nbsp; Else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AxWindowsMediaPlayer1.URL = Playlist.SelectedItem<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Private Sub btnStop_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles stopbutton.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; AxWindowsMediaPlayer1.Ctlcontrols.stop()<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Private Sub pausebutton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles pausebutton.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; AxWindowsMediaPlayer1.Ctlcontrols.pause()<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>detoxx</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233622.html</guid>
		</item>
		<item>
			<title>VB.NET to Crystal Reports</title>
			<link>http://www.daniweb.com/forums/thread233586.html</link>
			<pubDate>Mon, 26 Oct 2009 20:41:07 GMT</pubDate>
			<description><![CDATA[i want to ask one more thing about crystal reports...let's say i need an report that will show me payed "membership fee" for year that I want to choose. How can I get something like this? I know that I can make separated reports for single year, but I want all in one report document...just to...]]></description>
			<content:encoded><![CDATA[<div>i want to ask one more thing about crystal reports...let's say i need an report that will show me payed &quot;membership fee&quot; for year that I want to choose. How can I get something like this? I know that I can make separated reports for single year, but I want all in one report document...just to select year that I want to see. Any idea?<br />
<br />
*and yes, i have separated tables for &quot;year&quot; and &quot;membership fee&quot;... <br />
<br />
One more example..<br />
I have members in my evidence and every member belongs to one &quot;football center&quot;, i would also like to have an option to print my members only by &quot;football center&quot; that I select...hope someone can 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/thread233586.html</guid>
		</item>
		<item>
			<title>mdi child maximize, form tiling, and alignment of controls</title>
			<link>http://www.daniweb.com/forums/thread233548.html</link>
			<pubDate>Mon, 26 Oct 2009 18:33:02 GMT</pubDate>
			<description>hello every1, 
my project is on the verge of completion and a large part of the credit goes to daniweb. 
now m stuck with a very annoying problm. ive googled the whole day but to no avail. 
m using visual studion 2005 and access 07. 
ive clubbed these three problms together cause i thought they...</description>
			<content:encoded><![CDATA[<div>hello every1,<br />
my project is on the verge of completion and a large part of the credit goes to daniweb.<br />
now m stuck with a very annoying problm. ive googled the whole day but to no avail.<br />
m using visual studion 2005 and access 07.<br />
ive clubbed these three problms together cause i thought they might be related somehow...<br />
<br />
1) i want the mdi child screen to be maximized. but on the first attempt only the control box goes to the top rite corner. however on the 2nd attempt it gets sorted out.<br />
ive tried to set the initial state to maximized but with same result. please help<br />
<br />
2) whn the form loads it gives this tiling effect.. like the effect a tube light gives whn it is switced on...which is very annoying.<br />
ive search for the result and some recommended to change the resolution of the user screen which is not acceptable to me.<br />
cant i change the resolution of my application depending on the user's resolution. any other solution will be appreciated<br />
<br />
3) whn the form is maximized i want its user control or contents to change their alignment accordingly...<br />
anchor property only changes the size however the ideal thing will be to change the controls position w.r.t the container or form...<br />
<br />
a quick and easy solution is both required and highly appreciated.<br />
<br />
id also request for some sample code along with the solution if possible.<br />
<br />
thnx in adavance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>babbu</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233548.html</guid>
		</item>
		<item>
			<title><![CDATA[Avoiding "Server Busy" Popup]]></title>
			<link>http://www.daniweb.com/forums/thread233453.html</link>
			<pubDate>Mon, 26 Oct 2009 12:36:04 GMT</pubDate>
			<description>I have an application that is a COM Class invoked by a large third party app.  This com class loads an assembly at the time it is loaded. 
and the assembly then calls a server resident windows app with screen.  The assembly uses process.WaitForExit() to wait for user to close the windows app and...</description>
			<content:encoded><![CDATA[<div>I have an application that is a COM Class invoked by a large third party app.  This com class loads an assembly at the time it is loaded.<br />
and the assembly then calls a server resident windows app with screen.  The assembly uses process.WaitForExit() to wait for user to close the windows app and then causes the com class to exit returning the notice to third party app that everything is complete.<br />
Everything works fine except when the user closes the windows app this server busy popup appears and he/she can hit retry and everything continues.  How can I stop the popup.  What is going on?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>garyinmiami2003</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233453.html</guid>
		</item>
		<item>
			<title>For...Next homework problem</title>
			<link>http://www.daniweb.com/forums/thread233433.html</link>
			<pubDate>Mon, 26 Oct 2009 11:05:43 GMT</pubDate>
			<description>Attempting to do an assignment that has five input boxes, and then uses them to calculate how much money a person would make over the course of their working life. 
The problem is, when i run it, it simply gives me how much the person would make after 1 year, with a raise included.  The raise is...</description>
			<content:encoded><![CDATA[<div>Attempting to do an assignment that has five input boxes, and then uses them to calculate how much money a person would make over the course of their working life.<br />
The problem is, when i run it, it simply gives me how much the person would make after 1 year, with a raise included.  The raise is ment to be given every year.<br />
 <pre style="margin:20px; line-height:13px"> Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim Name As String<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim Salary, Total, Raise As Double<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim Age, Retire, Count As Integer<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Name = TextBox1.Text<br />
&nbsp; &nbsp; &nbsp; &nbsp; Age = TextBox2.Text<br />
&nbsp; &nbsp; &nbsp; &nbsp; Salary = TextBox3.Text<br />
&nbsp; &nbsp; &nbsp; &nbsp; Raise = TextBox4.Text / 100<br />
&nbsp; &nbsp; &nbsp; &nbsp; Retire = TextBox5.Text<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; For Count = Age To Retire<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Total = Total + Salary<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Salary = Salary * Raise<br />
<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Next<br />
&nbsp; &nbsp; &nbsp; &nbsp; Label6.Text = Name &amp; &quot; will earn &quot; &amp; FormatCurrency(Total) &amp; &quot; before retiring. &quot;</pre>the for loop looks right to me, but i am very new to vb.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>Alexwoo</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233433.html</guid>
		</item>
		<item>
			<title>Server Name to connect to an online database?</title>
			<link>http://www.daniweb.com/forums/thread233373.html</link>
			<pubDate>Mon, 26 Oct 2009 07:00:46 GMT</pubDate>
			<description><![CDATA[I am having a small problem... I can connect to a local MySql Database using: 
 
  <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"...]]></description>
			<content:encoded><![CDATA[<div>I am having a small problem... I can connect to a local MySql Database using:<br />
<br />
 <pre style="margin:20px; line-height:13px">SQLConn.ConnectionString = &quot;Data Source=servername;&quot; &amp; _<br />
&quot;Initial Catalog=databasename;&quot; &amp; _<br />
&quot;User ID=username;&quot; &amp; _<br />
&quot;Password=userpassword;&quot;</pre><br />
Where servername is &quot;localhost&quot;. I need to make a connection to an online database (same data structure). What should I put at the servername in that case? I do have all the info about the database in question (Domain, Ip, etc...). Which part should i use?</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/thread233373.html</guid>
		</item>
		<item>
			<title>Code for printer epson TMU 220D</title>
			<link>http://www.daniweb.com/forums/thread233321.html</link>
			<pubDate>Mon, 26 Oct 2009 04:26:05 GMT</pubDate>
			<description>I am tring to write a code using VB .net 2005 for print a text from textbox to epson TMU220D. is there any body can help me ? thanks</description>
			<content:encoded><![CDATA[<div>I am tring to write a code using VB .net 2005 for print a text from textbox to epson TMU220D. is there any body can help me ? thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>y3d1j4</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233321.html</guid>
		</item>
		<item>
			<title>SHOW, HIDE, SHOWN Question.</title>
			<link>http://www.daniweb.com/forums/thread233281.html</link>
			<pubDate>Mon, 26 Oct 2009 00:49:03 GMT</pubDate>
			<description><![CDATA[I have a project with more than one form and I move between them with a button click that hides the current form and shows the one I want.  But what is I want to perform some procedure each time the form is shown?  I tried this code on my Form2: 
 
  <div class="codeblock"> <div class="spaced">...]]></description>
			<content:encoded><![CDATA[<div>I have a project with more than one form and I move between them with a button click that hides the current form and shows the one I want.  But what is I want to perform some procedure each time the form is shown?  I tried this code on my Form2:<br />
<br />
 <pre style="margin:20px; line-height:13px"> Private Sub Form2_Shown(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Shown<br />
&nbsp; &nbsp; &nbsp; &nbsp; MsgBox(testString)<br />
<br />
&nbsp; &nbsp; End Sub</pre><br />
 ... to put a variable into MsgBox and, when I run the program, it works the first time the form is shown, but not when I go back to it from another form.  Is there some other event handler I should be using?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>OldQBasicer</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233281.html</guid>
		</item>
		<item>
			<title>Input Validation...CheckBox and List</title>
			<link>http://www.daniweb.com/forums/thread233192.html</link>
			<pubDate>Sun, 25 Oct 2009 16:08:38 GMT</pubDate>
			<description>Hi, 
 
I have to create two forms. In the mainFrm the user enters all his personal data (name, phone, email, address), and a label to display amount due.  One of the buttons takes the user to a second form. In the secondFrm , I have two CheckBoxes, one is for the registration fee, and I have a list...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I have to create two forms. In the mainFrm the user enters all his personal data (name, phone, email, address), and a label to display amount due.  One of the buttons takes the user to a second form. In the secondFrm , I have two CheckBoxes, one is for the registration fee, and I have a list with the workshop's name and fee.<br />
<br />
The secondFrm has to  be displayed in a modal form.  I have done all of the above and I got no errors.  However, I do not know how to do the Input Validation.  The user cannot register for the optional workshop without selecting the conference registration.<br />
<br />
I know it has to be and IF statement with the And logical operator.<br />
<br />
 <pre style="margin:20px; line-height:13px">If IsNumeric(Me.chkConfReg.Text) And (Me.lstWorkshops)???</pre><br />
Also, does the input validation has to go in the Public class?  <br />
<br />
Thank you</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>jess99</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233192.html</guid>
		</item>
		<item>
			<title>URGEN HELP : Digiums Asterisk with visual basic</title>
			<link>http://www.daniweb.com/forums/thread233187.html</link>
			<pubDate>Sun, 25 Oct 2009 15:45:12 GMT</pubDate>
			<description><![CDATA[I am asterisk expert. but I have a problem. one of my customer requested to get an incoming call extension to notepad text document. as far as I didn't use Visual Basic .net as visual basic 6.0 and I dont have a budjet to go for a big solution. because I am an employee who work under small company....]]></description>
			<content:encoded><![CDATA[<div>I am asterisk expert. but I have a problem. one of my customer requested to get an incoming call extension to notepad text document. as far as I didn't use Visual Basic .net as visual basic 6.0 and I dont have a budjet to go for a big solution. because I am an employee who work under small company. <br />
<br />
I found one module collection called asterisk .net. <br />
<br />
<a rel="nofollow" class="t" href="http://sourceforge.net/projects/asterisk-dotnet/" target="_blank">http://sourceforge.net/projects/asterisk-dotnet/</a><br />
<br />
my requirement is I want a simple code to connect with digium's asterisk manager interface and the can execute asterisk cli commands to get caller id.If there is a any person can help me I am thanking very very very advance.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>duliprb</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233187.html</guid>
		</item>
		<item>
			<title>Adding Time to Splash Screen Help Please</title>
			<link>http://www.daniweb.com/forums/thread233174.html</link>
			<pubDate>Sun, 25 Oct 2009 15:01:44 GMT</pubDate>
			<description><![CDATA[Ok i add a SplashScreen1 then i put it to show, i go to Application Events and i add this 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with...]]></description>
			<content:encoded><![CDATA[<div>Ok i add a SplashScreen1 then i put it to show, i go to Application Events and i add this<br />
<br />
 <pre style="margin:20px; line-height:13px">Partial Friend Class MyApplication<br />
&nbsp; &nbsp; &nbsp; &nbsp; Protected Overrides Function OnInitialize( _<br />
ByVal commandLineArgs As&nbsp; _<br />
System.Collections.ObjectModel.ReadOnlyCollection(Of String) _<br />
) As Boolean<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; My.Application.MinimumSplashScreenDisplayTime = 4000<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Return MyBase.OnInitialize(commandLineArgs)<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Function<br />
<br />
&nbsp; &nbsp; End Class<br />
<br />
End Namespace</pre><br />
To add 4 Seconds in the DisplayTime but it works when the Opacity of my Form is Full but if the transparency of the form is less The Load appear and the SplashScreen still there<br />
<br />
i want it to be like when SplashScreen is over the form1 appear,  i dont know how the opacity of the form affect this :S</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>xfrolox</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233174.html</guid>
		</item>
		<item>
			<title>TCP Windows Mobile 6.1</title>
			<link>http://www.daniweb.com/forums/thread233031.html</link>
			<pubDate>Sun, 25 Oct 2009 00:38:30 GMT</pubDate>
			<description><![CDATA[I am trying to make a program for my Windows Mobile 6.1 Professional Device that communicates via TCP/WiFi To my pc, however, on my windows mobile device, when i launch a program with an import [system.net] it keeps giving me an error, and it is unable to launch the program.  
 
Is there an update...]]></description>
			<content:encoded><![CDATA[<div>I am trying to make a program for my Windows Mobile 6.1 Professional Device that communicates via TCP/WiFi To my pc, however, on my windows mobile device, when i launch a program with an import [system.net] it keeps giving me an error, and it is unable to launch the program. <br />
<br />
Is there an update that i am missing? or am i missing a package in win mobile with the system.net resources? any help is greatly appreciated<br />
Thanks<br />
~Matt</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>mrclark</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233031.html</guid>
		</item>
		<item>
			<title>Help Saving Opacity - Trackbar1</title>
			<link>http://www.daniweb.com/forums/thread232957.html</link>
			<pubDate>Sat, 24 Oct 2009 16:39:41 GMT</pubDate>
			<description>Ok i Got the Form1 and the Dialog3 
 
i can save the trackbar1.value but when i save and close and open the application in the dialog3 says the value of the trackbar1 but the form1 opacity dont save :S 
 
----- Button1 to save ----- 
 
Button1: 
 
        My.Settings.TaxiTransparency =...</description>
			<content:encoded><![CDATA[<div>Ok i Got the Form1 and the Dialog3<br />
<br />
i can save the trackbar1.value but when i save and close and open the application in the dialog3 says the value of the trackbar1 but the form1 opacity dont save :S<br />
<br />
----- Button1 to save -----<br />
<br />
Button1:<br />
<br />
        My.Settings.TaxiTransparency = TrackBar1.Value<br />
        My.Settings.Save()<br />
<br />
Dialog3_Load:<br />
<br />
        TrackBar1.Value = My.Settings.TaxiTransparency<br />
        Label5.Text = My.Settings.TaxiTransparency<br />
<br />
TrackBar1:<br />
<br />
        Form1.Opacity = TrackBar1.Value / TrackBar1.Maximum<br />
        AboutBox1.Opacity = TrackBar1.Value / TrackBar1.Maximum<br />
        Dialog1.Opacity = TrackBar1.Value / TrackBar1.Maximum<br />
        Dialog2.Opacity = TrackBar1.Value / TrackBar1.Maximum<br />
        Label5.Text = TrackBar1.Value<br />
        TrackBar1.Value = Label5.Text<br />
<br />
So can anyone help me how to  make it save that when i open again the app is already in the opacity<br />
<br />
in Form1 i just put<br />
Me.Opacity = Dialog3.TrackBar1.Value<br />
<br />
but didnt work :(</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>xfrolox</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread232957.html</guid>
		</item>
		<item>
			<title>retrieve data from a data table in rows</title>
			<link>http://www.daniweb.com/forums/thread232882.html</link>
			<pubDate>Sat, 24 Oct 2009 11:45:25 GMT</pubDate>
			<description>Hi guys, 
  
Please help me here. I want to obtain the individual data in rows and columns from my database. I mean after loading the data in a data table.... I think I need some attributes of the data table, so as to obtain data from the rows and columns</description>
			<content:encoded><![CDATA[<div>Hi guys,<br />
 <br />
Please help me here. I want to obtain the individual data in rows and columns from my database. I mean after loading the data in a data table.... I think I need some attributes of the data table, so as to obtain data from the rows and columns</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>linxpert</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread232882.html</guid>
		</item>
		<item>
			<title>How do I PrintPrintPreview an Excel File?</title>
			<link>http://www.daniweb.com/forums/thread232842.html</link>
			<pubDate>Sat, 24 Oct 2009 08:16:02 GMT</pubDate>
			<description>How do I Load an excel file to the PrintPreviewDialog? 
 
 
 
Imports Excel = Microsoft.Office.Interop.Excel 
    Private Sub btnPrintPreview_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPrintPreview.Click 
        Dim xlApp As Excel.Application 
        Dim...</description>
			<content:encoded><![CDATA[<div>How do I Load an excel file to the PrintPreviewDialog?<br />
<br />
 <pre style="margin:20px; line-height:13px"><br />
Imports Excel = Microsoft.Office.Interop.Excel<br />
&nbsp; &nbsp; Private Sub btnPrintPreview_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPrintPreview.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim xlApp As Excel.Application<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim xlWorkBook As Excel.Workbook<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; xlApp = New Excel.ApplicationClass<br />
&nbsp; &nbsp; &nbsp; &nbsp; xlWorkBook = xlApp.Workbooks.Open(Application.StartupPath &amp; &quot;report_summary.xlsx&quot;)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; MyPrintPreviewDialog.Document = xlWorkBook<br />
&nbsp; &nbsp; &nbsp; &nbsp; If MyPrintPreviewDialog.ShowDialog() = DialogResult.OK Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xlWorkBook.Close()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xlApp.Quit()<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; End Sub</pre><br />
Error states that excel cannot be converted to .Document.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>yorro</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread232842.html</guid>
		</item>
		<item>
			<title>How to read / write file in PDA (VB.Net)</title>
			<link>http://www.daniweb.com/forums/thread232818.html</link>
			<pubDate>Sat, 24 Oct 2009 05:40:07 GMT</pubDate>
			<description><![CDATA[Hi, I need to create a login program where it reads / writes to that file. 
 
It must first detect if the file present or not. 
 
If yes, it should not overwrite this file, else, it will have to create a default configuration file containing Username,Password & User Group. 
 
PS: It is an academic...]]></description>
			<content:encoded><![CDATA[<div>Hi, I need to create a login program where it reads / writes to that file.<br />
<br />
It must first detect if the file present or not.<br />
<br />
If yes, it should not overwrite this file, else, it will have to create a default configuration file containing <span style="font-style:italic">Username</span>,<span style="font-style:italic">Password</span> &amp; <span style="font-style:italic">User Group</span>.<br />
<br />
PS: It is an academic prototype only, where I cant afford to use actual database (Unless can in $0 cost &amp; simple way). I could have just use a list of arraylist to do it, but whenever the program is close, these array values are lost too.<br />
<br />
The button &quot;Login&quot;(btnLogin) must verify with this configuration file that if it match every details in the same line, else, it proceed to next line and if nothing matches fully, it shows an &quot;invalid login attempted&quot;. Else, it will go to next form for the user to key in data1 and data2 (Both in decimal) which also captures the current date.<br />
<br />
These data will write to another file where it will detect if the file exist first or not. If exist, it writes to new line containing data1,data2 and date data else, creates a new file containing data1,data2 and date data.<br />
<br />
The reason for doing so is if the logged in is a supervisior group, it can enter the staff name (Username) in order to check their data1 and data2 are within range or not which is sort according to date.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>samuel_1991</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread232818.html</guid>
		</item>
		<item>
			<title>How to use wildcard for attachement file name?</title>
			<link>http://www.daniweb.com/forums/thread232787.html</link>
			<pubDate>Sat, 24 Oct 2009 03:10:04 GMT</pubDate>
			<description>How can I use _*wildcard/s*_ for the attachment filename. Part of the filename changes but the characters 8 and 9 (counting from the left to right) always present and always either *LK* or *KL*. Currently files are PDF type, thus with extension *PDF* but might be different in the future (this is...</description>
			<content:encoded><![CDATA[<div><span style="color:Green">How can I use <span style="text-decoration:underline"><span style="font-weight:bold">wildcard/s</span></span> for the attachment filename. Part of the filename changes but the characters 8 and 9 (counting from the left to right) always present and always either <span style="color:Red"><span style="font-weight:bold">LK</span></span> or <span style="color:Red"><span style="font-weight:bold">KL</span></span>. Currently files are PDF type, thus with extension <span style="color:Red"><span style="font-weight:bold">PDF</span></span> but might be different in the future (<span style="color:Red">this is not important now</span>). Please help. Thank you!</span><br />
<br />
Here it is:<br />
<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim oAttch As Net.Mail.Attachment = New Net.Mail.Attachment(&quot;C:\test\102309LKO.pdf&quot;)</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>leokuz</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread232787.html</guid>
		</item>
		<item>
			<title>How to save sent email sent via vb.net to folder</title>
			<link>http://www.daniweb.com/forums/thread232746.html</link>
			<pubDate>Sat, 24 Oct 2009 00:31:41 GMT</pubDate>
			<description><![CDATA[I am wondering if there is way to save sent by vb.net email to a specific folder on hard drive as sent email containing exact information as it appears in lets say Outlook Express' "Sent Items" folder. I'd like this saved "sent" email copy to include attachment if any. 
 
This is the code I use to...]]></description>
			<content:encoded><![CDATA[<div>I am wondering if there is way to save sent by vb.net email to a specific folder on hard drive as sent email containing exact information as it appears in lets say Outlook Express' &quot;Sent Items&quot; folder. I'd like this saved &quot;sent&quot; email copy to include attachment if any.<br />
<br />
This is the code I use to email:<br />
<br />
 <pre style="margin:20px; line-height:13px">Imports System.Net.Mail<br />
Module Module1<br />
<br />
&nbsp; &nbsp; Sub Main()<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim SmtpServer As New SmtpClient()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim mail As New MailMessage()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SmtpServer.Credentials = New&nbsp; _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Net.NetworkCredential(&quot;&quot;, &quot;&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SmtpServer.Port = 25<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SmtpServer.Host = &quot;&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mail = New MailMessage()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mail.From = New MailAddress(&quot;&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mail.To.Add(&quot;&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mail.Subject = &quot;&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mail.Body = &quot;&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim oAttch As Net.Mail.Attachment = New Net.Mail.Attachment(&quot;C:\test\testfile.pdf&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mail.Attachments.Add(oAttch)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SmtpServer.Send(mail)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CreateObject(&quot;WScript.Shell&quot;).Popup(&quot;Message Sent&quot;, 6)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Catch ex As Exception<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Try<br />
<br />
&nbsp; &nbsp; End Sub<br />
<br />
End Module</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>leokuz</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread232746.html</guid>
		</item>
	</channel>
</rss>
