﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>A1VBCode Forums / Visual Basic .NET/2005/2008 / .NET Programming </title><generator>InstantForum.NET v4.1.1</generator><description>A1VBCode Forums</description><link>http://www.a1vbcode.com/vbforums/</link><webMaster>forums@a1vbcode.com</webMaster><lastBuildDate>Thu, 20 Nov 2008 13:11:03 GMT</lastBuildDate><ttl>20</ttl><item><title>Press save and the RichTextBox adds 5 spaces at the beginning of each written line. * SOLVED *</title><link>http://www.a1vbcode.com/vbforums/Topic26084-9-1.aspx</link><description>' Create a SaveFileDialog to request a path and file name to save to.&lt;br&gt;        Dim saveFile1 As New SaveFileDialog&lt;br&gt;&lt;br&gt;        ' Initialize the SaveFileDialog to specify the RTF extension for the file.&lt;br&gt;        saveFile1.DefaultExt = "*.rtf"&lt;br&gt;        saveFile1.Filter = "RTF Files|*.rtf"&lt;br&gt;        ' Determine if the user selected a file name from the saveFileDialog.&lt;br&gt;        If (saveFile1.ShowDialog() = System.Windows.Forms.DialogResult.OK) _&lt;br&gt;            And (saveFile1.FileName.Length) &gt; 0 Then&lt;br&gt;            ' Save the contents of the RichTextBox into the file.&lt;br&gt;            RichTextBox1.SaveFile(saveFile1.FileName, _&lt;br&gt;                RichTextBoxStreamType.PlainText)&lt;br&gt;        End If&lt;br&gt;&lt;br&gt;This is the code I am using in the save button, but what I want to happen is before the dialog comes up, I want 5 spaces to be added to the beginning of each line in the RichTextBox.&lt;br&gt;&lt;br&gt;Example text:&lt;br&gt;&lt;br&gt;"Hello and welcome to my program."&lt;br&gt;"I hope you enjoy."&lt;br&gt;&lt;br&gt;After pressing the save button:&lt;br&gt;"     Hello and welcome to my program."&lt;br&gt;"     I hope you enjoy."&lt;br&gt;&lt;br&gt;If anyone could help me, I would greatly appreciate it. &lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/Smile.gif" border="0" title="Smile"&gt;</description><pubDate>Mon, 27 Oct 2008 18:21:07 GMT</pubDate><dc:creator>envious</dc:creator></item><item><title>How to define a UserControl</title><link>http://www.a1vbcode.com/vbforums/Topic26092-9-1.aspx</link><description>&lt;FONT face="Courier New" color=#111111&gt;I want to make a usercontrol which is a combobox but the dropdown will be a grid. So far this is my code and my problem is that the grid wont show.&lt;/FONT&gt;&lt;DIV id=code776671434_1&gt;&lt;DIV id=code776671434_2 style="DISPLAY: none"&gt; &lt;/DIV&gt;&lt;DIV style="DISPLAY: none"&gt;&lt;pre&gt;&lt;/DIV&gt;&lt;DIV style="DISPLAY: none"&gt;&lt;FONT face="Courier New" color=#111111&gt;&lt;FONT color=#1111ff&gt;Namespace&lt;/FONT&gt; myComboBox&lt;BR&gt;    &lt;FONT color=#1111ff&gt;Public&lt;/FONT&gt; &lt;FONT color=#1111ff&gt;Class&lt;/FONT&gt; popUpComboBox&lt;BR&gt;        &lt;FONT color=#1111ff&gt;Inherits&lt;/FONT&gt; System.Windows.Forms.ComboBox&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV style="DISPLAY: none"&gt;&lt;FONT face="Courier New" color=#111111&gt;&lt;/FONT&gt; &lt;/DIV&gt;&lt;DIV style="DISPLAY: none"&gt;&lt;FONT face="Courier New" color=#111111&gt;        &lt;FONT color=#1111ff&gt;Protected Overrides Sub&lt;/FONT&gt; OnDropDown(&lt;FONT color=#1111ff&gt;ByVal&lt;/FONT&gt; e As System.EventArgs)&lt;BR&gt;            &lt;FONT color=#1111ff&gt;Dim&lt;/FONT&gt; grid &lt;FONT color=#1111ff&gt;As New&lt;/FONT&gt; System.Windows.Forms.DataGridView&lt;BR&gt;            grid.Width = 1000&lt;BR&gt;            grid.Height = 1000&lt;BR&gt;            grid.Left = Me.Left&lt;BR&gt;            grid.Top = &lt;FONT color=#1111ff&gt;Me&lt;/FONT&gt;.Top + &lt;FONT color=#1111ff&gt;Me&lt;/FONT&gt;.Height&lt;BR&gt;            grid.Show()&lt;BR&gt;        &lt;FONT color=#1111ff&gt;End Sub&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV style="DISPLAY: none"&gt;&lt;FONT face="Courier New" color=#111111&gt;&lt;/FONT&gt; &lt;/DIV&gt;&lt;DIV style="DISPLAY: none"&gt;&lt;FONT face="Courier New" color=#1111ff&gt;    End Class&lt;BR&gt;End Namespace&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV style="DISPLAY: none"&gt;&lt;FONT face="Courier New" color=#1111ff&gt;&lt;/pre&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description><pubDate>Fri, 31 Oct 2008 07:34:04 GMT</pubDate><dc:creator>jireh</dc:creator></item><item><title>load report failed</title><link>http://www.a1vbcode.com/vbforums/Topic26132-9-1.aspx</link><description>in my windows application my report works well but when I already publish it to the web..it doesn't work now.&lt;br&gt;it says "load report failed".... what I'm going to do about this?&lt;br&gt;&lt;br&gt;the details says&lt;br&gt;&lt;br&gt;&lt;br&gt;Code:&lt;br&gt;See the end of this message for details on invoking&lt;br&gt;just-in-time (JIT) debugging instead of this dialog box.&lt;br&gt;&lt;br&gt;************** Exception Text **************&lt;br&gt;System.Exception: Load report failed. ---&gt; System.Runtime.InteropServices.COMException (0x80004005): The system cannot find the path specified.&lt;br&gt;&lt;br&gt;   at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object&amp; DocumentPath, Int32 Options)&lt;br&gt;   at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object&amp; DocumentPath, Int32 Options)&lt;br&gt;   at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()&lt;br&gt;   --- End of inner exception stack trace ---&lt;br&gt;   at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()&lt;br&gt;   at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)&lt;br&gt;   at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)&lt;br&gt;   at RBA.frmRBA.Print_Report()&lt;br&gt;   at RBA.frmRBA.tsbMenu_ItemClicked(Object sender, ToolStripItemClickedEventArgs e)&lt;br&gt;   at System.Windows.Forms.ToolStrip.OnItemClicked(ToolStripItemClickedEventArgs e)&lt;br&gt;   at System.Windows.Forms.ToolStrip.HandleItemClick(ToolStripItem dismissingItem)&lt;br&gt;   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)&lt;br&gt;   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)&lt;br&gt;   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)&lt;br&gt;   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)&lt;br&gt;   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)&lt;br&gt;   at System.Windows.Forms.Control.WmMouseUp(Message&amp; m, MouseButtons button, Int32 clicks)&lt;br&gt;   at System.Windows.Forms.Control.WndProc(Message&amp; m)&lt;br&gt;   at System.Windows.Forms.ScrollableControl.WndProc(Message&amp; m)&lt;br&gt;   at System.Windows.Forms.ToolStrip.WndProc(Message&amp; m)&lt;br&gt;   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp; m)&lt;br&gt;   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp; m)&lt;br&gt;   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)&lt;br&gt;&lt;br&gt;&lt;br&gt;************** Loaded Assemblies **************&lt;br&gt;mscorlib&lt;br&gt;    Assembly Version: 2.0.0.0&lt;br&gt;    Win32 Version: 2.0.50727.42 (RTM.050727-4200)&lt;br&gt;    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll&lt;br&gt;----------------------------------------&lt;br&gt;RBA&lt;br&gt;    Assembly Version: 1.0.0.0&lt;br&gt;    Win32 Version: 1.0.0.0&lt;br&gt;    CodeBase: file:///C:/Documents%20and%20Settings/amasis/Local%20Settings/Apps/2.0/JQ46CMN9.40A/RTHGN9R0.GGK/rba...tion_2f8a24fc9c07bf0b_0001.0000_f109f6c644ca33f6/RBA.exe&lt;br&gt;----------------------------------------&lt;br&gt;Microsoft.VisualBasic&lt;br&gt;    Assembly Version: 8.0.0.0&lt;br&gt;    Win32 Version: 8.0.50727.42 (RTM.050727-4200)&lt;br&gt;    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll&lt;br&gt;----------------------------------------&lt;br&gt;System&lt;br&gt;    Assembly Version: 2.0.0.0&lt;br&gt;    Win32 Version: 2.0.50727.42 (RTM.050727-4200)&lt;br&gt;    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll&lt;br&gt;----------------------------------------&lt;br&gt;System.Windows.Forms&lt;br&gt;    Assembly Version: 2.0.0.0&lt;br&gt;    Win32 Version: 2.0.50727.42 (RTM.050727-4200)&lt;br&gt;    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll&lt;br&gt;----------------------------------------&lt;br&gt;System.Drawing&lt;br&gt;    Assembly Version: 2.0.0.0&lt;br&gt;    Win32 Version: 2.0.50727.42 (RTM.050727-4200)&lt;br&gt;    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll&lt;br&gt;----------------------------------------&lt;br&gt;System.Configuration&lt;br&gt;    Assembly Version: 2.0.0.0&lt;br&gt;    Win32 Version: 2.0.50727.42 (RTM.050727-4200)&lt;br&gt;    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll&lt;br&gt;----------------------------------------&lt;br&gt;System.Xml&lt;br&gt;    Assembly Version: 2.0.0.0&lt;br&gt;    Win32 Version: 2.0.50727.42 (RTM.050727-4200)&lt;br&gt;    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll&lt;br&gt;----------------------------------------&lt;br&gt;System.Runtime.Remoting&lt;br&gt;    Assembly Version: 2.0.0.0&lt;br&gt;    Win32 Version: 2.0.50727.42 (RTM.050727-4200)&lt;br&gt;    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll&lt;br&gt;----------------------------------------&lt;br&gt;System.Data&lt;br&gt;    Assembly Version: 2.0.0.0&lt;br&gt;    Win32 Version: 2.0.50727.42 (RTM.050727-4200)&lt;br&gt;    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll&lt;br&gt;----------------------------------------&lt;br&gt;System.Transactions&lt;br&gt;    Assembly Version: 2.0.0.0&lt;br&gt;    Win32 Version: 2.0.50727.42 (RTM.050727-4200)&lt;br&gt;    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll&lt;br&gt;----------------------------------------&lt;br&gt;System.EnterpriseServices&lt;br&gt;    Assembly Version: 2.0.0.0&lt;br&gt;    Win32 Version: 2.0.50727.42 (RTM.050727-4200)&lt;br&gt;    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll&lt;br&gt;----------------------------------------&lt;br&gt;CrystalDecisions.CrystalReports.Engine&lt;br&gt;    Assembly Version: 10.2.3600.0&lt;br&gt;    Win32 Version: 10.2.51014.0&lt;br&gt;    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.CrystalReports.Engine/10.2.3600.0__692fbea5521e1304/CrystalDecisions.CrystalReports.Engine.dll&lt;br&gt;----------------------------------------&lt;br&gt;CrystalDecisions.Windows.Forms&lt;br&gt;    Assembly Version: 10.2.3600.0&lt;br&gt;    Win32 Version: 10.2.51014.0&lt;br&gt;    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.Windows.Forms/10.2.3600.0__692fbea5521e1304/CrystalDecisions.Windows.Forms.dll&lt;br&gt;----------------------------------------&lt;br&gt;CrystalDecisions.Shared&lt;br&gt;    Assembly Version: 10.2.3600.0&lt;br&gt;    Win32 Version: 10.2.51014.0&lt;br&gt;    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.Shared/10.2.3600.0__692fbea5521e1304/CrystalDecisions.Shared.dll&lt;br&gt;----------------------------------------&lt;br&gt;CrystalDecisions.ReportSource&lt;br&gt;    Assembly Version: 10.2.3600.0&lt;br&gt;    Win32 Version: 10.2.51014.0&lt;br&gt;    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportSource/10.2.3600.0__692fbea5521e1304/CrystalDecisions.ReportSource.dll&lt;br&gt;----------------------------------------&lt;br&gt;System.Web&lt;br&gt;    Assembly Version: 2.0.0.0&lt;br&gt;    Win32 Version: 2.0.50727.42 (RTM.050727-4200)&lt;br&gt;    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll&lt;br&gt;----------------------------------------&lt;br&gt;CrystalDecisions.ReportAppServer.CommLayer&lt;br&gt;    Assembly Version: 10.2.3600.0&lt;br&gt;    Win32 Version: 10.2.51014.0&lt;br&gt;    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.CommLayer/10.2.3600.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.CommLayer.dll&lt;br&gt;----------------------------------------&lt;br&gt;CrystalDecisions.ReportAppServer.ClientDoc&lt;br&gt;    Assembly Version: 10.2.3600.0&lt;br&gt;    Win32 Version: 10.2.51014.0&lt;br&gt;    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.ClientDoc/10.2.3600.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.ClientDoc.dll&lt;br&gt;----------------------------------------&lt;br&gt;CrystalDecisions.ReportAppServer.DataSetConversion&lt;br&gt;    Assembly Version: 10.2.3600.0&lt;br&gt;    Win32 Version: 10.2.51014.0&lt;br&gt;    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.DataSetConversion/10.2.3600.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.DataSetConversion.dll&lt;br&gt;----------------------------------------&lt;br&gt;CrystalDecisions.ReportAppServer.DataDefModel&lt;br&gt;    Assembly Version: 10.2.3600.0&lt;br&gt;    Win32 Version: 10.2.51014.0&lt;br&gt;    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.DataDefModel/10.2.3600.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.DataDefModel.dll&lt;br&gt;----------------------------------------&lt;br&gt;CrystalDecisions.ReportAppServer.Controllers&lt;br&gt;    Assembly Version: 10.2.3600.0&lt;br&gt;    Win32 Version: 10.2.51014.0&lt;br&gt;    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.Controllers/10.2.3600.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.Controllers.dll&lt;br&gt;----------------------------------------&lt;br&gt;CrystalDecisions.ReportAppServer.CubeDefModel&lt;br&gt;    Assembly Version: 10.2.3600.0&lt;br&gt;    Win32 Version: 10.2.51014.0&lt;br&gt;    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.CubeDefModel/10.2.3600.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.CubeDefModel.dll&lt;br&gt;----------------------------------------&lt;br&gt;CrystalDecisions.ReportAppServer.ReportDefModel&lt;br&gt;    Assembly Version: 10.2.3600.0&lt;br&gt;    Win32 Version: 10.2.51014.0&lt;br&gt;    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.ReportDefModel/10.2.3600.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.ReportDefModel.dll&lt;br&gt;----------------------------------------&lt;br&gt;CrystalDecisions.KeyCode&lt;br&gt;    Assembly Version: 10.2.3600.0&lt;br&gt;    Win32 Version: 10.2.51014.0&lt;br&gt;    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.KeyCode/10.2.3600.0__692fbea5521e1304/CrystalDecisions.KeyCode.dll&lt;br&gt;----------------------------------------&lt;br&gt;&lt;br&gt;************** JIT Debugging **************&lt;br&gt;To enable just-in-time (JIT) debugging, the .config file for this&lt;br&gt;application or computer (machine.config) must have the&lt;br&gt;jitDebugging value set in the system.windows.forms section.&lt;br&gt;The application must also be compiled with debugging&lt;br&gt;enabled.&lt;br&gt;&lt;br&gt;For example:&lt;br&gt;&lt;br&gt;&lt;configuration&gt;&lt;br&gt;    &lt;system.windows.forms jitDebugging="true" /&gt;&lt;br&gt;&lt;/configuration&gt;&lt;br&gt;&lt;br&gt;When JIT debugging is enabled, any unhandled exception&lt;br&gt;will be sent to the JIT debugger registered on the computer&lt;br&gt;rather than be handled by this dialog box.</description><pubDate>Thu, 06 Nov 2008 03:40:08 GMT</pubDate><dc:creator>forever10</dc:creator></item><item><title>Code problem. Can someone help - trial version</title><link>http://www.a1vbcode.com/vbforums/Topic26133-9-1.aspx</link><description>Hello all!&lt;P&gt;I would like if someone could look at some code and let me know what my problem is.  I am trying to have a trial software where the software ends 15 days after installation.  Also, the code is suppose to see if the user changes the date on their computer and notifies them that they changed the date.  After 2 times the software is suppose to shut down.  &lt;/P&gt;&lt;P&gt;My problem is that it dosn't count down the days and it dosn't recgonize that they changed the date........&lt;/P&gt;&lt;P&gt;Would it be possible for someone to look at my code and let me know what's wrong.&lt;/P&gt;&lt;P&gt;Thank you in advanced....&lt;/P&gt;&lt;P&gt;daveofgv&lt;/P&gt;&lt;P&gt;&amp;lt;start code&amp;gt;&lt;/P&gt;&lt;P&gt;Public Class Form1&lt;BR&gt;&lt;BR&gt;    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click&lt;BR&gt;        End&lt;BR&gt;    End Sub&lt;BR&gt;&lt;BR&gt;    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load&lt;BR&gt;        Dim intTime As Integer = 1&lt;BR&gt;        Dim dteLastStart, dteStartDate As Date&lt;BR&gt;        Dim blnFirstTime, blnEnabled As Boolean&lt;BR&gt;        Dim lngTimeLeft As Long&lt;BR&gt;&lt;BR&gt;        blnEnabled = True&lt;BR&gt;        If dteStartDate = Nothing Then&lt;BR&gt;            dteStartDate = Now&lt;BR&gt;        End If&lt;BR&gt;&lt;BR&gt;        My.Application.SaveMySettingsOnExit = True&lt;BR&gt;&lt;BR&gt;        If DateDiff(DateInterval.Day, dteLastStart, Now) &amp;lt; 0 Then&lt;BR&gt;            'First clock change&lt;BR&gt;            If intTime = 1 Then&lt;BR&gt;                MsgBox("This software has detected that you have changed your system date to an earlier date" &amp;amp; vbCrLf _&lt;BR&gt;                &amp;amp; "As this software has built-in security," &amp;amp; vbCrLf _&lt;BR&gt;                &amp;amp; "this software will only run until the next intTime you change your system date", _&lt;BR&gt;                MsgBoxStyle.OkOnly Or MsgBoxStyle.Exclamation, "System Date Changed")&lt;BR&gt;                intTime = 2&lt;BR&gt;            ElseIf intTime = 2 Then&lt;BR&gt;                'Second clock change&lt;BR&gt;                blnEnabled = False&lt;BR&gt;                MsgBox("This software has detected that you have changed your system date to an earlier date" &amp;amp; vbCrLf _&lt;BR&gt;                &amp;amp; "As this is the second warning, this software will now be disabled", _&lt;BR&gt;                MsgBoxStyle.OkOnly Or MsgBoxStyle.Exclamation, "System Date Changed")&lt;BR&gt;            End If&lt;BR&gt;            'disables app&lt;BR&gt;            If blnEnabled = False Then&lt;BR&gt;                If MsgBox("Software is disabled", MsgBoxStyle.OkOnly Or MsgBoxStyle.Information, "Disabled") = MsgBoxResult.Ok Then&lt;BR&gt;                    For Each form As Form In My.Application.OpenForms&lt;BR&gt;                        form.Close()&lt;BR&gt;                    Next&lt;BR&gt;                End If&lt;BR&gt;            End If&lt;BR&gt;        End If&lt;BR&gt;        If DateDiff(DateInterval.Day, dteStartDate, Now) &amp;gt; 15 Then&lt;BR&gt;            blnEnabled = False&lt;BR&gt;            If blnEnabled = False Then&lt;BR&gt;                If MsgBox("This software has reached the end of it's trial.", MsgBoxStyle.OkOnly Or MsgBoxStyle.Information, "Trial Ended") = MsgBoxResult.Ok Then&lt;BR&gt;                    'Close all open forms&lt;BR&gt;                    For Each form As Form In My.Application.OpenForms&lt;BR&gt;                        form.Close()&lt;BR&gt;                    Next&lt;BR&gt;                End If&lt;BR&gt;            End If&lt;BR&gt;        End If&lt;BR&gt;        dteLastStart = Now&lt;BR&gt;        If blnFirstTime = True Then&lt;BR&gt;            blnFirstTime = False&lt;BR&gt;        End If&lt;BR&gt;        'Saves variable settings&lt;BR&gt;        My.Settings.Save()&lt;BR&gt;&lt;BR&gt;        lngTimeLeft = 15 - (DateDiff(DateInterval.Day, dteStartDate, Now))&lt;BR&gt;&lt;BR&gt;        MsgBox("This software is a trial version and can only be used for 15 days." _&lt;BR&gt;        &amp;amp; "If you would like to purchase this software please contact DMB Software for the full version" &amp;amp; vbCrLf _&lt;BR&gt;        &amp;amp; "You have " &amp;amp; CStr(lngTimeLeft) &amp;amp; " days left.", _&lt;BR&gt;        MsgBoxStyle.OkOnly, "Software Trial")&lt;BR&gt;&lt;BR&gt;    End Sub&lt;BR&gt;End Class&lt;/P&gt;&lt;P&gt;&amp;lt;end code&amp;gt;</description><pubDate>Thu, 06 Nov 2008 09:40:03 GMT</pubDate><dc:creator>daveofgv</dc:creator></item><item><title>Message Box question</title><link>http://www.a1vbcode.com/vbforums/Topic26156-9-1.aspx</link><description>I have a simple question that I would like to see if someone could help me.....&lt;/P&gt;&lt;P&gt;I have a messagebox (form that I made to give the user an alert) and have two buttons - "OK" and "Cancel".  I put a check box on the form saying "Do not show message again".  I opened my project and choose settings - added a name of donotshowagain - set the type to "Boolean" - Scope "User" - Value "False".&lt;/P&gt;&lt;P&gt;I added checkbox to the form from Application settings in the properties section.&lt;/P&gt;&lt;P&gt;I was told to use the code:&lt;/P&gt;&lt;P&gt;****************************************&lt;/P&gt;&lt;P&gt;private Sub ShowSplashForm()&lt;BR&gt;   if Not My.Settings.DoNotDisplayForm1Again then&lt;BR&gt;      Form1.Show&lt;BR&gt;   end if&lt;BR&gt;end sub&lt;/P&gt;&lt;P&gt;****************************************&lt;/P&gt;&lt;P&gt;My problem is that no matter how I change the code to match my forms I can't get the checkbox to do not show message again to work. &lt;/P&gt;&lt;P&gt;Could someone show me step by step what I am doing wrong or another way to click a checkbox so the message does not show again???&lt;/P&gt;&lt;P&gt;Thank you in advanced.&lt;/P&gt;&lt;P&gt;daveofgv</description><pubDate>Sat, 08 Nov 2008 12:04:56 GMT</pubDate><dc:creator>daveofgv</dc:creator></item><item><title>What's Wrong With This?</title><link>http://www.a1vbcode.com/vbforums/Topic26170-9-1.aspx</link><description>Enter VB.NET codes for the 'Play' button. The programming codes will do the following steps:&lt;/P&gt;&lt;P&gt;a) Generate a 3 random numbers between 1,9 and display on the label controls on the screen.&lt;/P&gt;&lt;P&gt;i. Define a random object r. &lt;BR&gt;ii. Define 3 integer variables and each to store a generated random number; ie. r.Next(1,9).Display the random number on the screen label controls.&lt;/P&gt;&lt;P&gt;b) Deduct cost to bet, $10 per day. Also, increment the number of bet counter every time the button is clicked.&lt;/P&gt;&lt;P&gt;i. Define a double variable. Assign this variable with the balance value shown on the screen.&lt;BR&gt;ii. Deduct 10 from the variable as cost to bet.&lt;BR&gt;iii. Display the new balance value on the screen.&lt;BR&gt;iv. In the same logic, add 1 to the bet counter.&lt;/P&gt;&lt;P&gt;c) Check to see if user wins. Add 20 to balance, if 2 of the 3 numbers are the same; or Add 100 to balance if all 3 numbers are the same.&lt;/P&gt;&lt;P&gt;i. Define a integer variable to calculate winning points. Initialise variable to 0. Compare each of the 3 combination numbers. If 2 numbers are the same, add 1 to the point variable.&lt;BR&gt;ii. Finally, if variable is 1, add 20 to balance; if variable is 3, add 100 to balance.&lt;/P&gt;&lt;P&gt;d) Stop the game when not enough money to play.&lt;/P&gt;&lt;P&gt;i.Check balance value. If balance is below 10, disable the Play button (Hint: check the button property list to find the name of the property associated with enabling and disabling; set the property by using VB.NET codes).&lt;/P&gt;&lt;P&gt;------------------------------&lt;BR&gt;Partial Class _Default&lt;BR&gt;Inherits System.Web.UI.Page&lt;/P&gt;&lt;P&gt;Public balance As Integer&lt;/P&gt;&lt;P&gt;Protected Sub bn_increase_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles bn_increase.Click&lt;BR&gt;Dim c As Integer&lt;BR&gt;c = Convert.ToInt32(lb_count.Text)&lt;BR&gt;c = c + 1&lt;BR&gt;lb_count.Text = Convert.ToString(c)&lt;/P&gt;&lt;P&gt;'Dim balance As Integer&lt;BR&gt;Dim r As Random = New Random&lt;BR&gt;Dim RandomNumber1, RandomNumber2, RandomNumber3 As Integer&lt;BR&gt;Dim TotalMoney As Double = 100&lt;BR&gt;Dim win_count As Integer = 0&lt;BR&gt;Dim comb_num As Integer = 0&lt;BR&gt;comb_num = RandomNumber1&lt;BR&gt;comb_num = RandomNumber2&lt;BR&gt;comb_num = RandomNumber3&lt;/P&gt;&lt;P&gt;&lt;BR&gt;'lb_balance.Text = balance&lt;BR&gt;'balance = 100&lt;BR&gt;'balance = Convert.ToInt32("lb_balance.text")&lt;/P&gt;&lt;P&gt;RandomNumber1 = r.Next(1, 9)&lt;BR&gt;RandomNumber2 = r.Next(1, 9)&lt;BR&gt;RandomNumber3 = r.Next(1, 9)&lt;/P&gt;&lt;P&gt;Label1.Text = RandomNumber1&lt;BR&gt;Label2.Text = RandomNumber2&lt;BR&gt;Label3.Text = RandomNumber3&lt;/P&gt;&lt;P&gt;'If RandomNumber1 &amp;lt;&amp;gt; RandomNumber2 &amp;lt;&amp;gt; RandomNumber3 Then&lt;/P&gt;&lt;P&gt;' comb_num = 0&lt;BR&gt;'lb_balance.Text = balance - 10&lt;/P&gt;&lt;P&gt;'ElseIf RandomNumber1 = RandomNumber2 Then&lt;BR&gt;' comb_num = 2&lt;/P&gt;&lt;P&gt;&lt;BR&gt;'ElseIf RandomNumber1 = RandomNumber3 Then&lt;BR&gt;' comb_num = 2&lt;/P&gt;&lt;P&gt;'ElseIf RandomNumber2 = RandomNumber3 Then&lt;BR&gt;' comb_num = 2&lt;/P&gt;&lt;P&gt;'ElseIf RandomNumber1 = RandomNumber2 = RandomNumber3 Then&lt;BR&gt;' comb_num = 3&lt;BR&gt;While balance &amp;gt; 0&lt;/P&gt;&lt;P&gt;&lt;BR&gt;If RandomNumber1 = RandomNumber2 Or RandomNumber1 = RandomNumber3 Or RandomNumber2 = RandomNumber3 Then&lt;BR&gt;'balance = 100 + 20&lt;BR&gt;'lb_balance.Text = balance&lt;BR&gt;lb_balance.Text = balance + 20&lt;/P&gt;&lt;P&gt;'comb_num = 2&lt;/P&gt;&lt;P&gt;ElseIf RandomNumber1 = RandomNumber2 = RandomNumber3 Then&lt;/P&gt;&lt;P&gt;lb_balance.Text = balance + 100&lt;/P&gt;&lt;P&gt;Else&lt;BR&gt;'RandomNumber1 &amp;lt;&amp;gt; RandomNumber2 &amp;lt;&amp;gt; RandomNumber3 Then&lt;/P&gt;&lt;P&gt;lb_balance.Text = balance - 10&lt;/P&gt;&lt;P&gt;End If&lt;/P&gt;&lt;P&gt;End While&lt;/P&gt;&lt;P&gt;'comb_num = 3&lt;BR&gt;'comb_num = comb_num + (RandomNumber1 &amp;lt;&amp;gt; RandomNumber2)&lt;BR&gt;'comb_num = comb_num + (RandomNumber1 &amp;lt;&amp;gt; RandomNumber3)&lt;BR&gt;'comb_num = comb_num + (RandomNumber2 &amp;lt;&amp;gt; RandomNumber3)&lt;BR&gt;'comb_num = comb_num - (comb_num = 1)&lt;/P&gt;&lt;P&gt;&lt;BR&gt;'Select Case comb_num&lt;BR&gt;' Case Is = 0&lt;BR&gt;' lb_balance.Text = balance - 10&lt;BR&gt;' Case Is = 2&lt;BR&gt;' lb_balance.Text = balance + 20&lt;BR&gt;' Case Is = 3&lt;BR&gt;' lb_balance.Text = balance + 100&lt;BR&gt;'End Select&lt;/P&gt;&lt;P&gt;&lt;BR&gt;'If comb_num = 0 Then&lt;BR&gt;' lb_balance.Text = balance - 10&lt;BR&gt;'End If&lt;/P&gt;&lt;P&gt;'If comb_num = 1 Then&lt;BR&gt;' lb_balance.Text = balance + 20&lt;BR&gt;'End If&lt;/P&gt;&lt;P&gt;'If comb_num = 2 Then&lt;BR&gt;' lb_balance.Text = balance + 20&lt;/P&gt;&lt;P&gt;'End If&lt;/P&gt;&lt;P&gt;'If comb_num = 3 Then&lt;BR&gt;' lb_balance.Text = balance + 100&lt;/P&gt;&lt;P&gt;'End If&lt;/P&gt;&lt;P&gt;&lt;BR&gt;End Sub&lt;/P&gt;&lt;P&gt;Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load&lt;BR&gt;'balance = 100&lt;/P&gt;&lt;P&gt;'lb_balance.Text = balance&lt;/P&gt;&lt;P&gt;&lt;BR&gt;End Sub&lt;BR&gt;End Class&lt;/P&gt;&lt;P&gt;&lt;BR&gt;-------------------------&lt;BR&gt;Please help me with my codes.. the calculations part doesnt work out well... what's wrong?? &lt;/P&gt;&lt;P&gt;please help.. i cant figure it out at all...&lt;/P&gt;&lt;P&gt;thanks</description><pubDate>Mon, 10 Nov 2008 05:13:50 GMT</pubDate><dc:creator>ProgrammerIdioit</dc:creator></item><item><title>Help with left outer join using three tables</title><link>http://www.a1vbcode.com/vbforums/Topic26235-9-1.aspx</link><description>Hello,&lt;/P&gt;&lt;P&gt;I would like to join 3 tables based on a common field. Table 1 should always have data, but data from tables 2 and 3 will not always be available, can you please help me with the left outer join syntax for three tables, below is my code for joining two tables, but the and (after the IN statement) statement is not good because unless there's a link in both tables, table 1 does not show even when available.&lt;/P&gt;&lt;P&gt;mySQL_Statement = "select IDENTIFICATION_DATA.NIIN, IDENTIFICATION_DATA.AIN, USER_REGISTRATION.MC from IDENTIFICATION_DATA, USER_REGISTRATION" &lt;/P&gt;&lt;P&gt;        If Not ((TextBox1.Text = String.Empty) And (TextBox2.Text = String.Empty) And (TextBox3.Text = String.Empty) And (TextBox4.Text = String.Empty) And (TextBox5.Text = String.Empty)) Then&lt;BR&gt;            mySQL_Statement = mySQL_Statement + " where " &lt;BR&gt;            If Not (TextBox1.Text = String.Empty) Then&lt;BR&gt;                mySQL_Statement = mySQL_Statement + "IDENTIFICATION_DATA.NSC IN (" + TextBox1.Text &amp;amp; ")  and IDENTIFICATION_DATA.NIIN = USER_REGISTRATION.NIIN"&lt;BR&gt;            End If&lt;/P&gt;&lt;P&gt;End if&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Victor</description><pubDate>Sat, 15 Nov 2008 00:24:09 GMT</pubDate><dc:creator>victor64</dc:creator></item><item><title>Moving objects</title><link>http://www.a1vbcode.com/vbforums/Topic26236-9-1.aspx</link><description>here are the two things I want to do:&lt;/P&gt;&lt;P&gt;-moving objects constantly and when they hit the borders of something, then I has to go the other side, like a mirror doe with light&lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/BigGrin.gif" border="0" title="BigGrin"&gt;&lt;/P&gt;&lt;P&gt;-mobing objects from the one place to the other.&lt;/P&gt;&lt;P&gt;do I need a special variable or something, please help if you can.</description><pubDate>Sat, 15 Nov 2008 06:15:37 GMT</pubDate><dc:creator>408a</dc:creator></item><item><title>how to use hotkeys in VB</title><link>http://www.a1vbcode.com/vbforums/Topic26237-9-1.aspx</link><description>how can i let my program do something when I press for example the 'x' button?</description><pubDate>Sat, 15 Nov 2008 06:34:11 GMT</pubDate><dc:creator>408a</dc:creator></item><item><title>textbox and button</title><link>http://www.a1vbcode.com/vbforums/Topic26195-9-1.aspx</link><description>hello,&lt;br&gt;i've trouble with my codes.&lt;br&gt;I need to create a search engine kinda thing for my webpage.&lt;br&gt;therefore , i've used a textbox and a button.&lt;br&gt;however, how should i write my codes so that , when the button onclick, it will send the textbox value to the database and retrieve datas that belong to the value in textbox. the result of the search will then be reflected by a gridview at the bottom.&lt;br&gt;&lt;br&gt;&lt;br&gt;Partial Class Calendar&lt;br&gt;Inherits System.Web.UI.Page&lt;br&gt;&lt;br&gt;Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;End Sub&lt;br&gt;End Class&lt;br&gt;&lt;br&gt;Please help! thanks!! =)&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;Kaile =))</description><pubDate>Tue, 11 Nov 2008 23:25:55 GMT</pubDate><dc:creator>kailekl</dc:creator></item><item><title>saving files</title><link>http://www.a1vbcode.com/vbforums/Topic26238-9-1.aspx</link><description>&lt;BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"&gt;&lt;P&gt;How can I make a program that can save and load a progress in that program?&lt;/P&gt;&lt;P&gt;I know already how to insert the menu for saving and loading, but when I click it, there doesn't happen anything!&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description><pubDate>Sat, 15 Nov 2008 06:36:11 GMT</pubDate><dc:creator>408a</dc:creator></item><item><title>How to Merge data from table 2 to table 1 based on common field</title><link>http://www.a1vbcode.com/vbforums/Topic26245-9-1.aspx</link><description>&lt;FONT size=2&gt;&lt;P&gt;mySQL_Statement = &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;"INSERT INTO IDENTIFICATION_DATA(code) (SELECT RN FROM REFERENCE_DATA(RN) WHERE IDENTIFICATION_DATA.NIIN = REFERENCE_DATA.NIIN)"&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Dim&lt;/FONT&gt;&lt;FONT size=2&gt; ConnectionString &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;String&lt;/FONT&gt;&lt;FONT size=2&gt; = &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\aopt2002orgorg.mdb;Persist Security Info=True;Jet OLEDB&lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/BigGrin.gif" border="0" title="BigGrin"&gt;atabase Password=testaopupdate"&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Dim&lt;/FONT&gt;&lt;FONT size=2&gt; objConnection &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;New&lt;/FONT&gt;&lt;FONT size=2&gt; OleDb.OleDbConnection(ConnectionString)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;'data adapter &lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Dim&lt;/FONT&gt;&lt;FONT size=2&gt; objDataAdapter &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;New&lt;/FONT&gt;&lt;FONT size=2&gt; OleDb.OleDbDataAdapter(mySQL_Statement, objConnection)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;'dataset object &lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Dim&lt;/FONT&gt;&lt;FONT size=2&gt; objDataSet &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;New&lt;/FONT&gt;&lt;FONT size=2&gt; DataSet&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;'fill dataset &lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;objConnection.Open()&lt;/P&gt;&lt;P&gt;objDataAdapter.Fill(objDataSet, &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;"SN"&lt;/FONT&gt;&lt;FONT size=2&gt;)&lt;/P&gt;&lt;P&gt;objConnection.Close()&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Sat, 15 Nov 2008 13:14:39 GMT</pubDate><dc:creator>victor64</dc:creator></item><item><title>Inserting multiple records from one table to a single record in a second table</title><link>http://www.a1vbcode.com/vbforums/Topic26255-9-1.aspx</link><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;Hello,&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;I have two tables with matching fields LAST:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;TABLE 1 (Records)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;LAST&lt;SPAN style="mso-spacerun: yes"&gt;       &lt;/SPAN&gt;HOBBY&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;charles&lt;SPAN style="mso-spacerun: yes"&gt;    &lt;/SPAN&gt;Soccer&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;   &lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;TABLE 2 (Records)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;LAST&lt;SPAN style="mso-spacerun: yes"&gt;       &lt;/SPAN&gt;INTEREST&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;charles&lt;SPAN style="mso-spacerun: yes"&gt;    &lt;/SPAN&gt;swimming&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;charles&lt;SPAN style="mso-spacerun: yes"&gt;    &lt;/SPAN&gt;basketball&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;charles&lt;SPAN style="mso-spacerun: yes"&gt;    &lt;/SPAN&gt;football&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;I would like to have the following in TABLE 1 (Records)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;LAST&lt;SPAN style="mso-spacerun: yes"&gt;       &lt;/SPAN&gt;HOBBY&lt;SPAN style="mso-spacerun: yes"&gt;   &lt;/SPAN&gt;INTEREST&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;charles&lt;SPAN style="mso-spacerun: yes"&gt;    &lt;/SPAN&gt;Soccer&lt;SPAN style="mso-spacerun: yes"&gt;   &lt;/SPAN&gt;basketball, football, swimming&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;Below is my code that inserts the records for matching records, how do I modify it to achieve what I am trying to do?&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;Thanks.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;Code:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;      &lt;/SPAN&gt;Dim mySQL_Statement As String = "UPDATE table1 " &amp;amp; vbNewLine &amp;amp; _&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;   &lt;/SPAN&gt;" INNER JOIN " &amp;amp; vbNewLine &amp;amp; _&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;   &lt;/SPAN&gt;" table2 " &amp;amp; vbNewLine &amp;amp; _&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;   &lt;/SPAN&gt;" ON table1.last " &amp;amp; _&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;   &lt;/SPAN&gt;" = table2.last " &amp;amp; vbNewLine &amp;amp; _&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;   &lt;/SPAN&gt;" SET table1 interest = " &amp;amp; _&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;   &lt;/SPAN&gt;" table2.interest "&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;        &lt;/SPAN&gt;Dim ConnectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\aopt2002orgorg.mdb;Persist Security Info=True;Jet OLEDB&lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/BigGrin.gif" border="0" title="BigGrin"&gt;atabase Password=testaopupdate"&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;        &lt;/SPAN&gt;Dim objConnection As New OleDb.OleDbConnection(ConnectionString)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;        &lt;/SPAN&gt;'data adapter &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;        &lt;/SPAN&gt;Dim objDataAdapter As New OleDb.OleDbDataAdapter(mySQL_Statement, objConnection)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;        &lt;/SPAN&gt;'dataset object &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;        &lt;/SPAN&gt;Dim objDataSet As New DataSet&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;      &lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes"&gt;  &lt;/SPAN&gt;'fill dataset &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;        &lt;/SPAN&gt;objConnection.Open()&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;        &lt;/SPAN&gt;objDataAdapter.Fill(objDataSet, "SN")&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;        &lt;/SPAN&gt;objConnection.Close()&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt; &lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt; &lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;Thanks in advance.&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt; &lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;Victor</description><pubDate>Sat, 15 Nov 2008 23:19:26 GMT</pubDate><dc:creator>victor64</dc:creator></item><item><title>How do I compare two arrarys?</title><link>http://www.a1vbcode.com/vbforums/Topic26259-9-1.aspx</link><description>I've been ripping my hair out for last day or so. Either I don't know or I don't understand, but I cannot find out in my text book on how to compare two array. Each array has 12 games with values of the scores that each foot ball team made.&lt;br&gt;&lt;br&gt;I need to compare these scores and report how many won and how many lost in the 12 games. I think i can figure out the who won and who lost, I just need some help on how to go about comparing the two arrays. Any help would be greatly appreciated.&lt;br&gt;&lt;br&gt;I'm using Visual Studio 2008 with Visual Basic</description><pubDate>Sun, 16 Nov 2008 14:48:34 GMT</pubDate><dc:creator>rblockmon</dc:creator></item><item><title>VB Code to verify a Value entered against pre-determined list</title><link>http://www.a1vbcode.com/vbforums/Topic26228-9-1.aspx</link><description>Hi Guys,&lt;/P&gt;&lt;P&gt;I'm sorry if this is a real basic question but i have just started lookin at VB and want to create a simple windows form application as practice.&lt;/P&gt;&lt;P&gt;What i want to do is to create a form where someone can enter a value and then hit submit which will then make the form check to see if the value entered is valid by verifying against a pre-determined list.&lt;/P&gt;&lt;P&gt;e.g&lt;/P&gt;&lt;P&gt;Someone enters Yellow into a text box and hits submit. The form will then check the list where the valid entries are red, yellow and blue. As yellow is a valid entry, a message will be returned stating the the value entered is correct. However if green was entered, a message would be returned stating " The value entered is invalid".&lt;/P&gt;&lt;P&gt;Entventually i want to build this form up so that an XML document can be copied into this input field and for the form to compare the values entered against a larger list and state whether the XML is formatted correctly?&lt;/P&gt;&lt;P&gt;If anyone could advise where to start with this that would be great.&lt;/P&gt;&lt;P&gt;Thanks for taking the time to read this,&lt;BR&gt;Mike</description><pubDate>Fri, 14 Nov 2008 08:47:16 GMT</pubDate><dc:creator>mikeyb7</dc:creator></item><item><title>How to insert a character in existing records</title><link>http://www.a1vbcode.com/vbforums/Topic26224-9-1.aspx</link><description>Hello, I am using VB.NET 2005 and MS ACCESS 2003&lt;/P&gt;&lt;P&gt;My database contains data in the following format:&lt;/P&gt;&lt;P&gt;1305000248767&lt;/P&gt;&lt;P&gt;I need to insert "-" in several location to obtain the following format&lt;/P&gt;&lt;P&gt;1305-00-024-8767&lt;/P&gt;&lt;P&gt;How do I append the records to insert the "-" at these locations.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Victor</description><pubDate>Fri, 14 Nov 2008 00:22:18 GMT</pubDate><dc:creator>victor64</dc:creator></item><item><title>Usb Webcam</title><link>http://www.a1vbcode.com/vbforums/Topic26226-9-1.aspx</link><description>Hey guys!&lt;br&gt;&lt;br&gt;I have a usb webcam that is located on my remote helicopter. The onboard electronics take the webcam's data signal, mixes it with my other diagnostics, and then sends the signal to a reciever. The reciever unsorts the data and the webcam data is routed to the usb as if it were a direction connection (theoretically). Now i read that usb devices are limited to a ping response in order to maintain connectivity, is this true? if so, how can i maintain that the camera is virtually connected without it really being connected? Also, ive done alot of reading and there is very little literature on controlling usb devices in vb.net (atleast i could find any &lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/Tongue.gif" border="0" title="Tongue"&gt; ) &lt;br&gt;&lt;br&gt;Help is appreciated &lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/Smile.gif" border="0" title="Smile"&gt;</description><pubDate>Fri, 14 Nov 2008 03:31:17 GMT</pubDate><dc:creator>titancore</dc:creator></item><item><title>Zip/Unzip</title><link>http://www.a1vbcode.com/vbforums/Topic26222-9-1.aspx</link><description>hi guys,&lt;/P&gt;&lt;P&gt;I want sample code that zips the files or folder.Also unzip zipped files and folder.Also i want on click event at the time of zip ask location where to save zip file.</description><pubDate>Thu, 13 Nov 2008 07:28:25 GMT</pubDate><dc:creator>abj</dc:creator></item><item><title>TreeView Scroll Position Get and Set on VB.Net Windows Forms</title><link>http://www.a1vbcode.com/vbforums/Topic26220-9-1.aspx</link><description>I used a treeview with scrollable property true. Firstly I generated the treeview. Then I selected a treenode as :&lt;br&gt;dim node as TreeNode&lt;br&gt;node=treeview1.Nodes(1)&lt;br&gt;After that I refresh the treeview in a structured way, like Expanded node as expanded and Collapsed as collapsed.&lt;br&gt;Then I need to keep that selected node in the visible zone, so I used :&lt;br&gt;node.EnsureVisible()&lt;br&gt;Still the node is not is not in the visible zone as the vertical Scroll Bar goes at the top of the treeview.&lt;br&gt;Please help how I can maintain the vertical Scroll Bar position?&lt;br&gt;&lt;br&gt;Thanks in Advance.&lt;br&gt;Sanjoy.</description><pubDate>Thu, 13 Nov 2008 02:28:40 GMT</pubDate><dc:creator>sanjoydas</dc:creator></item><item><title>my training</title><link>http://www.a1vbcode.com/vbforums/Topic25807-9-1.aspx</link><description>my free asp.net training video &lt;A href="http://www.evdenevenakliyatbul.com/evden_eve_Nakliyat_firmalari_sozluk.asp?Hizmet=asp.net_adobe_flash_photoshop_dreamweaver_dersleri&amp;amp;DuyuruID=7"&gt;download &lt;/A&gt;</description><pubDate>Sun, 28 Sep 2008 15:53:35 GMT</pubDate><dc:creator>senol</dc:creator></item><item><title>How do I delete a folder in VB '08</title><link>http://www.a1vbcode.com/vbforums/Topic26159-9-1.aspx</link><description>So I'm making this program and I don't know the correct code to delete a folder from like, lets say a button. &lt;/P&gt;&lt;P&gt;thx, much appreciated ;D</description><pubDate>Sat, 08 Nov 2008 22:21:27 GMT</pubDate><dc:creator>ninjapunkrawker</dc:creator></item><item><title>How to create a button to search a Microsoft Access File from a Windows Form Application?</title><link>http://www.a1vbcode.com/vbforums/Topic26003-9-1.aspx</link><description>I am creating a windows form application and added a microsoft access 2007 file to the application.  I would like to add a search button so people can search for a specific entry in the file.  &lt;/P&gt;&lt;P&gt;I tried to fool around with this but still could not make it work. The MsgBox works if no data is in the textbox but once something is enter I receive an error message saying the file is not a database. &lt;/P&gt;&lt;P&gt;   If TextBox1.Text = "" Then ' Give an error if nothing is in the text box&lt;BR&gt;            MsgBox("You did not enter any criteria to search.")&lt;BR&gt;        Else&lt;BR&gt;    Public Sub ReadMyData(ByVal myConnString As String)&lt;BR&gt;        Dim mySelectQuery As String = "SELECT Medical Record Number, Last Name, First Name FROM Table1"&lt;BR&gt;        Dim myConnection As New OleDbConnection(myConnString)&lt;BR&gt;        Dim myCommand As New OleDbCommand(mySelectQuery, myConnection)&lt;BR&gt;        myConnection.Open()&lt;BR&gt;        Dim myReader As OleDbDataReader&lt;BR&gt;        myReader = myCommand.ExecuteReader().&lt;BR&gt;        While myReader.Read()&lt;BR&gt;            Console.WriteLine(myReader.GetInt32(0).ToString() + ", " _&lt;BR&gt;               + myReader.GetString(1))&lt;FONT size=2&gt;&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Tue, 14 Oct 2008 11:27:08 GMT</pubDate><dc:creator>cbones</dc:creator></item><item><title>How to search PDF</title><link>http://www.a1vbcode.com/vbforums/Topic26164-9-1.aspx</link><description>Hello, &lt;BR&gt;&lt;BR&gt;I need help on how to search PDFs in a folder from text entered in a text box, list the PDF file names which contains the text in a list box and click on the filenames from the listbox to open the PDF. Can you please help me with the sample codes or links related to this topic. &lt;BR&gt;&lt;BR&gt;Thanks in advance. &lt;BR&gt;&lt;BR&gt;Victor</description><pubDate>Sun, 09 Nov 2008 22:30:36 GMT</pubDate><dc:creator>victor64</dc:creator></item><item><title>new vb.net 2003 user please help</title><link>http://www.a1vbcode.com/vbforums/Topic26160-9-1.aspx</link><description>am making an image viewer where the user can import an image from computer resize, rotate, and / or add effects. so far i can open the image through open dialog change the size and view the new size but when i save the image using the save dialog it saves the old image not the new image.&lt;br&gt;&lt;br&gt;here is my menu item save code&lt;br&gt;&lt;br&gt;Dim newpbwidth As Integer&lt;br&gt;        Dim newpbheight As Integer&lt;br&gt;        &lt;br&gt;&lt;br&gt;        If SaveFileDialog1.ShowDialog() = Windows.Forms.DialogResult.OK Then&lt;br&gt;&lt;br&gt;            newpbwidth = PBDisplay.Width&lt;br&gt;            newpbheight = PBDisplay.Height&lt;br&gt;            PBDisplay.SizeMode = PictureBoxSizeMode.StretchImage&lt;br&gt;            PBDisplay.ClientSize = New Size(newpbwidth, newpbheight)&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;            newimg = PBDisplay.Image&lt;br&gt;&lt;br&gt;            newimg.Save(SaveFileDialog1.FileName)&lt;br&gt;&lt;br&gt;        End If&lt;br&gt;can anyone help</description><pubDate>Sun, 09 Nov 2008 11:27:21 GMT</pubDate><dc:creator>Gerleb93</dc:creator></item><item><title>Some VB Help</title><link>http://www.a1vbcode.com/vbforums/Topic26135-9-1.aspx</link><description>I'm trying to learn VB .NET from some books and the web.  I like to do the practice programs so I'm not just "reading" but "doing" what I'm learning, (or trying to learn).  I'm stuck on 2 of them.  I'll just post this one for now.  I can write it (sort of) just using a bunch of nested if statements and so on however a friend of mine told me that's not exactly the way there wanting it done here per the instructions.  So I'm sort of stuck and just need to see how it should look to satisfy the instructions.&lt;br&gt;&lt;br&gt;&lt;br&gt;Write a Console application that lets the user decide if they want to make a Rectangle or a Box.  Depending on their answer, prompt them for the necessary values (length and width or length, width and height) and then create an object of that type.  Once this is complete, use the ToString method to print a description of the object and then the value of either the area or volume of the object to the Console.&lt;br&gt;&lt;br&gt;Although not required to look this way, your program output might look like:&lt;br&gt;&lt;br&gt;    Would you like to create a Rectangle or a Box (r or b): b&lt;br&gt;    Please enter the length: 4&lt;br&gt;    Please enter the width: 23&lt;br&gt;    Please enter the height: 3&lt;br&gt;&lt;br&gt;    This object has length: 4 and width: 23 and height: 3&lt;br&gt;    This box has volume: 276&lt;br&gt;</description><pubDate>Thu, 06 Nov 2008 17:17:11 GMT</pubDate><dc:creator>Jynx</dc:creator></item><item><title>variables in 2 forms</title><link>http://www.a1vbcode.com/vbforums/Topic26151-9-1.aspx</link><description>Hello, I want to use a variable in one form and then if I exit that one use the same variable in another form, can someone explain me how to do this? Please try to explain everything very carefully, because I 'm not a professional.</description><pubDate>Sat, 08 Nov 2008 02:55:49 GMT</pubDate><dc:creator>408a</dc:creator></item><item><title>fetch stored procedures n paramers</title><link>http://www.a1vbcode.com/vbforums/Topic26138-9-1.aspx</link><description>hi ,&lt;/P&gt;&lt;P&gt;i have  datbase having so many sp's.I want to &lt;/P&gt;&lt;P&gt;1-add stored procedure's Name in first text box.&lt;/P&gt;&lt;P&gt;2-add parameter's of sp in second textbox&lt;/P&gt;&lt;P&gt;3-add connection string in third text box.&lt;/P&gt;&lt;P&gt;Now i want fill datagrid with result set of for particular stored procedure which is add by me.&lt;/P&gt;&lt;P&gt;if anybody has idea then plz tell me.it's urtgent.</description><pubDate>Fri, 07 Nov 2008 06:40:20 GMT</pubDate><dc:creator>abj</dc:creator></item><item><title>Connection to Sql database</title><link>http://www.a1vbcode.com/vbforums/Topic26124-9-1.aspx</link><description>I am busy with a webform after trying to connect with the script below&lt;br&gt;&lt;br&gt; Protected Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click&lt;br&gt;        Dim ConnectHandler&lt;br&gt;        ConnectHandler = "Data Source=FAXCOOLWAREZ037;Initial Catalog=Accout;Persist Security Info=True;User ID=sa;Password=dieudonne"&lt;br&gt;        Dim My_Dataset As New DataSet()&lt;br&gt;        'Declare an instance SQL statement&lt;br&gt;        Dim sql As String&lt;br&gt;        sql = "Select * from AccountTBL "&lt;br&gt;        'Declare a new instance of dataset&lt;br&gt;        'Select command and connection command&lt;br&gt;        Dim objDA As New SqlDataAdapter(sql, ConnectHandler)&lt;br&gt;&lt;br&gt;&lt;br&gt;        If My_Dataset.Tables("AccountTBL").Rows.Count &gt; 0 Then&lt;br&gt;            Dim CustRow As DataRow&lt;br&gt;            CustRow = My_Dataset.Tables("AccountTBL").Rows(0)&lt;br&gt;&lt;br&gt;            TextBox1.Text = "yes"&lt;br&gt;        End If&lt;br&gt;&lt;br&gt;I received this error message  on the variable "Dim objDA"  there is the error message&lt;br&gt;"Overload resolution failed no accessible "New" can be called without a narrowing conversion. What is the meaning?&lt;br&gt;&lt;br&gt;Any help please</description><pubDate>Wed, 05 Nov 2008 08:16:42 GMT</pubDate><dc:creator>bonhomme</dc:creator></item><item><title>How to Automatically click on Image in Webbrowser</title><link>http://www.a1vbcode.com/vbforums/Topic26114-9-1.aspx</link><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face="Times New Roman" color=#000000&gt;I have the following problem in Visual Basic.net:&lt;/FONT&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT color=#000000&gt;&lt;FONT face="Times New Roman"&gt;I would like automate a process by clicking on an image in a Webbrowser control (AxWebBrowser if possible). The problem is that the image is a INPUT and it is within a FRAME, so &lt;/FONT&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Arial"&gt;&lt;STRONG&gt;AttachEventHandler &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN style="FONT-WEIGHT: normal; COLOR: black; FONT-FAMILY: Arial; mso-bidi-font-weight: bold"&gt;does not work. And I would like to click the image at an appropriate X-Y possition.&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-WEIGHT: normal; COLOR: black; FONT-FAMILY: Arial; mso-bidi-font-weight: bold"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-WEIGHT: normal; COLOR: black; FONT-FAMILY: Arial; mso-bidi-font-weight: bold"&gt;I can use API calls which does work, but I do not want to use this method&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-WEIGHT: normal; COLOR: black; FONT-FAMILY: Arial; mso-bidi-font-weight: bold"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-WEIGHT: normal; COLOR: black; FONT-FAMILY: Arial; mso-bidi-font-weight: bold"&gt;Any help would be appreciated&lt;/SPAN&gt;</description><pubDate>Mon, 03 Nov 2008 20:32:38 GMT</pubDate><dc:creator>hein123</dc:creator></item><item><title>windows application project to be place in a web application project</title><link>http://www.a1vbcode.com/vbforums/Topic26085-9-1.aspx</link><description>i would just like to ask.. how can i put my windows application project to my web application? like for example, in my web application there's a link there named "system", so when I click that, my windows application project will open.&lt;br&gt;&lt;br&gt;thanks! hope you could help me..</description><pubDate>Mon, 27 Oct 2008 20:56:43 GMT</pubDate><dc:creator>forever10</dc:creator></item><item><title>hi</title><link>http://www.a1vbcode.com/vbforums/Topic26077-9-1.aspx</link><description>Hi all I am new to this site so i would like to introduce myself here is jeff and i would like to share my ideas here in this site. I want to know about this site can anybody tell me about this site?&lt;BR&gt;________________________________________________________&lt;BR&gt;&lt;a href="http://www.panicattackspace.com/" target="_blank" class="SmlLinks"&gt;panic attacks&lt;/a&gt; &lt;a href="http://www.medpro2006.com" target="_blank" class="SmlLinks"&gt;Rachael Ray&lt;/a&gt;&lt;BR&gt;</description><pubDate>Mon, 27 Oct 2008 05:52:08 GMT</pubDate><dc:creator>danielrock4ever</dc:creator></item><item><title>Problem casting a returned structure</title><link>http://www.a1vbcode.com/vbforums/Topic26076-9-1.aspx</link><description>I'm currently writing a program in vb.net 2008, that is split into the main program and several DLLs (of which the user can select 1 to use).  In the DLL, I have a function that reads data from a filestream into a structure, then returns the structure.  While trying to assign the returned information to a variable in the main program, I get "Unable to cast object of type Vertex[] to type Vertex[]".  Here's a snippet of the code from both the DLL and the main program:&lt;br&gt;&lt;br&gt;&lt;br&gt;Main Program:&lt;br&gt;&lt;br&gt;    Public Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load&lt;br&gt;        ModelLibrary = Assembly.LoadFrom("C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\ShardM2\ShardM2\bin\Debug\ShardM2.dll")&lt;br&gt;        'ModelLibrary = Assembly.LoadFrom("ShardM2.dll")&lt;br&gt;        GLView1.MakeCurrent()&lt;br&gt;        OpenTK.Graphics.GL.ClearColor(Color.SkyBlue)&lt;br&gt;        SetupViewport()&lt;br&gt;        AddHandler Application.Idle, AddressOf Application_Idle&lt;br&gt;        sw.Start()&lt;br&gt;    End Sub&lt;br&gt;&lt;br&gt;    Private Sub OpenToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OpenToolStripMenuItem.Click&lt;br&gt;        Dim shard As Type&lt;br&gt;        shard = ModelLibrary.GetType("ModelLibrary.Shard")&lt;br&gt;        method = shard.GetMethod("Open")&lt;br&gt;        Dim o As Object&lt;br&gt;        o = Activator.CreateInstance(shard)&lt;br&gt;        Dim model As New FileStream("C:\Documents and Settings\Administrator\Desktop\WotLK M2\1HTrollSpear01.m2", FileMode.Open)&lt;br&gt;        Dim oo As Object() = {model}&lt;br&gt;        Dim VertArray() As Vertex = method.Invoke(o, oo)    &lt;b&gt;&lt;-- THIS IS THE LINE THAT ERRORS&lt;/b&gt;&lt;br&gt;    End Sub&lt;br&gt;&lt;br&gt;&lt;br&gt;DLL:&lt;br&gt;&lt;br&gt;    Public Function Open(ByVal model As FileStream) As Vertex()&lt;br&gt;        ' Start here&lt;br&gt;        Dim FileHeader As HEADER        ' Stucture variable&lt;br&gt;        Dim VertArray() As Vertex = {}&lt;br&gt;        Dim ByteArray() As Byte = {}&lt;br&gt;        Array.Resize(ByteArray, 304)&lt;br&gt;        model.Read(ByteArray, 0, 304)&lt;br&gt;        ' convert to bytes&lt;br&gt;        ' Call BuildStr method to create structure and copy byte array data to structure &lt;br&gt;        FileHeader = BuildStruct(ByteArray, FileHeader.GetType)&lt;br&gt;&lt;br&gt;        ' Vertices&lt;br&gt;        Array.Resize(VertArray, FileHeader.nVertices)       ' Declaring temporary vertices variable and setting its size&lt;br&gt;        model.Seek(FileHeader.ofsVertices, SeekOrigin.Begin)     ' Set filestream position to start of vertex data&lt;br&gt;        Dim i As Integer = 0&lt;br&gt;        Dim vert As M2VERTEX      ' temporary vertex structure variable&lt;br&gt;        Dim vertbytes() As Byte = {}        ' temporary vertex byte array.&lt;br&gt;        Array.Resize(vertbytes, 48)&lt;br&gt;&lt;br&gt;        While i &lt; FileHeader.nVertices&lt;br&gt;            model.Read(vertbytes, 0, 48)        ' reading a single vertex into the temp byte array&lt;br&gt;            vert = BuildStruct(vertbytes, vert.GetType)     ' converting the array to a VERTEX structure&lt;br&gt;            VertArray(i).Position.X = vert.pos.X&lt;br&gt;            VertArray(i).Position.Y = vert.pos.Y&lt;br&gt;            VertArray(i).Position.Z = vert.pos.Z&lt;br&gt;            VertArray(i).Normal.X = vert.normal.X&lt;br&gt;            VertArray(i).Normal.Y = vert.normal.Y&lt;br&gt;            VertArray(i).Normal.Z = vert.normal.Z&lt;br&gt;            VertArray(i).TexCoord.X = vert.texcoords.X&lt;br&gt;            VertArray(i).TexCoord.Y = vert.texcoords.Y&lt;br&gt;            VertArray(i).Weight0 = vert.weights.Weight0&lt;br&gt;            VertArray(i).Weight1 = vert.weights.Weight1&lt;br&gt;            VertArray(i).Weight2 = vert.weights.Weight2&lt;br&gt;            VertArray(i).Weight3 = vert.weights.Weight3&lt;br&gt;            VertArray(i).Bone0 = vert.bones.Bone0&lt;br&gt;            VertArray(i).Bone1 = vert.bones.Bone1&lt;br&gt;            VertArray(i).Bone2 = vert.bones.Bone2&lt;br&gt;            VertArray(i).Bone3 = vert.bones.Bone3&lt;br&gt;            i += 1&lt;br&gt;        End While&lt;br&gt;        &lt;br&gt;        Return (VertArray)&lt;br&gt;    End Function&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Both the main program AND the DLL have the Vertex structure defined exactly the same, so I don't quite get why it's not casting...  Anyways, thanks in advance for any help &lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/Smile.gif" border="0" title="Smile"&gt;&lt;br&gt;&lt;br&gt;P.S.  Sorry about not using [code] tags...  They won't work, for some reason.</description><pubDate>Sun, 26 Oct 2008 18:35:30 GMT</pubDate><dc:creator>Yamachi</dc:creator></item><item><title>Help rounding numbers</title><link>http://www.a1vbcode.com/vbforums/Topic26071-9-1.aspx</link><description>Hey, i'm having a few problems rounding my numbers to whole numbers.&lt;br&gt;&lt;br&gt;I'll be honest, i started playing with VB today heh, but im not brand new to programming, i did a little bit of Java a few years ago.&lt;br&gt;&lt;br&gt;I have searched the forums and haven't had much luck in finding help. If someone could have a quick look at this and pont me in the right direction that would be very helpful.&lt;br&gt;&lt;br&gt;&lt;br&gt;Public Class ACW&lt;br&gt;&lt;br&gt;    &lt;br&gt;    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click&lt;br&gt;        Label10.Text = Val(Val(Val(Mins1.Text) * 60) + Val(Sec1.Text)) / Val(Calls1.Text)&lt;br&gt;    End Sub&lt;br&gt;&lt;br&gt;    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click&lt;br&gt;        Label11.Text = Val(Val(Ofrs.Text) / Val(MPNEC.Text) * 100)&lt;br&gt;        Label12.Text = Val(Val(AcOfrs.Text) / Val(MPNEC.Text) * 100)&lt;br&gt;    End Sub&lt;br&gt;End Class&lt;br&gt;</description><pubDate>Sat, 25 Oct 2008 15:35:44 GMT</pubDate><dc:creator>jdwilsh</dc:creator></item><item><title>Opening Windows Explorer in a vb.net panel</title><link>http://www.a1vbcode.com/vbforums/Topic26065-9-1.aspx</link><description>Hi guys,&lt;br&gt;&lt;br&gt;I'm having a hard time getting this code to work, here's the code, I'm trying to open an instance of explorer.exe in a vb.net panel.&lt;br&gt;&lt;br&gt;Imports System.Runtime.InteropServices&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Public Class Form1&lt;br&gt;&lt;br&gt;&lt;br&gt;Private Const WM_SYSCOMMAND As Integer = 274&lt;br&gt;&lt;br&gt;Private Const SC_MAXIMIZE As Integer = 61488&lt;br&gt;&lt;br&gt;Declare Auto Function SetParent Lib "user32.dll" (ByVal hWndChild As IntPtr, ByVal hWndNewParent As IntPtr) As Integer&lt;br&gt;&lt;br&gt;Declare Auto Function SendMessage Lib "user32.dll" (ByVal hWnd As IntPtr, ByVal Msg As Integer, ByVal wParam As Integer, ByVal lParam As Integer) As Integer&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load&lt;br&gt;&lt;br&gt;Dim proc As Process&lt;br&gt;&lt;br&gt;proc = Process.Start("explorer.exe")&lt;br&gt;&lt;br&gt;proc.WaitForInputIdle()&lt;br&gt;&lt;br&gt;SetParent(proc.MainWindowHandle, Me.Panel1.Handle)&lt;br&gt;&lt;br&gt;SendMessage(proc.MainWindowHandle, WM_SYSCOMMAND, SC_MAXIMIZE, 0)&lt;br&gt;&lt;br&gt;End Sub&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;End Class&lt;br&gt;&lt;br&gt;&lt;br&gt;This is the error I'm getting.&lt;br&gt;&lt;br&gt;Process has exited, so the requested information is not available.&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks for the help!&lt;br&gt;&lt;br&gt;Newander</description><pubDate>Fri, 24 Oct 2008 15:03:38 GMT</pubDate><dc:creator>Newander</dc:creator></item><item><title>Help~! what dll file need to install at user side</title><link>http://www.a1vbcode.com/vbforums/Topic26060-9-1.aspx</link><description>HI all, &lt;P&gt;I had an application that install at user site, but when the application run on user's pc the it load the data so slow takes around  20 sec to load the data compare with my own pc that with vs 2005 installed that just takes within 5 sec to load. &lt;/P&gt;&lt;P&gt;What kind of file, that need for the user pc so that it can run smoothly ?</description><pubDate>Thu, 23 Oct 2008 21:22:15 GMT</pubDate><dc:creator>mistyfy</dc:creator></item><item><title>SendKeys.</title><link>http://www.a1vbcode.com/vbforums/Topic26058-9-1.aspx</link><description>Hello, I new to VB.NET and have an assignment to make for my project at University. I was wondering if you could help me with a problem i have come across, and sadly not found any examples on the internet.&lt;P&gt;Ok. &lt;BR&gt;Using send keys from a Button is generally easy, but how would one send keys from a keypress, more like macro'ing a key. &lt;BR&gt;&lt;BR&gt;Also' is there a way to send the key to the active &amp;#119;indow.&lt;/P&gt;&lt;P&gt;Side note: The program is being built as an onboard keyboard such as Microsoft's default one that is included.&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;Thank's in advance, &lt;BR&gt;&lt;BR&gt;SkyBlzr. &lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/Wink.gif" border="0" title="Wink"&gt;</description><pubDate>Wed, 22 Oct 2008 13:03:18 GMT</pubDate><dc:creator>SkyBlzr</dc:creator></item><item><title>prograaming</title><link>http://www.a1vbcode.com/vbforums/Topic26057-9-1.aspx</link><description>i need a prepare a programm which need to count how many times each word is repeated and show it in a list box.&lt;/P&gt;&lt;P&gt;eg;&lt;/P&gt;&lt;P&gt;this  3&lt;/P&gt;&lt;P&gt;mangoe 1&lt;/P&gt;&lt;P&gt;is 8&lt;/P&gt;&lt;P&gt;so anyone can help me doing this am a student.&lt;/P&gt;&lt;P&gt;thanking you in advance</description><pubDate>Wed, 22 Oct 2008 11:26:34 GMT</pubDate><dc:creator>aaah091</dc:creator></item><item><title>please help please help folder accessing...</title><link>http://www.a1vbcode.com/vbforums/Topic26039-9-1.aspx</link><description>[b]hi&lt;br&gt;i need to secure files and folders...&lt;br&gt;&lt;br&gt;for example a folder has some jpeg images...those images can easily copied and modified or anything..........&lt;br&gt;&lt;br&gt;now i need to authorization for that folder...only registered people only have to access that files means copying or installing&lt;br&gt;&lt;br&gt;&lt;br&gt;or &lt;br&gt;important one is,&lt;br&gt;i have an idea.... a dll should be contained in that folder then only files and that folder should be accessed without dll folder should be locked...or not accessable...&lt;br&gt;&lt;br&gt;for that how to write that dll......................&lt;br&gt;&lt;br&gt;thank you....tell me immediately nxtwithme@yahoo.co.in[/b]</description><pubDate>Tue, 21 Oct 2008 07:21:03 GMT</pubDate><dc:creator>amulboy</dc:creator></item><item><title>formula field from crystal report to vb.net using vs 2005</title><link>http://www.a1vbcode.com/vbforums/Topic26037-9-1.aspx</link><description>&lt;b&gt;in my formula field(formula01) in crystal report i have a condition there like this...&lt;/b&gt;&lt;br&gt;&lt;b&gt;if {tablename.fieldname} = 'Y' then&lt;/b&gt;&lt;br&gt;&lt;b&gt;    'Yes'&lt;/b&gt;&lt;br&gt;&lt;b&gt;else if {tablename.fieldname} = 'N' then&lt;/b&gt;&lt;br&gt;&lt;b&gt;    'No'&lt;/b&gt;&lt;br&gt;&lt;br&gt;&lt;b&gt;the problem is... I always gets this error.. "error in formula.. formula01. if {tablename.fieldname} = 'Y' then&lt;/b&gt;&lt;br&gt;&lt;b&gt;    'Yes'&lt;/b&gt;&lt;br&gt;&lt;b&gt;else if {tablename.fieldname} = 'N' then&lt;/b&gt;&lt;br&gt;&lt;b&gt;    'No' &lt;/b&gt;&lt;br&gt;&lt;br&gt;&lt;b&gt;This field name is not known.." &lt;/b&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;b&gt;can you help me how can i get through this in vb.net code.. hope you can help me.. thanks!&lt;/b&gt;</description><pubDate>Tue, 21 Oct 2008 03:57:30 GMT</pubDate><dc:creator>forever10</dc:creator></item><item><title>for each qusetion</title><link>http://www.a1vbcode.com/vbforums/Topic26035-9-1.aspx</link><description>I'm trying to make a for each to show all items in an array but I have to arrays that need to be shown at the same time.&lt;br&gt;&lt;br&gt;right now I have &lt;br&gt;For Each ele As String In phpele&lt;br&gt;&lt;br&gt;and it works great&lt;br&gt;&lt;br&gt;but I was trying to do &lt;br&gt;For Each ele As String In phpele And elecolor As String In setcolor &lt;br&gt;&lt;br&gt;and I keep getting errors&lt;br&gt;&lt;br&gt;phpele and setcolor are dimmed as string and they both are arrays&lt;br&gt;&lt;br&gt;&lt;br&gt;I can't get this to work can someone please help me out with this?&lt;br&gt;&lt;br&gt;Thanks alot</description><pubDate>Mon, 20 Oct 2008 17:58:58 GMT</pubDate><dc:creator>Phantom Sonic</dc:creator></item></channel></rss>