<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>CodeProject Latest postings for Visual Basic</title>
    <link>https://www.codeproject.com</link>
    <description>Latest postings for Visual Basic from CodeProject</description>
    <language>en-us</language>
    <image>
      <title>CodeProject Latest postings for Visual Basic</title>
      <url>https://www.codeproject.com/App_Themes/Std/Img/logo100x30.gif</url>
      <link>https://www.codeproject.com</link>
      <width>100</width>
      <height>30</height>
      <description>CodeProject</description>
    </image>
    <copyright>Copyright  CodeProject, 1999-2024</copyright>
    <webMaster>Webmaster@codeproject.com (Webmaster)</webMaster>
    <lastBuildDate>Tue, 16 Jul 2024 06:05:00 GMT</lastBuildDate>
    <ttl>20</ttl>
    <generator>C# Hand-coded goodness</generator>
    <item>
      <title>HOW TO ANSWER A QUESTION</title>
      <description>Apologies for the shouting but this is important.&lt;br /&gt;
&lt;br /&gt;
When answering a question please:&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Read the question carefully&lt;br /&gt;
&lt;/li&gt;&lt;li&gt;Understand that English isn't everyone's first language so be lenient of bad spelling and grammar&lt;br /&gt;
&lt;/li&gt;&lt;li&gt;If a question is poorly phrased then either ask for clarification, ignore it, or mark it down. &lt;b&gt;Insults are not welcome&lt;/b&gt;&lt;br /&gt;
&lt;/li&gt;&lt;li&gt;If the question is inappropriate then click the 'vote to remove message' button&lt;br /&gt;
&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;
Insults, slap-downs and sarcasm aren't welcome. Let's work to help developers, not make them feel stupid. &lt;br /&gt;
&lt;br /&gt;
&lt;div class="ForumSig"&gt;cheers,&lt;br /&gt;
Chris Maunder&lt;br /&gt;
&lt;br /&gt;
The Code Project Co-founder&lt;br /&gt;
Microsoft C++ MVP&lt;/div&gt;</description>
      <author>Chris Maunder</author>
      <link>https://www.codeproject.com/Messages/3117209/HOW-TO-ANSWER-A-QUESTION</link>
      <pubDate>Mon, 13 Jul 2009 08:40:00 GMT</pubDate>
      <guid>3_3117209</guid>
      <subject>Visual Basic</subject>
    </item>
    <item>
      <title>How to get an answer to your question</title>
      <description>For those new to message boards please try to follow a few simple rules when posting your question.&lt;ol&gt;&lt;li&gt;&lt;b&gt;Choose the correct forum for your message&lt;/b&gt;. Posting a VB.NET question in the C++ forum will end in tears.&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;&lt;li&gt;&lt;b&gt;Be specific!&lt;/b&gt; Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;&lt;li&gt;Keep the subject line brief, but descriptive. eg "File Serialization problem"&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;&lt;li&gt;Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;&lt;li&gt;Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;&lt;li&gt;&lt;b&gt;Do not remove or empty a message&lt;/b&gt; if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;&lt;li&gt;If you are posting source code with your question, place it inside &amp;lt;pre&amp;gt;&amp;lt;/pre&amp;gt; tags. We advise you also check the "Encode "&amp;lt;" (and other HTML) characters when pasting" checkbox before pasting anything inside the PRE block, and make sure "Use HTML in this post" check box is checked.&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;&lt;li&gt;Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;&lt;li&gt;Please do not post links to your question into an unrelated forum such as the lounge. It will be deleted. Likewise, do not post the same question in more than one forum.&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;&lt;li&gt;Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;&lt;li&gt;If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums. &lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;&lt;li&gt;No advertising or soliciting.&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;&lt;li&gt;We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;
&lt;div class="signature"&gt;cheers,&lt;br /&gt;
Chris Maunder&lt;br /&gt;
&lt;br /&gt;
The Code Project Co-founder&lt;br /&gt;
&lt;div class="SmallText"&gt;Microsoft C++ MVP&lt;/div&gt;&lt;/div&gt;</description>
      <author>Chris Maunder</author>
      <link>https://www.codeproject.com/Messages/1278601/How-to-get-an-answer-to-your-question</link>
      <pubDate>Fri, 11 Nov 2005 03:30:00 GMT</pubDate>
      <guid>3_1278601</guid>
      <subject>Visual Basic</subject>
    </item>
    <item>
      <title>vb.net mysql javascript</title>
      <description>&lt;div class='pre-lang' id='premain596014'&gt;&lt;div&gt;&lt;/div&gt;&lt;div class='pre-action-link'&gt;&lt;span id='copycode596014' class='copy-code' data-index='596014' style='visibility:hidden'&gt;&lt;svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' viewBox='0 0 460 460' style='width: 16px;height:16px;' xml:space='preserve'&gt;&lt;g&gt;&lt;path d='M425.934,0H171.662c-18.122,0-32.864,14.743-32.864,32.864v77.134h30V32.864c0-1.579,1.285-2.864,2.864-2.864h254.272     c1.579,0,2.864,1.285,2.864,2.864v254.272c0,1.58-1.285,2.865-2.864,2.865h-74.729v30h74.729 c18.121,0,32.864-14.743,32.864-32.865V32.864C458.797,14.743,444.055,0,425.934,0z'&gt;&lt;/path&gt;&lt;path d='M288.339,139.998H34.068c-18.122,0-32.865,14.743-32.865,32.865v254.272C1.204,445.257,15.946,460,34.068,460h254.272 c18.122,0,32.865-14.743,32.865-32.864V172.863C321.206,154.741,306.461,139.998,288.339,139.998z M288.341,430H34.068    c-1.58,0-2.865-1.285-2.865-2.864V172.863c0-1.58,1.285-2.865,2.865-2.865h254.272c1.58,0,2.865,1.285,2.865,2.865v254.273h0.001 C291.206,428.715,289.92,430,288.341,430z'&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;pre id='pre596014' style='margin-top:0;' data-allowShrink='True' data-collapse='False'&gt;
Public Sub FetchDataByName(customerName As &lt;span class="code-sdkkeyword"&gt;String&lt;/span&gt;)
       &lt;span class="code-string"&gt;&amp;#39;&lt;/span&gt;&lt;span class="code-string"&gt; Show debugging message
       MessageBox.Show("FetchDataByName called with Name: " &amp;amp; customerName)

       &amp;#39;&lt;/span&gt; Replace with your actual MySQL connection details
       Dim connectionString As &lt;span class="code-sdkkeyword"&gt;String&lt;/span&gt; = &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;Server=localhost;Port=3306;Database=MyData;Uid=asmgssl;Pwd=0786;"&lt;/span&gt;
       Dim query As &lt;span class="code-sdkkeyword"&gt;String&lt;/span&gt; = &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;SELECT * FROM customer WHERE cname = @cname"&lt;/span&gt;

       Try
           Using connection As New MySqlConnection(connectionString)
               connection.Open()
               Using command As New MySqlCommand(query, connection)
                   command.Parameters.AddWithValue(&lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;@cname"&lt;/span&gt;, customerName)
                   Using reader As MySqlDataReader = command.ExecuteReader()
                       &lt;span class="code-string"&gt;&amp;#39;&lt;/span&gt;&lt;span class="code-string"&gt; Process query result
                       If reader.Read() Then
                           &amp;#39;&lt;/span&gt; Example: Retrieve data and show &lt;span class="code-keyword"&gt;in&lt;/span&gt; message box
                           Dim customerId As Integer = reader.GetInt32(&lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;id"&lt;/span&gt;)
                           Dim customerAddress As &lt;span class="code-sdkkeyword"&gt;String&lt;/span&gt; = reader.GetString(&lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;address"&lt;/span&gt;)
                           MessageBox.Show($&lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;Customer ID: {customerId}, Address: {customerAddress}"&lt;/span&gt;)
                       Else
                           MessageBox.Show(&lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;No data found for Name: "&lt;/span&gt; &amp;amp; customerName)
                       End If
                   End Using
               End Using
           End Using
       Catch ex As Exception
           MessageBox.Show(&lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;Error fetching data: "&lt;/span&gt; &amp;amp; ex.Message)
       End Try
   End Sub

   Private Sub LoadHtmlContent()
       &lt;span class="code-string"&gt;&amp;#39;&lt;/span&gt;&lt;span class="code-string"&gt; Define the HTML content
       Dim html As String = "&amp;lt;!DOCTYPE html&amp;gt;" &amp;amp;
                        "&amp;lt;html&amp;gt;" &amp;amp;
                        "&amp;lt;head&amp;gt;" &amp;amp;
                        "&amp;lt;title&amp;gt;Test Page&amp;lt;/title&amp;gt;" &amp;amp;
                        "&amp;lt;script type=&amp;#39;&lt;/span&gt;text/javascript&lt;span class="code-string"&gt;&amp;#39;&lt;/span&gt;&lt;span class="code-string"&gt;&amp;gt;" &amp;amp;
                        "function FetchDataByName() {" &amp;amp;
                        "    if (window.external &amp;amp;&amp;amp; typeof window.external.FetchDataByName === &amp;#39;&lt;/span&gt;function&lt;span class="code-string"&gt;&amp;#39;&lt;/span&gt;&lt;span class="code-string"&gt;) {" &amp;amp;
                        "        var customerName = document.getElementById(&amp;#39;&lt;/span&gt;inputName&lt;span class="code-string"&gt;&amp;#39;&lt;/span&gt;&lt;span class="code-string"&gt;).value;" &amp;amp;
                        "        console.log(&amp;#39;&lt;/span&gt;Fetching data &lt;span class="code-keyword"&gt;for&lt;/span&gt; customer name: &lt;span class="code-string"&gt;&amp;#39;&lt;/span&gt;&lt;span class="code-string"&gt; + customerName);" &amp;amp;
                        "        window.external.FetchDataByName(customerName);" &amp;amp;
                        "    } else {" &amp;amp;
                        "        console.error(&amp;#39;&lt;/span&gt;window.external.FetchDataByName &lt;span class="code-keyword"&gt;is&lt;/span&gt; not available.&lt;span class="code-string"&gt;&amp;#39;&lt;/span&gt;&lt;span class="code-string"&gt;);" &amp;amp;
                        "    }" &amp;amp;
                        "}" &amp;amp;
                        "&amp;lt;/script&amp;gt;" &amp;amp;
                        "&amp;lt;/head&amp;gt;" &amp;amp;
                        "&amp;lt;body&amp;gt;" &amp;amp;
                        "&amp;lt;h1&amp;gt;Test Page&amp;lt;/h1&amp;gt;" &amp;amp;
                        "&amp;lt;input type=&amp;#39;&lt;/span&gt;text&lt;span class="code-string"&gt;&amp;#39;&lt;/span&gt;&lt;span class="code-string"&gt; id=&amp;#39;&lt;/span&gt;inputName&lt;span class="code-string"&gt;&amp;#39;&lt;/span&gt;&lt;span class="code-string"&gt; placeholder=&amp;#39;&lt;/span&gt;Enter Customer Name&lt;span class="code-string"&gt;&amp;#39;&lt;/span&gt;&lt;span class="code-string"&gt;&amp;gt;" &amp;amp; &amp;#39;&lt;/span&gt; Changed id to inputName and placeholder text
                        &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;&amp;lt;button onclick=&amp;#39;FetchDataByName()&amp;#39;&amp;gt;Fetch Data&amp;lt;/button&amp;gt;"&lt;/span&gt; &amp;amp;
                        &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;&amp;lt;/body&amp;gt;"&lt;/span&gt; &amp;amp;
                        &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;&amp;lt;/html&amp;gt;"&lt;/span&gt;

       &lt;span class="code-string"&gt;&amp;#39;&lt;/span&gt;&lt;span class="code-string"&gt; Load the HTML content into the WebBrowser control
       WebBrowser1.DocumentText = html
   End Sub
&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
not fetch data</description>
      <author>AMRO DAMMAM</author>
      <link>https://www.codeproject.com/Messages/6010041/vb-net-mysql-javascript</link>
      <pubDate>Tue, 16 Jul 2024 06:05:00 GMT</pubDate>
      <guid>3_6010041</guid>
      <subject>Visual Basic</subject>
    </item>
    <item>
      <title>How to install Visual basic 6.0 PRO or Visual studio 6.0 using vbinstaller</title>
      <description>Hi, When I try to install vb6 PRO or visual studio 6 Enterprise on Windows 10 pro 64 bit the following message appears:&lt;br /&gt;
&lt;br /&gt;
access/path error:  "cmdInstallvs6_click of frmmain2.frm" and the installation fails here&lt;br /&gt;
&lt;br /&gt;
What does it mean ?  How can I solve it ?&lt;br /&gt;
&lt;br /&gt;
Thanks</description>
      <author>Blue Moon 2021</author>
      <link>https://www.codeproject.com/Messages/6009453/How-to-install-Visual-basic-6-0-PRO-or-Visual-stud</link>
      <pubDate>Fri, 12 Jul 2024 07:58:00 GMT</pubDate>
      <guid>3_6009453</guid>
      <subject>Visual Basic</subject>
    </item>
    <item>
      <title>simple code ,how i can connect and read record from table in SQL database (VB.NET)</title>
      <description>i am begginer &lt;br /&gt;
&lt;br /&gt;
i have a Sql database include in 2 tables&lt;br /&gt;
&lt;br /&gt;
i want someone help me to :&lt;br /&gt;
&lt;br /&gt;
- how i connect to database by code&lt;br /&gt;
- how i can select tables&lt;br /&gt;
- how i read recordes&lt;br /&gt;
- what imports needed&lt;br /&gt;
&lt;br /&gt;
thnx</description>
      <author>Member 16299035</author>
      <link>https://www.codeproject.com/Messages/6008920/simple-code-how-i-can-connect-and-read-record-from</link>
      <pubDate>Mon, 08 Jul 2024 07:13:00 GMT</pubDate>
      <guid>3_6008920</guid>
      <subject>Visual Basic</subject>
    </item>
    <item>
      <title>How to use web services in vb.net</title>
      <description>I have to make an application with web service but i never make that.&lt;br /&gt;
The web service is Kelio of Bodet.&lt;br /&gt;
Somes examples could help me.&lt;br /&gt;
&lt;br /&gt;
Thanks</description>
      <author>yvesauff</author>
      <link>https://www.codeproject.com/Messages/5996899/How-to-use-web-services-in-vb-net</link>
      <pubDate>Mon, 15 Apr 2024 15:15:00 GMT</pubDate>
      <guid>3_5996899</guid>
      <subject>Visual Basic</subject>
    </item>
    <item>
      <title>Selected row always visible in datagridview research</title>
      <description>I want to perform a search in a &lt;b&gt;DataGridView&lt;/b&gt;. The search command is working, but I have a problem: a row always remains visible in the DataGridView even if it does not correspond to the search criteria. This row is always the last selected one. I have tried using 'ClearSelection,' and no rows are selected/highlighted, but the problem persists—the same row is still visible. this is my code :&lt;br /&gt;
&lt;br /&gt;
&lt;div class='pre-lang' id='premain116675'&gt;&lt;div&gt;VB&lt;/div&gt;&lt;div class='pre-action-link'&gt;&lt;span id='copycode116675' class='copy-code' data-index='116675' style='visibility:hidden'&gt;&lt;svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' viewBox='0 0 460 460' style='width: 16px;height:16px;' xml:space='preserve'&gt;&lt;g&gt;&lt;path d='M425.934,0H171.662c-18.122,0-32.864,14.743-32.864,32.864v77.134h30V32.864c0-1.579,1.285-2.864,2.864-2.864h254.272     c1.579,0,2.864,1.285,2.864,2.864v254.272c0,1.58-1.285,2.865-2.864,2.865h-74.729v30h74.729 c18.121,0,32.864-14.743,32.864-32.865V32.864C458.797,14.743,444.055,0,425.934,0z'&gt;&lt;/path&gt;&lt;path d='M288.339,139.998H34.068c-18.122,0-32.865,14.743-32.865,32.865v254.272C1.204,445.257,15.946,460,34.068,460h254.272 c18.122,0,32.865-14.743,32.865-32.864V172.863C321.206,154.741,306.461,139.998,288.339,139.998z M288.341,430H34.068    c-1.58,0-2.865-1.285-2.865-2.864V172.863c0-1.58,1.285-2.865,2.865-2.865h254.272c1.58,0,2.865,1.285,2.865,2.865v254.273h0.001 C291.206,428.715,289.92,430,288.341,430z'&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;pre id='pre116675' style='margin-top:0;' class='lang-vb' data-language='VB' data-allowShrink='True' data-collapse='False'&gt;
&lt;span class="code-keyword"&gt;Private&lt;/span&gt; &lt;span class="code-keyword"&gt;Sub&lt;/span&gt; TxtboxReserch_TextChanged(sender &lt;span class="code-keyword"&gt;As&lt;/span&gt; &lt;span class="code-keyword"&gt;Object&lt;/span&gt;, e &lt;span class="code-keyword"&gt;As&lt;/span&gt; EventArgs) &lt;span class="code-keyword"&gt;Handles&lt;/span&gt; TxtboxReserch.TextChanged
       &lt;span class="code-keyword"&gt;If&lt;/span&gt; TxtboxReserch.Text = &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;"&lt;/span&gt; &lt;span class="code-keyword"&gt;Then&lt;/span&gt;
           &lt;span class="code-keyword"&gt;For&lt;/span&gt; i = &lt;span class="code-digit"&gt;0&lt;/span&gt; &lt;span class="code-keyword"&gt;To&lt;/span&gt; DataGridView1.RowCount - &lt;span class="code-digit"&gt;1&lt;/span&gt;
               DataGridView1.Rows(i).Visible = &lt;span class="code-keyword"&gt;True&lt;/span&gt;
           &lt;span class="code-keyword"&gt;Next&lt;/span&gt;
       &lt;span class="code-keyword"&gt;Else&lt;/span&gt;
           DataGridView1.ClearSelection()
           &lt;span class="code-keyword"&gt;For&lt;/span&gt; i = &lt;span class="code-digit"&gt;0&lt;/span&gt; &lt;span class="code-keyword"&gt;To&lt;/span&gt; DataGridView1.RowCount - &lt;span class="code-digit"&gt;1&lt;/span&gt;
               &lt;span class="code-keyword"&gt;Try&lt;/span&gt;
                   DataGridView1.Rows(i).Visible = (DataGridView1.Rows(i).Cells(&lt;span class="code-digit"&gt;1&lt;/span&gt;).Value &lt;span class="code-keyword"&gt;Like&lt;/span&gt; &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;*"&lt;/span&gt; + TxtboxReserch.Text + &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;*"&lt;/span&gt;)

               &lt;span class="code-keyword"&gt;Catch&lt;/span&gt; ex &lt;span class="code-keyword"&gt;As&lt;/span&gt; Exception

               &lt;span class="code-keyword"&gt;End&lt;/span&gt; &lt;span class="code-keyword"&gt;Try&lt;/span&gt;
           &lt;span class="code-keyword"&gt;Next&lt;/span&gt;
       &lt;span class="code-keyword"&gt;End&lt;/span&gt; &lt;span class="code-keyword"&gt;If&lt;/span&gt;
   &lt;span class="code-keyword"&gt;End&lt;/span&gt; &lt;span class="code-keyword"&gt;Sub&lt;/span&gt;&lt;/pre&gt;</description>
      <author>medi dimie</author>
      <link>https://www.codeproject.com/Messages/5990711/Selected-row-always-visible-in-datagridview-resear</link>
      <pubDate>Sat, 02 Mar 2024 12:53:00 GMT</pubDate>
      <guid>3_5990711</guid>
      <subject>Visual Basic</subject>
    </item>
    <item>
      <title>Research in datagridview</title>
      <description>I want to perform a search in a DataGridView. The search command is working, but I have a problem: a row always remains visible in the DataGridView even if it does not correspond to the search criteria. This row is always the last selected one. I have tried using 'ClearSelection,' and no rows are selected/highlighted, but the problem persists—the same row is still visible. this is my code : &lt;br /&gt;
&lt;br /&gt;
&lt;div class='pre-lang' id='premain220793'&gt;&lt;div&gt;VB&lt;/div&gt;&lt;div class='pre-action-link'&gt;&lt;span id='copycode220793' class='copy-code' data-index='220793' style='visibility:hidden'&gt;&lt;svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' viewBox='0 0 460 460' style='width: 16px;height:16px;' xml:space='preserve'&gt;&lt;g&gt;&lt;path d='M425.934,0H171.662c-18.122,0-32.864,14.743-32.864,32.864v77.134h30V32.864c0-1.579,1.285-2.864,2.864-2.864h254.272     c1.579,0,2.864,1.285,2.864,2.864v254.272c0,1.58-1.285,2.865-2.864,2.865h-74.729v30h74.729 c18.121,0,32.864-14.743,32.864-32.865V32.864C458.797,14.743,444.055,0,425.934,0z'&gt;&lt;/path&gt;&lt;path d='M288.339,139.998H34.068c-18.122,0-32.865,14.743-32.865,32.865v254.272C1.204,445.257,15.946,460,34.068,460h254.272 c18.122,0,32.865-14.743,32.865-32.864V172.863C321.206,154.741,306.461,139.998,288.339,139.998z M288.341,430H34.068    c-1.58,0-2.865-1.285-2.865-2.864V172.863c0-1.58,1.285-2.865,2.865-2.865h254.272c1.58,0,2.865,1.285,2.865,2.865v254.273h0.001 C291.206,428.715,289.92,430,288.341,430z'&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;pre id='pre220793' style='margin-top:0;' class='lang-vb' data-language='VB' data-allowShrink='True' data-collapse='False'&gt;
&lt;span class="code-keyword"&gt;Private&lt;/span&gt; &lt;span class="code-keyword"&gt;Sub&lt;/span&gt; TxtboxReserch_TextChanged(sender &lt;span class="code-keyword"&gt;As&lt;/span&gt; &lt;span class="code-keyword"&gt;Object&lt;/span&gt;, e &lt;span class="code-keyword"&gt;As&lt;/span&gt; EventArgs) &lt;span class="code-keyword"&gt;Handles&lt;/span&gt; TxtboxReserch.TextChanged
       &lt;span class="code-keyword"&gt;If&lt;/span&gt; TxtboxReserch.Text = &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;"&lt;/span&gt; &lt;span class="code-keyword"&gt;Then&lt;/span&gt;
           &lt;span class="code-keyword"&gt;For&lt;/span&gt; i = &lt;span class="code-digit"&gt;0&lt;/span&gt; &lt;span class="code-keyword"&gt;To&lt;/span&gt; DataGridView1.RowCount - &lt;span class="code-digit"&gt;1&lt;/span&gt;
               DataGridView1.Rows(i).Visible = &lt;span class="code-keyword"&gt;True&lt;/span&gt;
           &lt;span class="code-keyword"&gt;Next&lt;/span&gt;
       &lt;span class="code-keyword"&gt;Else&lt;/span&gt;
           DataGridView1.ClearSelection()
           &lt;span class="code-keyword"&gt;For&lt;/span&gt; i = &lt;span class="code-digit"&gt;0&lt;/span&gt; &lt;span class="code-keyword"&gt;To&lt;/span&gt; DataGridView1.RowCount - &lt;span class="code-digit"&gt;1&lt;/span&gt;
               &lt;span class="code-keyword"&gt;Try&lt;/span&gt;
                   DataGridView1.Rows(i).Visible = (DataGridView1.Rows(i).Cells(&lt;span class="code-digit"&gt;1&lt;/span&gt;).Value &lt;span class="code-keyword"&gt;Like&lt;/span&gt; &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;*"&lt;/span&gt; + TxtboxReserch.Text + &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;*"&lt;/span&gt;)

               &lt;span class="code-keyword"&gt;Catch&lt;/span&gt; ex &lt;span class="code-keyword"&gt;As&lt;/span&gt; Exception

               &lt;span class="code-keyword"&gt;End&lt;/span&gt; &lt;span class="code-keyword"&gt;Try&lt;/span&gt;
           &lt;span class="code-keyword"&gt;Next&lt;/span&gt;
       &lt;span class="code-keyword"&gt;End&lt;/span&gt; &lt;span class="code-keyword"&gt;If&lt;/span&gt;
   &lt;span class="code-keyword"&gt;End&lt;/span&gt; &lt;span class="code-keyword"&gt;Sub&lt;/span&gt;
&lt;/pre&gt;</description>
      <author>medi dimie</author>
      <link>https://www.codeproject.com/Messages/5990708/Research-in-datagridview</link>
      <pubDate>Sat, 02 Mar 2024 11:52:00 GMT</pubDate>
      <guid>3_5990708</guid>
      <subject>Visual Basic</subject>
    </item>
    <item>
      <title>My problem is with the Next button. At the last rows, this message appears : System.ArgumentOutOfRangeException: 'Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index'</title>
      <description>&lt;div class='pre-lang' id='premain603208'&gt;&lt;div&gt;VB&lt;/div&gt;&lt;div class='pre-action-link'&gt;&lt;span id='copycode603208' class='copy-code' data-index='603208' style='visibility:hidden'&gt;&lt;svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' viewBox='0 0 460 460' style='width: 16px;height:16px;' xml:space='preserve'&gt;&lt;g&gt;&lt;path d='M425.934,0H171.662c-18.122,0-32.864,14.743-32.864,32.864v77.134h30V32.864c0-1.579,1.285-2.864,2.864-2.864h254.272     c1.579,0,2.864,1.285,2.864,2.864v254.272c0,1.58-1.285,2.865-2.864,2.865h-74.729v30h74.729 c18.121,0,32.864-14.743,32.864-32.865V32.864C458.797,14.743,444.055,0,425.934,0z'&gt;&lt;/path&gt;&lt;path d='M288.339,139.998H34.068c-18.122,0-32.865,14.743-32.865,32.865v254.272C1.204,445.257,15.946,460,34.068,460h254.272 c18.122,0,32.865-14.743,32.865-32.864V172.863C321.206,154.741,306.461,139.998,288.339,139.998z M288.341,430H34.068    c-1.58,0-2.865-1.285-2.865-2.864V172.863c0-1.58,1.285-2.865,2.865-2.865h254.272c1.58,0,2.865,1.285,2.865,2.865v254.273h0.001 C291.206,428.715,289.92,430,288.341,430z'&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;pre id='pre603208' style='margin-top:0;' class='lang-vb' data-language='VB' data-allowShrink='True' data-collapse='False'&gt;

&lt;/pre&gt;&lt;br /&gt;
&lt;div class='pre-lang' id='premain87157'&gt;&lt;div&gt;&lt;/div&gt;&lt;div class='pre-action-link'&gt;&lt;span id='copycode87157' class='copy-code' data-index='87157' style='visibility:hidden'&gt;&lt;svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' viewBox='0 0 460 460' style='width: 16px;height:16px;' xml:space='preserve'&gt;&lt;g&gt;&lt;path d='M425.934,0H171.662c-18.122,0-32.864,14.743-32.864,32.864v77.134h30V32.864c0-1.579,1.285-2.864,2.864-2.864h254.272     c1.579,0,2.864,1.285,2.864,2.864v254.272c0,1.58-1.285,2.865-2.864,2.865h-74.729v30h74.729 c18.121,0,32.864-14.743,32.864-32.865V32.864C458.797,14.743,444.055,0,425.934,0z'&gt;&lt;/path&gt;&lt;path d='M288.339,139.998H34.068c-18.122,0-32.865,14.743-32.865,32.865v254.272C1.204,445.257,15.946,460,34.068,460h254.272 c18.122,0,32.865-14.743,32.865-32.864V172.863C321.206,154.741,306.461,139.998,288.339,139.998z M288.341,430H34.068    c-1.58,0-2.865-1.285-2.865-2.864V172.863c0-1.58,1.285-2.865,2.865-2.865h254.272c1.58,0,2.865,1.285,2.865,2.865v254.273h0.001 C291.206,428.715,289.92,430,288.341,430z'&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;pre id='pre87157' style='margin-top:0;' data-allowShrink='True' data-collapse='False'&gt;
Private Sub Button9_Click(sender As &lt;span class="code-sdkkeyword"&gt;Object&lt;/span&gt;, e As EventArgs) Handles Button9.Click
      Dim i As Integer = DataGridView1.CurrentRow.Index + &lt;span class="code-digit"&gt;1&lt;/span&gt;
      If i &amp;lt; &lt;span class="code-digit"&gt;0&lt;/span&gt; Then i = &lt;span class="code-digit"&gt;0&lt;/span&gt;
      DataGridView1.CurrentCell = Me.DataGridView1.Rows(i).Cells(&lt;span class="code-digit"&gt;0&lt;/span&gt;)
      DataGridView1.Rows(i).Selected = True







  End Sub
&lt;/pre&gt;</description>
      <author>anis78</author>
      <link>https://www.codeproject.com/Messages/5985279/My-problem-is-with-the-Next-button-At-the-last-row</link>
      <pubDate>Wed, 31 Jan 2024 12:46:00 GMT</pubDate>
      <guid>3_5985279</guid>
      <subject>Visual Basic</subject>
    </item>
    <item>
      <title>VB6 printing bitmap or image on a POS Printer</title>
      <description>I want to output a bitmap file to a POS printer using VB6. The ESC/POS mode should be used. &lt;br /&gt;
Does the file need to be converted? If yes how? Is there documentation or an example? &lt;br /&gt;
Printing and formatting text is no problem. I just can't find any way to solve the problem.&lt;br /&gt;
&lt;br /&gt;
Thank you.</description>
      <author>Member 14914301</author>
      <link>https://www.codeproject.com/Messages/5985076/VB6-printing-bitmap-or-image-on-a-POS-Printer</link>
      <pubDate>Tue, 30 Jan 2024 10:37:00 GMT</pubDate>
      <guid>3_5985076</guid>
      <subject>Visual Basic</subject>
    </item>
    <item>
      <title>Unhandled exception at 0x77702d63 (shell32.dll) in blahblah.exe What does this really mean?</title>
      <description>I'm completely confused with this error from VS2012 and VS2019 on an VB.Net app that has been running fine for years. This pops up while running a simple sub at the codeline: &lt;div class='pre-lang' id='premain593826'&gt;&lt;div&gt;&lt;/div&gt;&lt;div class='pre-action-link'&gt;&lt;span id='copycode593826' class='copy-code' data-index='593826' style='visibility:hidden'&gt;&lt;svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' viewBox='0 0 460 460' style='width: 16px;height:16px;' xml:space='preserve'&gt;&lt;g&gt;&lt;path d='M425.934,0H171.662c-18.122,0-32.864,14.743-32.864,32.864v77.134h30V32.864c0-1.579,1.285-2.864,2.864-2.864h254.272     c1.579,0,2.864,1.285,2.864,2.864v254.272c0,1.58-1.285,2.865-2.864,2.865h-74.729v30h74.729 c18.121,0,32.864-14.743,32.864-32.865V32.864C458.797,14.743,444.055,0,425.934,0z'&gt;&lt;/path&gt;&lt;path d='M288.339,139.998H34.068c-18.122,0-32.865,14.743-32.865,32.865v254.272C1.204,445.257,15.946,460,34.068,460h254.272 c18.122,0,32.865-14.743,32.865-32.864V172.863C321.206,154.741,306.461,139.998,288.339,139.998z M288.341,430H34.068    c-1.58,0-2.865-1.285-2.865-2.864V172.863c0-1.58,1.285-2.865,2.865-2.865h254.272c1.58,0,2.865,1.285,2.865,2.865v254.273h0.001 C291.206,428.715,289.92,430,288.341,430z'&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;pre id='pre593826' style='margin-top:0;' data-allowShrink='True' data-collapse='False'&gt;
OpenFileDialog1.ShowDialog()&lt;/pre&gt;&lt;br /&gt;
What makes it really strange is that there multiple subs of this exact same OpenFileDialog on several other forms in this project that work perfectly fine. &lt;br /&gt;
I have removed the Dialog object from the form, replaced it, put a second Dialog object 'OpenFileDialog2'and still get the same results. This one Form out of 7 others just refuses to work with me on this&lt;br /&gt;
Anybody got a clue on what I should be looking for, please hit me with it, this is actually the most important OpenFileDialog in the whole project.&lt;br /&gt;
And Thank You in advance,</description>
      <author>Member 15109325</author>
      <link>https://www.codeproject.com/Messages/5984667/Unhandled-exception-at-0x77702d63-shell32-dll-in-b</link>
      <pubDate>Sat, 27 Jan 2024 10:32:00 GMT</pubDate>
      <guid>3_5984667</guid>
      <subject>Visual Basic</subject>
    </item>
    <item>
      <title>Access Outlook via VB.Net</title>
      <description>Years ago, I wrote a VB6 App to add creation date to certain Outlook items.  Now, I don't even know how to access Outlook folders via VB.NET.  A complete code sample to run through the Outlook folders would be much appreciated.&lt;br /&gt;
Thanks.&lt;br /&gt;
Marvin</description>
      <author>Marvin Wapnitsky</author>
      <link>https://www.codeproject.com/Messages/5984622/Access-Outlook-via-VB-Net</link>
      <pubDate>Fri, 26 Jan 2024 22:02:00 GMT</pubDate>
      <guid>3_5984622</guid>
      <subject>Visual Basic</subject>
    </item>
    <item>
      <title>Which Visual Studio is right for ME?</title>
      <description>Simple question for experienced and sympathetic VB.Net developers.&lt;br /&gt;
I'm a senior citizen and I haven't really done much Dev for a long time (15yrs) but have occasionally worked on VS12 with VB.Net. I am NOT a trained/schooled developer...mostly self taught to do enough to get by in my own work. My dev is for me only, I don't build with pro teams or any product for sale. It's just to handle MY databases and other app needs. &lt;br /&gt;
Looking at the various VS platforms from VS17 thru VS22 I am torn on which way to go as I don't need to be overwhelmed by a steep learning curve just to connect to Access-Office 365 and import/export, manage/report data.&lt;br /&gt;
I would appreciate general recommendation before I d/l &amp; install something that intimidates or scares the hell out of me. I'm leaning towards VS17 but could be persuaded otherwise. Please be gentle  &lt;img src="https://codeproject.global.ssl.fastly.net/script/Forums/Images/smiley_tongue.gif" align="top" alt="Poke tongue | ;-P" /&gt;  &lt;br /&gt;
I appreciate your responses, thank you.</description>
      <author>Member 15109325</author>
      <link>https://www.codeproject.com/Messages/5983649/Which-Visual-Studio-is-right-for-ME</link>
      <pubDate>Mon, 22 Jan 2024 06:15:00 GMT</pubDate>
      <guid>3_5983649</guid>
      <subject>Visual Basic</subject>
    </item>
    <item>
      <title>mysql to tally</title>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
I am looking for a solution to transfer my mysql data into&lt;br /&gt;
tally using vb6. &lt;br /&gt;
&lt;br /&gt;
please help me.</description>
      <author>CHANDRA SEKAR Nov2022</author>
      <link>https://www.codeproject.com/Messages/5975681/mysql-to-tally</link>
      <pubDate>Fri, 01 Dec 2023 07:52:00 GMT</pubDate>
      <guid>3_5975681</guid>
      <subject>Visual Basic</subject>
    </item>
    <item>
      <title>How do i populate say combobox2 depending on a *selected* ms access database table in combobox1 without writing If statements for each and every table in the database in vb.net windows forms</title>
      <description>&lt;div class='pre-lang' id='premain214145'&gt;&lt;div&gt;&lt;/div&gt;&lt;div class='pre-action-link'&gt;&lt;span id='copycode214145' class='copy-code' data-index='214145' style='visibility:hidden'&gt;&lt;svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' viewBox='0 0 460 460' style='width: 16px;height:16px;' xml:space='preserve'&gt;&lt;g&gt;&lt;path d='M425.934,0H171.662c-18.122,0-32.864,14.743-32.864,32.864v77.134h30V32.864c0-1.579,1.285-2.864,2.864-2.864h254.272     c1.579,0,2.864,1.285,2.864,2.864v254.272c0,1.58-1.285,2.865-2.864,2.865h-74.729v30h74.729 c18.121,0,32.864-14.743,32.864-32.865V32.864C458.797,14.743,444.055,0,425.934,0z'&gt;&lt;/path&gt;&lt;path d='M288.339,139.998H34.068c-18.122,0-32.865,14.743-32.865,32.865v254.272C1.204,445.257,15.946,460,34.068,460h254.272 c18.122,0,32.865-14.743,32.865-32.864V172.863C321.206,154.741,306.461,139.998,288.339,139.998z M288.341,430H34.068    c-1.58,0-2.865-1.285-2.865-2.864V172.863c0-1.58,1.285-2.865,2.865-2.865h254.272c1.58,0,2.865,1.285,2.865,2.865v254.273h0.001 C291.206,428.715,289.92,430,288.341,430z'&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;pre id='pre214145' style='margin-top:0;' data-allowShrink='True' data-collapse='False'&gt;
I would want to prompt user to &lt;span class="code-sdkkeyword"&gt;select&lt;/span&gt; a tool name &lt;span class="code-sdkkeyword"&gt;from&lt;/span&gt; combobox1, then &lt;span class="code-keyword"&gt;out&lt;/span&gt; automatically, combobox2 gets filled with tool description and size, which &lt;span class="code-keyword"&gt;is&lt;/span&gt; a column &lt;span class="code-keyword"&gt;in&lt;/span&gt; the selected table. Currently i have been &lt;span class="code-keyword"&gt;using&lt;/span&gt; the following code, however the problem comes &lt;span class="code-sdkkeyword"&gt;when&lt;/span&gt; i would like to update the database and &lt;span class="code-keyword"&gt;add&lt;/span&gt; another table. This would mean adding the code &lt;span class="code-keyword"&gt;in&lt;/span&gt; the application &lt;span class="code-keyword"&gt;as&lt;/span&gt; well. I would like the application to be able to detect that a &lt;span class="code-keyword"&gt;new&lt;/span&gt; tool table has been added and show that automatically without having to code again&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class='pre-lang' id='premain463612'&gt;&lt;div&gt;&lt;/div&gt;&lt;div class='pre-action-link'&gt;&lt;span id='copycode463612' class='copy-code' data-index='463612' style='visibility:hidden'&gt;&lt;svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' viewBox='0 0 460 460' style='width: 16px;height:16px;' xml:space='preserve'&gt;&lt;g&gt;&lt;path d='M425.934,0H171.662c-18.122,0-32.864,14.743-32.864,32.864v77.134h30V32.864c0-1.579,1.285-2.864,2.864-2.864h254.272     c1.579,0,2.864,1.285,2.864,2.864v254.272c0,1.58-1.285,2.865-2.864,2.865h-74.729v30h74.729 c18.121,0,32.864-14.743,32.864-32.865V32.864C458.797,14.743,444.055,0,425.934,0z'&gt;&lt;/path&gt;&lt;path d='M288.339,139.998H34.068c-18.122,0-32.865,14.743-32.865,32.865v254.272C1.204,445.257,15.946,460,34.068,460h254.272 c18.122,0,32.865-14.743,32.865-32.864V172.863C321.206,154.741,306.461,139.998,288.339,139.998z M288.341,430H34.068    c-1.58,0-2.865-1.285-2.865-2.864V172.863c0-1.58,1.285-2.865,2.865-2.865h254.272c1.58,0,2.865,1.285,2.865,2.865v254.273h0.001 C291.206,428.715,289.92,430,288.341,430z'&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;pre id='pre463612' style='margin-top:0;' data-allowShrink='True' data-collapse='False'&gt;
Private Sub Form1_Load(sender As &lt;span class="code-sdkkeyword"&gt;Object&lt;/span&gt;, e As EventArgs) Handles MyBase.Load

&lt;span class="code-string"&gt;&amp;#39;&lt;/span&gt;&lt;span class="code-string"&gt; ADDING TABLE NAMES TO COMBOBOX 1 (TOOL NAME)

    con.Open()

    Dim schemaTable As DataTable = con.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, New Object() {Nothing, Nothing, Nothing, "TABLE"})

   For Each dr As DataRow In schemaTable.Rows

            Combobox1.Items.Add(dr.Item("TABLE_NAME"))

   Next

End Sub

Private Sub ComboBox1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles Combobox1.SelectedIndexChanged          

&amp;#39;&lt;/span&gt;FILLING COMBOBOX &lt;span class="code-digit"&gt;2&lt;/span&gt; (TOOL DESCRIPTION AND SIZE) DEPENDING ON SELECTION IN COMBOBOX &lt;span class="code-digit"&gt;1&lt;/span&gt; (TOOL NAME)

 If Combobox1.SelectedIndex = &lt;span class="code-digit"&gt;1&lt;/span&gt; Then             

Combobox2.Text = &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;"&lt;/span&gt;                         

con.Open()             

Combobox2.Items.Clear()             

Dim dr As OleDbDataReader             

Dim cmd As New OleDbCommand 

cmd.CommandText = &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;Select * from 14_POUND_HAMMER"&lt;/span&gt;            

cmd.Connection = con             

dr = cmd.ExecuteReader             

While dr.Read                 

Combobox2.Items.Add(dr.GetString(&lt;span class="code-digit"&gt;1&lt;/span&gt;))              

End While             

dr.Close()             

con.Close()



 ElseIf Combobox1.SelectedIndex = &lt;span class="code-digit"&gt;2&lt;/span&gt; Then             

Combobox2.Text = &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;"&lt;/span&gt;                       

con.Open()             

Combobox2.Items.Clear()             

Dim dr As OleDbDataReader             

Dim cmd As New OleDbCommand             

cmd.CommandText = &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;Select * from 3_QUARTER_IMPACT_WRENCH"&lt;/span&gt;             
cmd.Connection = con             

dr = cmd.ExecuteReader             

While dr.Read                 

Combobox2.Items.Add(dr.GetString(&lt;span class="code-digit"&gt;0&lt;/span&gt;))             

End While             

dr.Close()             

con.Close()



ElseIf Combobox1.SelectedIndex = &lt;span class="code-digit"&gt;3&lt;/span&gt; Then             

Combobox2.Text = &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;"&lt;/span&gt;                         

con.Open()             

Combobox2.Items.Clear()             

Dim dr As OleDbDataReader             

Dim cmd As New OleDbCommand             

cmd.CommandText = &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;Select * from ABRASIVE_CUT_OFF_SAW "&lt;/span&gt;        
cmd.Connection = con             

dr = cmd.ExecuteReader             

While dr.Read                 

Combobox2.Items.Add(dr.GetString(&lt;span class="code-digit"&gt;0&lt;/span&gt;))             

End While             

dr.Close()             

con.Close() &lt;/pre&gt;</description>
      <author>Kudzanai Victor</author>
      <link>https://www.codeproject.com/Messages/5972146/How-do-i-populate-say-combobox2-depending-on-a-sel</link>
      <pubDate>Thu, 09 Nov 2023 05:41:00 GMT</pubDate>
      <guid>3_5972146</guid>
      <subject>Visual Basic</subject>
    </item>
    <item>
      <title>Change Field Data Type in SQLite DB and Use with changes</title>
      <description>I have a SQLite DB attached to a VB.Net app. I have about two years of data I would like to not loose.&lt;br /&gt;
So with DB Browser I can change the two fields from TEXT to INTEGER.&lt;br /&gt;
Then make necessary changes in the code to reflect the changes in the DB.&lt;br /&gt;
Below are the variables that are declared in a Data Module used for searching&lt;br /&gt;
&lt;div class='pre-lang' id='premain804756'&gt;&lt;div&gt;&lt;/div&gt;&lt;div class='pre-action-link'&gt;&lt;span id='copycode804756' class='copy-code' data-index='804756' style='visibility:hidden'&gt;&lt;svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' viewBox='0 0 460 460' style='width: 16px;height:16px;' xml:space='preserve'&gt;&lt;g&gt;&lt;path d='M425.934,0H171.662c-18.122,0-32.864,14.743-32.864,32.864v77.134h30V32.864c0-1.579,1.285-2.864,2.864-2.864h254.272     c1.579,0,2.864,1.285,2.864,2.864v254.272c0,1.58-1.285,2.865-2.864,2.865h-74.729v30h74.729 c18.121,0,32.864-14.743,32.864-32.865V32.864C458.797,14.743,444.055,0,425.934,0z'&gt;&lt;/path&gt;&lt;path d='M288.339,139.998H34.068c-18.122,0-32.865,14.743-32.865,32.865v254.272C1.204,445.257,15.946,460,34.068,460h254.272 c18.122,0,32.865-14.743,32.865-32.864V172.863C321.206,154.741,306.461,139.998,288.339,139.998z M288.341,430H34.068    c-1.58,0-2.865-1.285-2.865-2.864V172.863c0-1.58,1.285-2.865,2.865-2.865h254.272c1.58,0,2.865,1.285,2.865,2.865v254.273h0.001 C291.206,428.715,289.92,430,288.341,430z'&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;pre id='pre804756' style='margin-top:0;' data-allowShrink='True' data-collapse='False'&gt;
Public gvYear As &lt;span class="code-sdkkeyword"&gt;String&lt;/span&gt;
Public gvFromMonth As Integer
Public gvToMonth As Integer
&lt;/pre&gt;&lt;br /&gt;
Only change here gvYear will become an Integer&lt;br /&gt;
&lt;br /&gt;
Here is the code that created the original DB&lt;br /&gt;
&lt;div class='pre-lang' id='premain757468'&gt;&lt;div&gt;&lt;/div&gt;&lt;div class='pre-action-link'&gt;&lt;span id='copycode757468' class='copy-code' data-index='757468' style='visibility:hidden'&gt;&lt;svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' viewBox='0 0 460 460' style='width: 16px;height:16px;' xml:space='preserve'&gt;&lt;g&gt;&lt;path d='M425.934,0H171.662c-18.122,0-32.864,14.743-32.864,32.864v77.134h30V32.864c0-1.579,1.285-2.864,2.864-2.864h254.272     c1.579,0,2.864,1.285,2.864,2.864v254.272c0,1.58-1.285,2.865-2.864,2.865h-74.729v30h74.729 c18.121,0,32.864-14.743,32.864-32.865V32.864C458.797,14.743,444.055,0,425.934,0z'&gt;&lt;/path&gt;&lt;path d='M288.339,139.998H34.068c-18.122,0-32.865,14.743-32.865,32.865v254.272C1.204,445.257,15.946,460,34.068,460h254.272 c18.122,0,32.865-14.743,32.865-32.864V172.863C321.206,154.741,306.461,139.998,288.339,139.998z M288.341,430H34.068    c-1.58,0-2.865-1.285-2.865-2.864V172.863c0-1.58,1.285-2.865,2.865-2.865h254.272c1.58,0,2.865,1.285,2.865,2.865v254.273h0.001 C291.206,428.715,289.92,430,288.341,430z'&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;pre id='pre757468' style='margin-top:0;' data-allowShrink='True' data-collapse='False'&gt;
Public Sub makeTxData()

       &lt;span class="code-string"&gt;&amp;#39;&lt;/span&gt;&lt;span class="code-string"&gt;create table TxDataTable String for cmd
       Dim create_table As String = String.Empty
       create_table = "CREATE TABLE IF NOT EXISTS TxData(
                       TID INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
                       txSortDate TEXT,
                       txYear TEXT,
                       txType TEXT,
                       txAmount TEXT,
                       txCKNum TEXT,
                       txDesc TEXT,
                       txBalance TEXT,
                       txSearchMonth TEXT)"

       Dim dbTable As String = "TxDataTable"
&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
Changes here txYear and txSearchMonth will be INTEGERS txSearchMonth int that reflects month of year&lt;br /&gt;
&lt;br /&gt;
Steps for Process&lt;br /&gt;
Copy DB and Paste DB in another folder&lt;br /&gt;
Make Changes to Code that creates the DB&lt;br /&gt;
Make Changes in the DB manually with DB Browser&lt;br /&gt;
Uninstall the app and make new exe file with Inno Setup with new GUID&lt;br /&gt;
Create the new DB and delete the DB that is created then Paste the OLD DB in the new app version&lt;br /&gt;
&lt;br /&gt;
I am sure I am overlooking something here so I guess the question is&lt;br /&gt;
Will this work ?&lt;br /&gt;
Is there a better way to accomplish this ?&lt;br /&gt;
Because this is a Check Book app I hate to loose the data.&lt;br /&gt;
What are the risks of this happening ?</description>
      <author>Choroid</author>
      <link>https://www.codeproject.com/Messages/5969695/Change-Field-Data-Type-in-SQLite-DB-and-Use-with-c</link>
      <pubDate>Sat, 28 Oct 2023 01:47:00 GMT</pubDate>
      <guid>3_5969695</guid>
      <subject>Visual Basic</subject>
    </item>
    <item>
      <title>VB.Net SQLite Search Between two Integers</title>
      <description>I have a SQLite DB for a Check Book app that has a DB with the field txSearchMonth&lt;br /&gt;
which contains a Integer corresponding to the Month of the Year.&lt;br /&gt;
I have written a search that lets the user select a month from two combo boxes and enter the year in a text box.&lt;br /&gt;
&lt;b&gt;The issue I am experiencing if I select Jan and Feb and enter the year my results includes the current month&lt;br /&gt;
NOT just January and February&lt;/b&gt; &lt;br /&gt;
I have tried various search statements to no avail.&lt;br /&gt;
I have used a DataModule to define these variables.&lt;br /&gt;
&lt;br /&gt;
&lt;div class='pre-lang' id='premain119691'&gt;&lt;div&gt;VB&lt;/div&gt;&lt;div class='pre-action-link'&gt;&lt;span id='copycode119691' class='copy-code' data-index='119691' style='visibility:hidden'&gt;&lt;svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' viewBox='0 0 460 460' style='width: 16px;height:16px;' xml:space='preserve'&gt;&lt;g&gt;&lt;path d='M425.934,0H171.662c-18.122,0-32.864,14.743-32.864,32.864v77.134h30V32.864c0-1.579,1.285-2.864,2.864-2.864h254.272     c1.579,0,2.864,1.285,2.864,2.864v254.272c0,1.58-1.285,2.865-2.864,2.865h-74.729v30h74.729 c18.121,0,32.864-14.743,32.864-32.865V32.864C458.797,14.743,444.055,0,425.934,0z'&gt;&lt;/path&gt;&lt;path d='M288.339,139.998H34.068c-18.122,0-32.865,14.743-32.865,32.865v254.272C1.204,445.257,15.946,460,34.068,460h254.272 c18.122,0,32.865-14.743,32.865-32.864V172.863C321.206,154.741,306.461,139.998,288.339,139.998z M288.341,430H34.068    c-1.58,0-2.865-1.285-2.865-2.864V172.863c0-1.58,1.285-2.865,2.865-2.865h254.272c1.58,0,2.865,1.285,2.865,2.865v254.273h0.001 C291.206,428.715,289.92,430,288.341,430z'&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;pre id='pre119691' style='margin-top:0;' class='lang-vb' data-language='VB' data-allowShrink='True' data-collapse='False'&gt;
&lt;span class="code-keyword"&gt;Public&lt;/span&gt; gvYear &lt;span class="code-keyword"&gt;As&lt;/span&gt; &lt;span class="code-keyword"&gt;String&lt;/span&gt;
&lt;span class="code-keyword"&gt;Public&lt;/span&gt; gvFromMonth &lt;span class="code-keyword"&gt;As&lt;/span&gt; &lt;span class="code-keyword"&gt;Integer&lt;/span&gt;
&lt;span class="code-keyword"&gt;Public&lt;/span&gt; gvToMonth &lt;span class="code-keyword"&gt;As&lt;/span&gt; &lt;span class="code-keyword"&gt;Integer&lt;/span&gt;
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Data is displayed in a DataGridView that is NOT bound to the database.&lt;br /&gt;
I will post the complete code but the routine that is failing is &lt;b&gt;gvSearchType = "MoRangeYr" Then&lt;/b&gt;&lt;br /&gt;
&lt;div class='pre-lang' id='premain533300'&gt;&lt;div&gt;VB&lt;/div&gt;&lt;div class='pre-action-link'&gt;&lt;span id='copycode533300' class='copy-code' data-index='533300' style='visibility:hidden'&gt;&lt;svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' viewBox='0 0 460 460' style='width: 16px;height:16px;' xml:space='preserve'&gt;&lt;g&gt;&lt;path d='M425.934,0H171.662c-18.122,0-32.864,14.743-32.864,32.864v77.134h30V32.864c0-1.579,1.285-2.864,2.864-2.864h254.272     c1.579,0,2.864,1.285,2.864,2.864v254.272c0,1.58-1.285,2.865-2.864,2.865h-74.729v30h74.729 c18.121,0,32.864-14.743,32.864-32.865V32.864C458.797,14.743,444.055,0,425.934,0z'&gt;&lt;/path&gt;&lt;path d='M288.339,139.998H34.068c-18.122,0-32.865,14.743-32.865,32.865v254.272C1.204,445.257,15.946,460,34.068,460h254.272 c18.122,0,32.865-14.743,32.865-32.864V172.863C321.206,154.741,306.461,139.998,288.339,139.998z M288.341,430H34.068    c-1.58,0-2.865-1.285-2.865-2.864V172.863c0-1.58,1.285-2.865,2.865-2.865h254.272c1.58,0,2.865,1.285,2.865,2.865v254.273h0.001 C291.206,428.715,289.92,430,288.341,430z'&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;pre id='pre533300' style='margin-top:0;' class='lang-vb' data-language='VB' data-allowShrink='True' data-collapse='False'&gt;
&lt;span class="code-keyword"&gt;Private&lt;/span&gt; &lt;span class="code-keyword"&gt;Sub&lt;/span&gt; ViewSearches()

    &lt;span class="code-keyword"&gt;Dim&lt;/span&gt; intID &lt;span class="code-keyword"&gt;As&lt;/span&gt; &lt;span class="code-keyword"&gt;Integer&lt;/span&gt;
    &lt;span class="code-keyword"&gt;Dim&lt;/span&gt; strDate &lt;span class="code-keyword"&gt;As&lt;/span&gt; &lt;span class="code-keyword"&gt;String&lt;/span&gt;
    &lt;span class="code-keyword"&gt;Dim&lt;/span&gt; strTxType &lt;span class="code-keyword"&gt;As&lt;/span&gt; &lt;span class="code-keyword"&gt;String&lt;/span&gt;
    &lt;span class="code-keyword"&gt;Dim&lt;/span&gt; strAmt &lt;span class="code-keyword"&gt;As&lt;/span&gt; &lt;span class="code-keyword"&gt;Decimal&lt;/span&gt;
    &lt;span class="code-keyword"&gt;Dim&lt;/span&gt; strCKNum &lt;span class="code-keyword"&gt;As&lt;/span&gt; &lt;span class="code-keyword"&gt;String&lt;/span&gt;
    &lt;span class="code-keyword"&gt;Dim&lt;/span&gt; strDesc &lt;span class="code-keyword"&gt;As&lt;/span&gt; &lt;span class="code-keyword"&gt;String&lt;/span&gt;
    &lt;span class="code-keyword"&gt;Dim&lt;/span&gt; strBal &lt;span class="code-keyword"&gt;As&lt;/span&gt; &lt;span class="code-keyword"&gt;Decimal&lt;/span&gt;
    &lt;span class="code-keyword"&gt;Dim&lt;/span&gt; rowCount &lt;span class="code-keyword"&gt;As&lt;/span&gt; &lt;span class="code-keyword"&gt;Integer&lt;/span&gt;
    &lt;span class="code-keyword"&gt;Dim&lt;/span&gt; maxRowCount &lt;span class="code-keyword"&gt;As&lt;/span&gt; &lt;span class="code-keyword"&gt;Integer&lt;/span&gt;
    &lt;span class="code-keyword"&gt;Dim&lt;/span&gt; emptyStr &lt;span class="code-keyword"&gt;As&lt;/span&gt; &lt;span class="code-keyword"&gt;String&lt;/span&gt; = &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;  "&lt;/span&gt;


    &lt;span class="code-keyword"&gt;Using&lt;/span&gt; conn &lt;span class="code-keyword"&gt;As&lt;/span&gt; &lt;span class="code-keyword"&gt;New&lt;/span&gt; SQLiteConnection($&lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;Data Source = &amp;#39;{gv_dbName}&amp;#39;;Version=3;"&lt;/span&gt;)
        conn.Open()

        &lt;span class="code-keyword"&gt;Using&lt;/span&gt; cmd &lt;span class="code-keyword"&gt;As&lt;/span&gt; &lt;span class="code-keyword"&gt;New&lt;/span&gt; SQLiteCommand(&lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;"&lt;/span&gt;, conn)
            &lt;span class="code-comment"&gt;&amp;#39;&lt;/span&gt;&lt;span class="code-comment"&gt;&amp;#39;Using cmd As SQLiteCommand = New SQLiteCommand($"SELECT * FROM TxData", conn)&lt;/span&gt;
            &lt;span class="code-keyword"&gt;If&lt;/span&gt; gvSearchType = &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;All"&lt;/span&gt; &lt;span class="code-keyword"&gt;Then&lt;/span&gt;
                cmd.CommandText = &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;SELECT * FROM TxData"&lt;/span&gt;
            &lt;span class="code-keyword"&gt;ElseIf&lt;/span&gt; gvSearchType = &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;MoYr"&lt;/span&gt; &lt;span class="code-keyword"&gt;Then&lt;/span&gt;
                cmd.CommandText = &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;SELECT * FROM TxData WHERE txSearchMonth = $gvFromMonth AND txYear = $gvYear "&lt;/span&gt;
                cmd.Parameters.AddWithValue(&lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;$gvFromMonth"&lt;/span&gt;, gvFromMonth)
                cmd.Parameters.AddWithValue(&lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;$gvYear"&lt;/span&gt;, gvYear)
            &lt;span class="code-keyword"&gt;ElseIf&lt;/span&gt; gvSearchType = &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;TxMoYr"&lt;/span&gt; &lt;span class="code-keyword"&gt;Then&lt;/span&gt;
                cmd.CommandText = &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;SELECT * FROM TxData WHERE txType = $gvTxType AND txSearchMonth = $gvFromMonth AND txYear = $gvYear "&lt;/span&gt;
                cmd.Parameters.AddWithValue(&lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;$gvTxType"&lt;/span&gt;, gvTxType)
                cmd.Parameters.AddWithValue(&lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;$gvFromMonth"&lt;/span&gt;, gvFromMonth)
                cmd.Parameters.AddWithValue(&lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;$gvYear"&lt;/span&gt;, gvYear)
            &lt;span class="code-keyword"&gt;ElseIf&lt;/span&gt; gvSearchType = &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;MoRangeYr"&lt;/span&gt; &lt;span class="code-keyword"&gt;Then&lt;/span&gt;
                cmd.CommandText = &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;SELECT * FROM TxData WHERE txSearchMonth &amp;gt;= $gvFromMonth AND txSearchMonth &amp;lt;= $gvToMonth AND txYear = $gvYear "&lt;/span&gt;
                cmd.Parameters.AddWithValue(&lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;$gvFromMonth"&lt;/span&gt;, gvFromMonth)
                cmd.Parameters.AddWithValue(&lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;$gvToMonth"&lt;/span&gt;, gvToMonth)
                cmd.Parameters.AddWithValue(&lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;$gvYear"&lt;/span&gt;, gvYear)
            &lt;span class="code-keyword"&gt;ElseIf&lt;/span&gt; gvSearchType = &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;Year"&lt;/span&gt; &lt;span class="code-keyword"&gt;Then&lt;/span&gt;
                cmd.CommandText = &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;SELECT * FROM TxData WHERE txYear = $gvYear"&lt;/span&gt;
                cmd.Parameters.AddWithValue(&lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;$gvYear"&lt;/span&gt;, gvYear)
            &lt;span class="code-keyword"&gt;End&lt;/span&gt; &lt;span class="code-keyword"&gt;If&lt;/span&gt;


            &lt;span class="code-keyword"&gt;Using&lt;/span&gt; rdr &lt;span class="code-keyword"&gt;As&lt;/span&gt; SQLite.SQLiteDataReader = cmd.ExecuteReader
                &lt;span class="code-comment"&gt;&amp;#39;&lt;/span&gt;&lt;span class="code-comment"&gt;dgvTX.DataSource = rdr&lt;/span&gt;
                &lt;span class="code-comment"&gt;&amp;#39;&lt;/span&gt;&lt;span class="code-comment"&gt;Statement Above is when DB is bound to dgvTX&lt;/span&gt;
                &lt;span class="code-comment"&gt;&amp;#39;&lt;/span&gt;&lt;span class="code-comment"&gt;============================================&lt;/span&gt;

                &lt;span class="code-keyword"&gt;While&lt;/span&gt; rdr.Read()
                    intID = &lt;span class="code-keyword"&gt;CInt&lt;/span&gt;((rdr(&lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;TID"&lt;/span&gt;)))
                    strDate = rdr(&lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;txSortDate"&lt;/span&gt;).ToString
                    strTxType = rdr(&lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;txType"&lt;/span&gt;).ToString
                    strAmt = &lt;span class="code-keyword"&gt;CDec&lt;/span&gt;(rdr(&lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;txAmount"&lt;/span&gt;))
                    strCKNum = rdr(&lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;txCKNum"&lt;/span&gt;).ToString
                    strDesc = rdr(&lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;txDesc"&lt;/span&gt;).ToString
                    strBal = &lt;span class="code-keyword"&gt;CDec&lt;/span&gt;(rdr(&lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;txBalance"&lt;/span&gt;))
                    dgvTX.Columns(&lt;span class="code-digit"&gt;3&lt;/span&gt;).DefaultCellStyle.Format = &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;N"&lt;/span&gt;
                    dgvTX.Columns(&lt;span class="code-digit"&gt;6&lt;/span&gt;).DefaultCellStyle.Format = &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;N"&lt;/span&gt;
                    &lt;span class="code-comment"&gt;&amp;#39;&lt;/span&gt;&lt;span class="code-comment"&gt;dgvTX.Columns(6).DefaultCellStyle.Format = "C"&amp;#39;Adds the $ sign and commas&lt;/span&gt;
                    dgvTX.Rows.Add(intID, strDate, strTxType, strAmt, strCKNum, strDesc, strBal, emptyStr)

                    rowCount = rowCount + &lt;span class="code-digit"&gt;1&lt;/span&gt;

                &lt;span class="code-keyword"&gt;End&lt;/span&gt; &lt;span class="code-keyword"&gt;While&lt;/span&gt;

                dgvTX.Columns(&lt;span class="code-digit"&gt;3&lt;/span&gt;).DefaultCellStyle.Format = &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;N"&lt;/span&gt;
                dgvTX.Columns(&lt;span class="code-digit"&gt;6&lt;/span&gt;).DefaultCellStyle.Format = &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;N"&lt;/span&gt;
                dgvTX.Sort(dgvTX.Columns(&lt;span class="code-digit"&gt;0&lt;/span&gt;), ListSortDirection.Descending)
            &lt;span class="code-keyword"&gt;End&lt;/span&gt; &lt;span class="code-keyword"&gt;Using&lt;/span&gt;
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
I decided to use just the corresponding integer for the month to simplify the search.&lt;br /&gt;
Perhaps too simplified ! Suggestions appreciated Code Welcomed I have tried various search statements.</description>
      <author>Choroid</author>
      <link>https://www.codeproject.com/Messages/5969096/VB-Net-SQLite-Search-Between-two-Integers</link>
      <pubDate>Wed, 25 Oct 2023 02:03:00 GMT</pubDate>
      <guid>3_5969096</guid>
      <subject>Visual Basic</subject>
    </item>
    <item>
      <title>Issue with "Windows Form App" Disappearing in VB.NET 2022</title>
      <description>I'm facing a problem with VB.NET 2022 that I recently installed on my PC. I'm new to programming, so I'd appreciate some guidance on this issue.&lt;br /&gt;
The problem I'm encountering is related to the "Windows Form App" template in VB.NET 2022. Here's what's happening:&lt;br /&gt;
&lt;br /&gt;
Initial Launch: When I launch VB.NET 2022 for the first time and create a new project using the "Windows Form App" template, everything works as expected. The form is displayed correctly.&lt;br /&gt;
&lt;br /&gt;
Subsequent Launches: However, if I close VB.NET and reopen it, the "Windows Form App" template seems to be missing. It's not available in the list of project templates. This happens every time I close and reopen VB.NET.&lt;br /&gt;
&lt;br /&gt;
Opening Previous Projects: Additionally, if I try to open a project that I created using the "Windows Form App" template, I encounter an error message. &lt;br /&gt;
&lt;br /&gt;
I'm really eager to learn and get started with programming, so this issue is quite frustrating for me. As a beginner, I would greatly appreciate any assistance or guidance you can provide to help me resolve this problem.&lt;br /&gt;
&lt;br /&gt;
Thank you so much for your time and help!</description>
      <author>ionline4u</author>
      <link>https://www.codeproject.com/Messages/5959130/Issue-with-Windows-Form-App-Disappearing-in-VB-NET</link>
      <pubDate>Sun, 27 Aug 2023 08:53:00 GMT</pubDate>
      <guid>3_5959130</guid>
      <subject>Visual Basic</subject>
    </item>
    <item>
      <title>PrinterSettings.CanDuplex appears to not be working</title>
      <description>Generating a small printing program.  I have Brother color laser printer that can duplex print.  However, when I get the CanDuplex value, it returns False:&lt;br /&gt;
&lt;br /&gt;
&lt;div class='pre-lang' id='premain308808'&gt;&lt;div&gt;&lt;/div&gt;&lt;div class='pre-action-link'&gt;&lt;span id='copycode308808' class='copy-code' data-index='308808' style='visibility:hidden'&gt;&lt;svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' viewBox='0 0 460 460' style='width: 16px;height:16px;' xml:space='preserve'&gt;&lt;g&gt;&lt;path d='M425.934,0H171.662c-18.122,0-32.864,14.743-32.864,32.864v77.134h30V32.864c0-1.579,1.285-2.864,2.864-2.864h254.272     c1.579,0,2.864,1.285,2.864,2.864v254.272c0,1.58-1.285,2.865-2.864,2.865h-74.729v30h74.729 c18.121,0,32.864-14.743,32.864-32.865V32.864C458.797,14.743,444.055,0,425.934,0z'&gt;&lt;/path&gt;&lt;path d='M288.339,139.998H34.068c-18.122,0-32.865,14.743-32.865,32.865v254.272C1.204,445.257,15.946,460,34.068,460h254.272 c18.122,0,32.865-14.743,32.865-32.864V172.863C321.206,154.741,306.461,139.998,288.339,139.998z M288.341,430H34.068    c-1.58,0-2.865-1.285-2.865-2.864V172.863c0-1.58,1.285-2.865,2.865-2.865h254.272c1.58,0,2.865,1.285,2.865,2.865v254.273h0.001 C291.206,428.715,289.92,430,288.341,430z'&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;pre id='pre308808' style='margin-top:0;' data-allowShrink='True' data-collapse='False'&gt;
pd.PrinterSettings.CanDuplex &lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
The interesting thing is that checking for color capability works just fine:&lt;br /&gt;
&lt;br /&gt;
&lt;div class='pre-lang' id='premain574370'&gt;&lt;div&gt;&lt;/div&gt;&lt;div class='pre-action-link'&gt;&lt;span id='copycode574370' class='copy-code' data-index='574370' style='visibility:hidden'&gt;&lt;svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' viewBox='0 0 460 460' style='width: 16px;height:16px;' xml:space='preserve'&gt;&lt;g&gt;&lt;path d='M425.934,0H171.662c-18.122,0-32.864,14.743-32.864,32.864v77.134h30V32.864c0-1.579,1.285-2.864,2.864-2.864h254.272     c1.579,0,2.864,1.285,2.864,2.864v254.272c0,1.58-1.285,2.865-2.864,2.865h-74.729v30h74.729 c18.121,0,32.864-14.743,32.864-32.865V32.864C458.797,14.743,444.055,0,425.934,0z'&gt;&lt;/path&gt;&lt;path d='M288.339,139.998H34.068c-18.122,0-32.865,14.743-32.865,32.865v254.272C1.204,445.257,15.946,460,34.068,460h254.272 c18.122,0,32.865-14.743,32.865-32.864V172.863C321.206,154.741,306.461,139.998,288.339,139.998z M288.341,430H34.068    c-1.58,0-2.865-1.285-2.865-2.864V172.863c0-1.58,1.285-2.865,2.865-2.865h254.272c1.58,0,2.865,1.285,2.865,2.865v254.273h0.001 C291.206,428.715,289.92,430,288.341,430z'&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;pre id='pre574370' style='margin-top:0;' data-allowShrink='True' data-collapse='False'&gt;
pd.PrinterSettings.SupportsColor&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Accessing the printer via conventional MS Office applications (as well as other applications like Acrobat) has no problem identifying that the printer can print in duplex.&lt;br /&gt;
&lt;br /&gt;
Thoughts?&lt;br /&gt;
&lt;div class="signature"&gt;Pound to fit, paint to match&lt;/div&gt;</description>
      <author>lewist57</author>
      <link>https://www.codeproject.com/Messages/5958153/PrinterSettings-CanDuplex-appears-to-not-be-workin</link>
      <pubDate>Mon, 21 Aug 2023 15:27:00 GMT</pubDate>
      <guid>3_5958153</guid>
      <subject>Visual Basic</subject>
    </item>
    <item>
      <title>Convert/Read SQL Image field into pdf</title>
      <description>Please I am using VB.net 2019 and Sql 2016 and I have the below codes which inserts the pdf into the database successfully. But retrieving it becomes a problem for me and that is not the case for an image. I want to convert and retrieve this line of code into  pdf "Me.Pdf1.Image=Image.fromStream(ms)" which gives an exception because it is not an image but pdf in the database. Please help me. Thank&lt;br /&gt;
&lt;br /&gt;
&lt;div class='pre-lang' id='premain964375'&gt;&lt;div&gt;VB&lt;/div&gt;&lt;div class='pre-action-link'&gt;&lt;span id='copycode964375' class='copy-code' data-index='964375' style='visibility:hidden'&gt;&lt;svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' viewBox='0 0 460 460' style='width: 16px;height:16px;' xml:space='preserve'&gt;&lt;g&gt;&lt;path d='M425.934,0H171.662c-18.122,0-32.864,14.743-32.864,32.864v77.134h30V32.864c0-1.579,1.285-2.864,2.864-2.864h254.272     c1.579,0,2.864,1.285,2.864,2.864v254.272c0,1.58-1.285,2.865-2.864,2.865h-74.729v30h74.729 c18.121,0,32.864-14.743,32.864-32.865V32.864C458.797,14.743,444.055,0,425.934,0z'&gt;&lt;/path&gt;&lt;path d='M288.339,139.998H34.068c-18.122,0-32.865,14.743-32.865,32.865v254.272C1.204,445.257,15.946,460,34.068,460h254.272 c18.122,0,32.865-14.743,32.865-32.864V172.863C321.206,154.741,306.461,139.998,288.339,139.998z M288.341,430H34.068    c-1.58,0-2.865-1.285-2.865-2.864V172.863c0-1.58,1.285-2.865,2.865-2.865h254.272c1.58,0,2.865,1.285,2.865,2.865v254.273h0.001 C291.206,428.715,289.92,430,288.341,430z'&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;pre id='pre964375' style='margin-top:0;' class='lang-vb' data-language='VB' data-allowShrink='True' data-collapse='False'&gt;
OpenFileDialog1.ShowDialog()         

txtPdfPath.Text = OpenFileDialog1.FileName&lt;span class="code-comment"&gt;&amp;#39;&lt;/span&gt;&lt;span class="code-comment"&gt;PDf file uploaded here&lt;/span&gt;

&lt;span class="code-comment"&gt;&amp;#39;&lt;/span&gt;&lt;span class="code-comment"&gt;Code to insert Pdf file and after connection has been established&lt;/span&gt;

&lt;span class="code-keyword"&gt;Dim&lt;/span&gt; ms1 &lt;span class="code-keyword"&gt;As&lt;/span&gt; &lt;span class="code-keyword"&gt;New&lt;/span&gt; MemoryStream

frmBPA1.Pic1.Image.Save(ms1, frmBPA1.Pic1.Image.RawFormat)     

SqlQuery = &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;Insert into BPA1 (Pdf1)Values(@Pdf1)"&lt;/span&gt;

com.Parameters.AddWithValue(&lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;@Pdf1"&lt;/span&gt;, ms1.ToArray)

com.CommandText = SqlQuery             

com.CommandType = CommandType.Text

SQLCon.Open()

com.ExecuteNonQuery()                     

SQLCon.Close()

&lt;span class="code-comment"&gt;&amp;#39;&lt;/span&gt;&lt;span class="code-comment"&gt;Code to retrieve the pdf file&lt;/span&gt;

&lt;span class="code-keyword"&gt;Dim&lt;/span&gt; strQuery &lt;span class="code-keyword"&gt;As&lt;/span&gt; &lt;span class="code-keyword"&gt;String&lt;/span&gt; = &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;Select df1 from BPA1"&lt;/span&gt; 

SQLCon1.Open()                     

comFile = &lt;span class="code-keyword"&gt;New&lt;/span&gt; SqlCommand(strQuery, SQLCon1)                     
comFile.Parameters.AddWithValue(&lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;@ReceiptNo"&lt;/span&gt;, &lt;span class="code-keyword"&gt;Me&lt;/span&gt;.txtReceiptNo.Text.Trim) 
daFile = &lt;span class="code-keyword"&gt;New&lt;/span&gt; SqlDataAdapter(comFile) 
daFile.Fill(taFile)                     
&lt;span class="code-keyword"&gt;If&lt;/span&gt; taFile.Rows(&lt;span class="code-digit"&gt;0&lt;/span&gt;).Item(&lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;Pic1"&lt;/span&gt;) &lt;span class="code-keyword"&gt;IsNot&lt;/span&gt; DBNull.Value &lt;span class="code-keyword"&gt;Then&lt;/span&gt;                      
&lt;span class="code-keyword"&gt;Dim&lt;/span&gt; img() &lt;span class="code-keyword"&gt;As&lt;/span&gt; &lt;span class="code-keyword"&gt;Byte&lt;/span&gt;   
img = taFile.Rows(&lt;span class="code-digit"&gt;0&lt;/span&gt;).Item(&lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;Pdf1"&lt;/span&gt;)                         
&lt;span class="code-keyword"&gt;Dim&lt;/span&gt; ms &lt;span class="code-keyword"&gt;As&lt;/span&gt; &lt;span class="code-keyword"&gt;New&lt;/span&gt; MemoryStream(img)                         
&lt;span class="code-keyword"&gt;If&lt;/span&gt; img.Length &amp;lt;&amp;gt; &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;0"&lt;/span&gt; &lt;span class="code-keyword"&gt;Then&lt;/span&gt;                         
&lt;span class="code-keyword"&gt;Me&lt;/span&gt;.Pic1.Image = Image.FromStream(ms)                         
&lt;span class="code-comment"&gt;&amp;#39;&lt;/span&gt;&lt;span class="code-comment"&gt; Me.txtPdfPath.Text = File.FromStream(ms)                                      &lt;/span&gt;
&lt;span class="code-keyword"&gt;End&lt;/span&gt; &lt;span class="code-keyword"&gt;If&lt;/span&gt;&lt;/pre&gt;</description>
      <author>Benniit</author>
      <link>https://www.codeproject.com/Messages/5952961/Convert-Read-SQL-Image-field-into-pdf</link>
      <pubDate>Wed, 19 Jul 2023 19:07:00 GMT</pubDate>
      <guid>3_5952961</guid>
      <subject>Visual Basic</subject>
    </item>
  </channel>
</rss>