﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>A1VBCode Forums / Classic Visual Basic (VB 6 or earlier) / General Visual Basic </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, 29 Jul 2010 18:36:41 GMT</lastBuildDate><ttl>20</ttl><item><title>VB 6 software application and Win 7 issues</title><link>http://www.a1vbcode.com/vbforums/Topic29474-3-1.aspx</link><description>If you (or someone you know) may be interested in speaking to me re: this project I'd love to hear from you.  It's a nice product, has been on the market for five years and I have the code as the sole proprietor.  We just need to get past the issues seen with Win 7.  If interested in learning more, pls contact reply privately and we'll go from there.  If there are other places on this site that this message should appear, pls advise as I wish only to follow the rules towards a successful correction in our code.  Thanks.</description><pubDate>Wed, 28 Jul 2010 11:41:18 GMT</pubDate><dc:creator>VB_2010_USA</dc:creator></item><item><title>Help in VB</title><link>http://www.a1vbcode.com/vbforums/Topic29466-3-1.aspx</link><description>&lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/Smile.gif" border="0" title="Smile"&gt;Good Evening every one...I m new to programming and specially in VB .I just got an assignment from my company to upload a file in sql server through vb.I m not able to do it.I have created a table in sql server 2005 with the same column name but after having so many visits on search engines m not able to find the exact solution for it.Kindly help me ,will be grate ful .Thanks&lt;P&gt;One more thing I m trying since morning when I declare a adodb driver as a connection ,system is giving "user defined type not defined "error.&lt;/P&gt;&lt;P&gt;Someone has suggested me this website and I found many wonderful projects in it.Hoping positive response from anyone of u.&lt;/P&gt;&lt;P&gt;Thanks Again..</description><pubDate>Tue, 27 Jul 2010 09:01:03 GMT</pubDate><dc:creator>h81</dc:creator></item><item><title>Digitize Part of Bitmap Image</title><link>http://www.a1vbcode.com/vbforums/Topic29215-3-1.aspx</link><description>I am a raw beginner to visual basic (I have ver. 6), I do have some experience with quickbasic 4.5 which is not visual.&lt;br&gt;I need code to open a large bitmap image in JPG format, size is 2300 by 2697 pix and my screen size is 1024 by 768, placing it on a background ( or layer), which will not be saved. Then on an active layer I want to draw parts of this bitmap image in as points (nodes) and lines, or ploylines, and when done, save this vector data (layer).&lt;br&gt;Then I want to export or save this vector data to a file  in plain text. &lt;br&gt;&lt;br&gt;Looks like what I need to do is write code for a "picture box" in order to load (open) the jpg bitmat, --- then  ---&lt;br&gt;&lt;br&gt;write code for recording (appending) the screen coordinates of each mouse click, to an ascii text file.&lt;br&gt;&lt;br&gt;I have read general books for V B but it appears they are assuming that I already know what is going on, which I do not.&lt;br&gt;&lt;br&gt;There are commercial programs which will do this, but they are very expensive, and the beauty of writing my own is that I have some control over how it works.&lt;br&gt;La Vesey&lt;br&gt;</description><pubDate>Tue, 27 Apr 2010 12:18:23 GMT</pubDate><dc:creator>La Vesey</dc:creator></item><item><title>8 bit Signal Generator-VB 6</title><link>http://www.a1vbcode.com/vbforums/Topic29462-3-1.aspx</link><description>I am making a small software to automate LED light system&lt;br&gt;with the use of port programming&lt;br&gt;pls help me on this.&lt;br&gt;pls sorry for my bad written English.&lt;br&gt;&lt;br&gt;In this case i hv used 8 command buttons.&lt;br&gt;when we click dat button buttons backcolor goes red&lt;br&gt;when we click dat again its  backcolor goes white.&lt;br&gt;After clicking those 8 buttons as the user likeness there is a button called ADD&lt;br&gt;when we click dat button generates binary code corresponding to dat buttons backcolors(RED-1/White-0)&lt;br&gt;&lt;br&gt;ex: &lt;br&gt;8 command buttons&gt;&gt;&lt;br&gt;RED | WHITE | RED | WHITE | RED | WHITE | WHITE | WHITE&lt;br&gt;&lt;br&gt;8bit no added to the list box&gt;&gt;&lt;br&gt;10101000&lt;br&gt;&lt;br&gt;like wise we can add several bit patterns to the list box&lt;br&gt;after adding those patterns we can click play.&lt;br&gt;When playing, 1st the program analyzes the listbox, those bits in 1st row and generates parrallel port output as well as Buttons Demonstration.(I mean the reverse case of that i mentioned earlier.. analyze bit pattern and blink those buttons)&lt;br&gt;this process must complete consecutively. row by row program reads the bit pattern sets the button button colors as it should be. delay few seconds. again reads next row.. &lt;br&gt;&lt;br&gt;I programmed this.But i couldnt get the required output. I get the required output when i use break option when executing.&lt;br&gt;&lt;br&gt;This is the Project coding i hv made.pls refer that.and help me out this.&lt;br&gt;The problem is in RUN button.&lt;br&gt;In the body of (For i=0 to listcount-1) Loop&lt;br&gt;&lt;br&gt;http://www.box.net/shared/jo77sm33gq&lt;br&gt;&lt;br&gt;Thanks.&lt;br&gt;</description><pubDate>Sun, 25 Jul 2010 20:21:12 GMT</pubDate><dc:creator>harshato</dc:creator></item><item><title>Project Explorer, and Properties Window missing</title><link>http://www.a1vbcode.com/vbforums/Topic29431-3-1.aspx</link><description>When Writing a visual Basic (VB6) program and load the program I cannot access The Project Explorer or Properties Window. When I click VIEW nothing happens. How do I reset them?&lt;/P&gt;&lt;P&gt;Thanks, Atora</description><pubDate>Fri, 16 Jul 2010 09:48:19 GMT</pubDate><dc:creator>atora</dc:creator></item><item><title>I need some help working out the point positions along a straight line: in vb.net or c#</title><link>http://www.a1vbcode.com/vbforums/Topic29458-3-1.aspx</link><description>Help needed Calculating New points along a straight line:&lt;br&gt;&lt;br&gt;I need some help working out the point positions along a straight line:&lt;br&gt;&lt;br&gt;I will try to explain what I am doing:&lt;br&gt;&lt;br&gt;I have two points (x1, y1) and (x2,y2) and have a straight line between the 2 points, from this I can work out the distance between the 2 points lets say it is 50.&lt;br&gt;What I want to do is increase or decrease the length of the line by a predefined amount lets say 10.&lt;br&gt;So If I increase the line length by 10 (from 50 to 60), What I want to work out is what point(x3,y3) would be at the end of the increased line.&lt;br&gt;Hope this makes sense.&lt;br&gt;I have tried to work out the new point using the angle but it does not work correctly, it does not seems to produce a perfectly straight line and the angle from point (x1,y1) to the new (x3,y3) is not the same as the angle from point (x1,y1 to x2,y2).&lt;br&gt;&lt;br&gt;This is what I have tried:&lt;br&gt;:I work out the angle&lt;br&gt;aAngle =Math.Atan((Y2 – Y1) / (X2 – X2))&lt;br&gt;&lt;br&gt;:get the length of the line and increase by 10&lt;br&gt;nChngX = Math.Pow((X1 –X2), 2))&lt;br&gt;nChngY = Math.Pow((Y1 – Y2), 2))&lt;br&gt;nChng = Math.Sqrt(nChngX + nChngY)  + 10&lt;br&gt;&lt;br&gt;:work out the new points (x3,y3)&lt;br&gt;X3 = CSng((Math.Cos(aAngle) * nChng))&lt;br&gt;Y3 = CSng(CSng((Math.Sin(aAngle) * nChng)))&lt;br&gt;&lt;br&gt;If someone could post some sample code, in either c# or vb.net that would be much appreciated.&lt;br&gt;</description><pubDate>Thu, 22 Jul 2010 03:57:48 GMT</pubDate><dc:creator>coolpjmartin</dc:creator></item><item><title>How to reset Windows 7/Vista/XP/2000 password if you forgot or lost windows password</title><link>http://www.a1vbcode.com/vbforums/Topic29441-3-1.aspx</link><description>How to reset Windows 7/Vista/XP/2000 password if you forgot or lost windows password&lt;/P&gt;&lt;P&gt;It is truly very often for us to meet the password problem, sometimes we would forgot windows password or lost windows password, and could not login windows system and make a big trouble. At this time, you would hope to find a way to reset and recover the forgotten password. &lt;BR&gt;Actually, a lot of methods are available to recover or reset the Windows password. But most of them are designed for PC experts, not common PC users, those solutions are too complicated to get it work for us. And in this article, I will show you a professional software tool which could help you to reset forgotten windows password easily.&lt;/P&gt;&lt;P&gt;Total Windows Password Reset is powerful password recovery software to reset Windows admin&lt;BR&gt;passwords for you to login Windows OS without reinstalling the OS when you forgot windows password or lost windows password. It could remove windows password and set the password to blank. Just boot from the program CD/DVD or USB flash drive, choose the account you wish to reset and all will be done. It is not a method to crack or bypass windows password, just remove or delete windows password and set it to blank so you could login windows to set new password.&lt;BR&gt;Below is the guide of how to reset windows password with this software, only 3 steps are needed to reset windows 7/Vista/XP password:&lt;/P&gt;&lt;P&gt;Step 1: Download the setup file of Total Windows Password Reset on the official website: &lt;BR&gt;&lt;A href="http://www.resetwindowspassword.net/downloads/totalwpr.exe"&gt;http://www.resetwindowspassword.net/downloads/totalwpr.exe&lt;/A&gt; &lt;BR&gt;And install it on another PC. Then you could startup the password recovery software to prepare the bootable disc.&lt;BR&gt;&lt;img src="http://resetwindowspassword.net/forum/password-guide/total-windows-password-reset-main.jpg"&gt; &lt;BR&gt;Step 2: Burn the windows password recovery bootable CD/DVD or USB disc with the software. &lt;BR&gt;Now, you may select “Burn DVD/CD Disc” or “Use USB Disc”. If you select first method, you need to have a blank CDR/DVDR disk, a COMBO or DVDRW drive on the PC. If you select to use USB disc, you just need to pay attention: This USB devices would be formatted, so you must make sure to back up all the data before use it. And the maximum capacity of the USB devices cannot exceed 2G.&lt;BR&gt;Tips: We recommend you to use the DVD/CD method to do the windows password reset, because some computers may not support USB start-up.&lt;/P&gt;&lt;P&gt;Below is step by step to show you how to burn the CD/DVD&lt;BR&gt;1.  Launch Total Windows Password Reset main window, Click “Burn DVD/CD Disc” button.&lt;BR&gt;2.  In BurnCC’s main window, click “Browse” button and in the open window, locate the file “TWPR.iso” on your desktop, select it and click on Open to get back to the main &amp;#119;indow. Then, click “Start” button.&lt;BR&gt;&lt;img src="http://resetwindowspassword.net/forum/password-guide/burncdcc.jpg"&gt; &lt;BR&gt;3 Your DVD drive should open and insert a blank CD-R or DVD-R disc into the drive and close it. Click “OK” button. Your CD will be burned in a few minutes.&lt;BR&gt;Tips: if there is already a CD/DVD disc in the drive before run the software, the CD drive will open automatically . Please close it again. The process will be continuing.&lt;/P&gt;&lt;P&gt;Below is step by step to show you how to burn the USB drive&lt;BR&gt;1 Insert a USB drive into a USB slot on your computer and run Total Windows Password Reset, Click “Use USB Disc” button.&lt;BR&gt;2 Click“Step1”button. Then, Right-click on the usb_format.exe and choose “Run as Administrator”. &lt;BR&gt;3 In USB Disk Storage Format window, set the file system to FAT, Check the Quick Format box, check the Create DOS Bootable Disk, Browse to the DOS_files folder on your Desktop, click OK &amp;amp; then Start.&lt;BR&gt;&lt;img src="http://resetwindowspassword.net/forum/password-guide/reset-usb-4.jpg"&gt; &lt;BR&gt;4. Click OK on the following window and then close the USB format tool. Your USB drive now is formatted.&lt;/P&gt;&lt;P&gt;5. Click “Step2” button and open the USB drive with your computer. Then, copy the files from the USB_files folder and paste them directly to the USB drives main directory. 2 of the files may become hidden and you will not see them on the USB drive. This is okay. Your USB drive is now complete.&lt;/P&gt;&lt;P&gt;Step 3: Boot your PC with the burned CD/DVD or USB disc to reset windows password. &lt;BR&gt;You need to insert the Created CD/DVD or USB drive into the optional drive of the locked computer and reboot it.&lt;BR&gt;Tips: It your computer still boots from hard drive Windows OS, it's necessary for you to change your COMS or BIOS settings to make it boot from CD/DVD or USB drive. If you don’t know how to set it, you may visit the official website:  &lt;A href="http://www.resetwindowspassword.net"&gt;http://www.resetwindowspassword.net&lt;/A&gt; or contact the computer manufacture.&lt;/P&gt;&lt;P&gt;The computer boots from CD/DVD or USB drive, then&lt;BR&gt;1 The program will ask for the Windows OS hard drive volume. Enter the ID number of the hard drive volume that Windows is installed.&lt;BR&gt;&lt;img src="http://resetwindowspassword.net/forum/password-guide/total-windows-password-reset.jpg"&gt; &lt;BR&gt;2 The program has detected all the user names of Windows and asks which user name password is to be removed. Enter the ID number for the User Name.&lt;/P&gt;&lt;P&gt;3 The program asks to confirm weather to remove the password or not. Enter "y" (yes) to confirm your action and "n" (no) to deny the action and hit "Enter".&lt;/P&gt;&lt;P&gt;4 The program asks whether to continue to remove passwords for other accounts. Enter "y" to continue and "n" to finish. Eject your USB from your computer first and press any key to restart the computer from Windows. Now you can log in Windows with an empty password (with no password.), just click “Enter” when you login.&lt;/P&gt;&lt;P&gt;If you have any questions of the procedure and the settings, you could visit the website:http://www.resetwindowspassword.net or send email to &lt;A href="mailto:support@resetwindowspassword.net"&gt;support@resetwindowspassword.net&lt;/A&gt;. &lt;/P&gt;&lt;P&gt;Now you could see that to reset or recover the admin login password of windows OS: XP, Vista, Windows 7 or 2000 is not so difficult and you can do it with ease.&lt;BR&gt;</description><pubDate>Mon, 19 Jul 2010 02:49:08 GMT</pubDate><dc:creator>passwings</dc:creator></item><item><title>Diff between VB6.0 and VB in Visual Studio 2005</title><link>http://www.a1vbcode.com/vbforums/Topic29256-3-1.aspx</link><description>Sorry if this has been asked before, I did a search but I didn't get any hits. I've been using VB6.0 since 2002 and my computer is showing signs of crashing sometime soon. I've had it since 2005. Company still has a copy of VB6.0 but has lost the MSDN help files and samples disk. They list Studio 2005 on their catalog and my question is how much difference is there, how quickly can I adapt to the more recent version of the language?</description><pubDate>Fri, 07 May 2010 09:47:24 GMT</pubDate><dc:creator>macroman</dc:creator></item><item><title>VBA excel code for copy from 1 sheet to another when cell value = ...</title><link>http://www.a1vbcode.com/vbforums/Topic29398-3-1.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;I need a VBA code that looks at the value in colA and copy that row to another sheet.&lt;/P&gt;&lt;P&gt;fe;&lt;/P&gt;&lt;P&gt;Col A contains country names.&lt;/P&gt;&lt;P&gt;if A2 ="Spain" ...  copy row 2 to sheet"Spain"&lt;/P&gt;&lt;P&gt;A3="Italy"... copy row 3 to sheet Italy.  etc. &lt;/P&gt;&lt;P&gt;can someone please help me with this code.&lt;/P&gt;&lt;P&gt;thanks Katrin</description><pubDate>Thu, 01 Jul 2010 09:59:24 GMT</pubDate><dc:creator>Katrin</dc:creator></item><item><title>Combine Text files wrt time</title><link>http://www.a1vbcode.com/vbforums/Topic29409-3-1.aspx</link><description>A friend gave me his chat logs and they are saved in different files. I mean that his logs are in one file and his partner's in another. Each line of the log starts with time in the format HH:MM:SS and I want them to be merged with respect to time. Here the example of the logs:&lt;br&gt;File A:&lt;br&gt;11:06:50 AM sallu: hi&lt;br&gt;11:07:25 AM sallu: no&lt;br&gt;11:07:35 AM sallu: It was not me&lt;br&gt;11:07:39 AM sallu: i asked&lt;br&gt;File B:&lt;br&gt;11:07:18 AM jony: hi&lt;br&gt;11:07:36 AM jony: u called?&lt;br&gt;11:07:54 AM jony: ok&lt;br&gt;&lt;br&gt;I want them to be combined like this&lt;br&gt;11:06:50 AM sallu: hi&lt;br&gt;11:07:18 AM jony: hi&lt;br&gt;11:07:25 AM sallu: no&lt;br&gt;11:07:35 AM sallu: It was not me&lt;br&gt;11:07:36 AM jony: u called?&lt;br&gt;11:07:39 AM sallu: i asked&lt;br&gt;11:07:54 AM jony: ok&lt;br&gt;&lt;br&gt;I just want this program for personal use.&lt;br&gt;Please help me.. its really hard to keep an eye at two files at a time.</description><pubDate>Mon, 05 Jul 2010 13:50:21 GMT</pubDate><dc:creator>¤ J???íð ¤</dc:creator></item><item><title>How to select a random record from database??</title><link>http://www.a1vbcode.com/vbforums/Topic29323-3-1.aspx</link><description>hi every one &lt;/P&gt;&lt;P&gt;How to select a random record from database ??&lt;/P&gt;&lt;P&gt;&lt;SPAN id=result_box class=medium_text&gt;&lt;SPAN style="BACKGROUND-COLOR: #e6ecf9; COLOR: #000" title="" qc="For example, if 36: I want to choose a record from a database from a particular table and deal with them with the knowledge of the numbers of these records" pc="علي سبيل المثال لو أنا عايز أختار ٣٦ سجل من قاعدة البيانات من جدول معين والتعامل معاهم مع معرفة أرقام هذه السجلات" closure_uid_c1iuxa="118"&gt;&lt;FONT size=3&gt;For example if  I want to choose 36 a record from a database from a particular table and deal with them with the knowledge of the numbers of these records&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=medium_text&gt;&lt;SPAN style="BACKGROUND-COLOR: #e6ecf9; COLOR: #000" title="" qc="For example, if 36: I want to choose a record from a database from a particular table and deal with them with the knowledge of the numbers of these records" pc="علي سبيل المثال لو أنا عايز أختار ٣٦ سجل من قاعدة البيانات من جدول معين والتعامل معاهم مع معرفة أرقام هذه السجلات" closure_uid_c1iuxa="118"&gt;&lt;SPAN id=result_box class=long_text&gt;&lt;SPAN style="BACKGROUND-COLOR: #fff" title="" qc="If I want a query, for example, by choosing de&amp;#13;&amp;#10;" pc="لو عايز أعمل أستعلام مثلا من خلال الأختيار ده" closure_uid_c1iuxa="230"&gt;If I want a query, for example, by choosing de&lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="BACKGROUND-COLOR: #fff" title="" qc="I saw that the query easier filling all&amp;#13;&amp;#10;" pc="أنا شايف أن الاستعلام هيكون أسهل" closure_uid_c1iuxa="231"&gt;I saw that the query easier filling all&lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="BACKGROUND-COLOR: #fff" title="" qc="But the problem is How do you figure out de records randomly&amp;#13;&amp;#10;" pc="بس المشكلة هي أزاي أخرج الرقم ده من السجلات بشكل عشوائي" closure_uid_c1iuxa="234"&gt;But the problem is How do you figure out de records randomly&lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="BACKGROUND-COLOR: #fff" title="" qc="I am very grateful for all professionals who help me&amp;#13;&amp;#10;" pc="وأنا شاكر جدا لكل المحترفين أللي بيساعدوني" closure_uid_c1iuxa="275"&gt;I am very grateful for all professionals who help me&lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN title="" qc="Special thanks too for each of the" pc="وشكر خاص جدا لكل من" closure_uid_c1iuxa="290"&gt;Special thanks too for each of the&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN class=medium_text&gt;&lt;SPAN style="BACKGROUND-COLOR: #e6ecf9; COLOR: #000" title="" qc="For example, if 36: I want to choose a record from a database from a particular table and deal with them with the knowledge of the numbers of these records" pc="علي سبيل المثال لو أنا عايز أختار ٣٦ سجل من قاعدة البيانات من جدول معين والتعامل معاهم مع معرفة أرقام هذه السجلات" closure_uid_c1iuxa="118"&gt;&lt;SPAN class=long_text&gt;&lt;SPAN title="" qc="Special thanks too for each of the" pc="وشكر خاص جدا لكل من" closure_uid_c1iuxa="290"&gt;&lt;P&gt;&lt;TABLE cellSpacing=0 cellPadding=0 width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class=SmallTxt width="80%"&gt;&lt;DIV id=_ctl1__ctl0_ctlTopic__ctl0_ctlPanelBar_ctlTopicsRepeater__ctl8_smAuthorName_DivLayer &amp;#111;nmouseover="if_openMenuMouseOver('_ctl1__ctl0_ctlTopic__ctl0_ctlPanelBar_ctlTopicsRepeater__ctl8_smAuthorName','_ctl1__ctl0_ctlTopic__ctl0_ctlPanelBar_ctlTopicsRepeater__ctl8_smAuthorName_DivLayer','&lt;table width=100% class=ForumsBackGroundTable cellspacing=0 cellpadding=0&gt;&lt;tr&gt;&lt;td&gt;&lt;table width=100% cellspacing=1 cellpadding=7&gt;&lt;tr&gt;&lt;td class=ForumsBody1&gt;&lt;a href=UserInfo8843.aspx Class=\'SmlLinks\' Title=\'View Member\s Profile\'&gt;View Member\'s Profile&lt;/a&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=ForumsBody1&gt;&lt;a href=BuddyIgnoreList1.aspx?Username=vb5prgrmr Class=\'SmlLinks\' Title=\'Add to Buddy List\'&gt;Add to Buddy List&lt;/a&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=ForumsBody1&gt;&lt;a href=__doPostBack(\'butSendPrivateMessage\',\'8843\'); onMouseOver=\'&amp;#119;indow.status=&amp;#119;indow.location;return true;\'; onMouseOut=&amp;#119;indow.status=\'\';return true; Class=\'SmlLinks\' Title=\'Send Private Message\'&gt;Send Private Message&lt;/a&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=ForumsBody1&gt;&lt;a href=__doPostBack(\'butSendEmail\',\'8843\'); onMouseOver=\'&amp;#119;indow.status=&amp;#119;indow.location;return true;\'; onMouseOut=&amp;#119;indow.status=\'\';return true; Class=\'SmlLinks\' Title=\'Send Email To Member\'&gt;Send Email To Member&lt;/a&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=ForumsBody1&gt;&lt;a href=__doPostBack(\'butShowMemberPosts\',\'8843\'); onMouseOver=\'&amp;#119;indow.status=&amp;#119;indow.location;return true;\'; onMouseOut=&amp;#119;indow.status=\'\';return true; Class=\'SmlLinks\' Title=\'Find All Member\s Posts\'&gt;Find All Member\'s Posts&lt;/a&gt;&lt;/tr&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;','165');" &amp;#111;nclick="if_openMenu('_ctl1__ctl0_ctlTopic__ctl0_ctlPanelBar_ctlTopicsRepeater__ctl8_smAuthorName','_ctl1__ctl0_ctlTopic__ctl0_ctlPanelBar_ctlTopicsRepeater__ctl8_smAuthorName_DivLayer','&lt;table width=100% class=ForumsBackGroundTable cellspacing=0 cellpadding=0&gt;&lt;tr&gt;&lt;td&gt;&lt;table width=100% cellspacing=1 cellpadding=7&gt;&lt;tr&gt;&lt;td class=ForumsBody1&gt;&lt;a href=UserInfo8843.aspx Class=\'SmlLinks\' Title=\'View Member\s Profile\'&gt;View Member\'s Profile&lt;/a&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=ForumsBody1&gt;&lt;a href=BuddyIgnoreList1.aspx?Username=vb5prgrmr Class=\'SmlLinks\' Title=\'Add to Buddy List\'&gt;Add to Buddy List&lt;/a&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=ForumsBody1&gt;&lt;a href=__doPostBack(\'butSendPrivateMessage\',\'8843\'); onMouseOver=\'&amp;#119;indow.status=&amp;#119;indow.location;return true;\'; onMouseOut=&amp;#119;indow.status=\'\';return true; Class=\'SmlLinks\' Title=\'Send Private Message\'&gt;Send Private Message&lt;/a&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=ForumsBody1&gt;&lt;a href=__doPostBack(\'butSendEmail\',\'8843\'); onMouseOver=\'&amp;#119;indow.status=&amp;#119;indow.location;return true;\'; onMouseOut=&amp;#119;indow.status=\'\';return true; Class=\'SmlLinks\' Title=\'Send Email To Member\'&gt;Send Email To Member&lt;/a&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=ForumsBody1&gt;&lt;a href=__doPostBack(\'butShowMemberPosts\',\'8843\'); onMouseOver=\'&amp;#119;indow.status=&amp;#119;indow.location;return true;\'; onMouseOut=&amp;#119;indow.status=\'\';return true; Class=\'SmlLinks\' Title=\'Find All Member\s Posts\'&gt;Find All Member\'s Posts&lt;/a&gt;&lt;/tr&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;','165');" 100%px;? width:&gt;&lt;A id=_ctl1__ctl0_ctlTopic__ctl0_ctlPanelBar_ctlTopicsRepeater__ctl8_smAuthorName class=SmlBoldLinks &amp;#111;nmouseover="&amp;#119;indow.status = &amp;#119;indow.location;return true;" title="View vb5prgrmr's Profile..." &amp;#111;nmouseout="&amp;#119;indow.status='';return true;" href="void('');"&gt;vb5prgrmr&lt;/A&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/P&gt;&lt;P&gt;&lt;TABLE cellSpacing=0 cellPadding=0 width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class=SmallTxt width="80%"&gt;&lt;DIV id=_ctl1__ctl0_ctlTopic__ctl0_ctlPanelBar_ctlTopicsRepeater__ctl4_smAuthorName_DivLayer &amp;#111;nmouseover="if_openMenuMouseOver('_ctl1__ctl0_ctlTopic__ctl0_ctlPanelBar_ctlTopicsRepeater__ctl4_smAuthorName','_ctl1__ctl0_ctlTopic__ctl0_ctlPanelBar_ctlTopicsRepeater__ctl4_smAuthorName_DivLayer','&lt;table width=100% class=ForumsBackGroundTable cellspacing=0 cellpadding=0&gt;&lt;tr&gt;&lt;td&gt;&lt;table width=100% cellspacing=1 cellpadding=7&gt;&lt;tr&gt;&lt;td class=ForumsBody1&gt;&lt;a href=UserInfo1276.aspx Class=\'SmlLinks\' Title=\'View Member\s Profile\'&gt;View Member\'s Profile&lt;/a&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=ForumsBody1&gt;&lt;a href=BuddyIgnoreList1.aspx?Username=Keithuk Class=\'SmlLinks\' Title=\'Add to Buddy List\'&gt;Add to Buddy List&lt;/a&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=ForumsBody1&gt;&lt;a href=__doPostBack(\'butSendPrivateMessage\',\'1276\'); onMouseOver=\'&amp;#119;indow.status=&amp;#119;indow.location;return true;\'; onMouseOut=&amp;#119;indow.status=\'\';return true; Class=\'SmlLinks\' Title=\'Send Private Message\'&gt;Send Private Message&lt;/a&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=ForumsBody1&gt;&lt;a href=__doPostBack(\'butSendEmail\',\'1276\'); onMouseOver=\'&amp;#119;indow.status=&amp;#119;indow.location;return true;\'; onMouseOut=&amp;#119;indow.status=\'\';return true; Class=\'SmlLinks\' Title=\'Send Email To Member\'&gt;Send Email To Member&lt;/a&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=ForumsBody1&gt;&lt;a href=__doPostBack(\'butShowMemberPosts\',\'1276\'); onMouseOver=\'&amp;#119;indow.status=&amp;#119;indow.location;return true;\'; onMouseOut=&amp;#119;indow.status=\'\';return true; Class=\'SmlLinks\' Title=\'Find All Member\s Posts\'&gt;Find All Member\'s Posts&lt;/a&gt;&lt;/tr&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;','165');" &amp;#111;nclick="if_openMenu('_ctl1__ctl0_ctlTopic__ctl0_ctlPanelBar_ctlTopicsRepeater__ctl4_smAuthorName','_ctl1__ctl0_ctlTopic__ctl0_ctlPanelBar_ctlTopicsRepeater__ctl4_smAuthorName_DivLayer','&lt;table width=100% class=ForumsBackGroundTable cellspacing=0 cellpadding=0&gt;&lt;tr&gt;&lt;td&gt;&lt;table width=100% cellspacing=1 cellpadding=7&gt;&lt;tr&gt;&lt;td class=ForumsBody1&gt;&lt;a href=UserInfo1276.aspx Class=\'SmlLinks\' Title=\'View Member\s Profile\'&gt;View Member\'s Profile&lt;/a&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=ForumsBody1&gt;&lt;a href=BuddyIgnoreList1.aspx?Username=Keithuk Class=\'SmlLinks\' Title=\'Add to Buddy List\'&gt;Add to Buddy List&lt;/a&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=ForumsBody1&gt;&lt;a href=__doPostBack(\'butSendPrivateMessage\',\'1276\'); onMouseOver=\'&amp;#119;indow.status=&amp;#119;indow.location;return true;\'; onMouseOut=&amp;#119;indow.status=\'\';return true; Class=\'SmlLinks\' Title=\'Send Private Message\'&gt;Send Private Message&lt;/a&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=ForumsBody1&gt;&lt;a href=__doPostBack(\'butSendEmail\',\'1276\'); onMouseOver=\'&amp;#119;indow.status=&amp;#119;indow.location;return true;\'; onMouseOut=&amp;#119;indow.status=\'\';return true; Class=\'SmlLinks\' Title=\'Send Email To Member\'&gt;Send Email To Member&lt;/a&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=ForumsBody1&gt;&lt;a href=__doPostBack(\'butShowMemberPosts\',\'1276\'); onMouseOver=\'&amp;#119;indow.status=&amp;#119;indow.location;return true;\'; onMouseOut=&amp;#119;indow.status=\'\';return true; Class=\'SmlLinks\' Title=\'Find All Member\s Posts\'&gt;Find All Member\'s Posts&lt;/a&gt;&lt;/tr&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;','165');" 100%px;? width:&gt;&lt;A id=_ctl1__ctl0_ctlTopic__ctl0_ctlPanelBar_ctlTopicsRepeater__ctl4_smAuthorName class=SmlBoldLinks &amp;#111;nmouseover="&amp;#119;indow.status = &amp;#119;indow.location;return true;" title="View Keithuk's Profile..." &amp;#111;nmouseout="&amp;#119;indow.status='';return true;" href="void('');"&gt;Keithuk&lt;/A&gt;&lt;/DIV&gt;&lt;NOSCRIPT&gt;&lt;/NOSCRIPT&gt;&lt;/TD&gt;&lt;TD class=SmallTxt width="20%" noWrap align=right&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/P&gt;&lt;P&gt;thanx&lt;/P&gt;&lt;P&gt;&lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/Smile.gif" border="0" title="Smile"&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;</description><pubDate>Wed, 26 May 2010 12:35:54 GMT</pubDate><dc:creator>smart sout</dc:creator></item><item><title>VB6 - Making Form Always Be On Bottom</title><link>http://www.a1vbcode.com/vbforums/Topic29399-3-1.aspx</link><description>Hi, y'all,&lt;/P&gt;&lt;P&gt;     Icons on the Windows desktop are not always sufficient.  They don't provide enough space for the name and the font is too small (the older I get).  So, I wanted to have something like the Windows desktop where instead of the icons, I could add wide buttons with print large enough for me to read easily.  I've created a form and dynamically create buttons for the form based on the contents of a text file.  It all works like a charm.  The last piece of the puzzle to complete this bit of programming happiness is to make the form always be underneath other windows.  I have it as a vertical bar on the right side of the screen, leaving the icons on the deskop uncovered and providing the extra functionality I want.  But, of course, when I click on it, it partially covers up whatever window was above it.  The MouseMove events (such as to make visual changes to the buttons) fire without making the form jump forward.&lt;BR&gt;&lt;/P&gt;&lt;P&gt;There may be some way to add buttons directly to the desktop, and knowing how to do that would be cool, but since I already have everything worked out the other way, it would be nice to just make an adjustment to this method.&lt;/P&gt;&lt;P&gt;Does anyone know how to make the form stay beneath every other form window?&lt;/P&gt;&lt;P&gt;Thanks for input!</description><pubDate>Thu, 01 Jul 2010 16:18:24 GMT</pubDate><dc:creator>GGoldenborne</dc:creator></item><item><title>Reading file in VB.Net</title><link>http://www.a1vbcode.com/vbforums/Topic29387-3-1.aspx</link><description>Hy guys, I'm new here and I have one error...&lt;br&gt;&lt;br&gt;I wanna read from one *.ini file but not clasic read.&lt;br&gt;&lt;br&gt;Here is content of file confing.ini that I wanna read:&lt;br&gt;&lt;br&gt;[Config]&lt;br&gt;String0=some text1&lt;br&gt;String1=some text2&lt;br&gt;String2=some text3&lt;br&gt;....&lt;br&gt;&lt;br&gt;Read that I wanna get is value of String1 for example, in this case some text2.&lt;br&gt;&lt;br&gt;Is this possible and if it is how can I made that?&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;Bizz</description><pubDate>Wed, 30 Jun 2010 13:05:46 GMT</pubDate><dc:creator>bizzpu</dc:creator></item><item><title>Document Comparer !</title><link>http://www.a1vbcode.com/vbforums/Topic29369-3-1.aspx</link><description>Hi All,&lt;br&gt;&lt;br&gt;I am working on an application that compares 2 documents of the same type (i.e doc&amp;doc, PDF&amp;PDF, ....), or even compare 2 versions of the same document (after editing it).&lt;br&gt;&lt;br&gt;The main idea behind this application is to compare these 2 documents &amp; return the changes between them, and return the number of each page modified if it is possible.:confused:&lt;br&gt;&lt;br&gt;I need such application to integrate it with my Document Management System, so once we need to check 2 documents (with the same extension) or 2 versions of the same document, my workflow should call this application giving it the ID of both documents to be compared outside the DMS.&lt;br&gt;&lt;br&gt;I was searching for 2 days trying to find any resources to fit my need, but no results. &lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/Sad.gif" border="0" title="Sad"&gt; .... Any idea about that !!!!&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks in advance.</description><pubDate>Thu, 24 Jun 2010 03:56:47 GMT</pubDate><dc:creator>Amine</dc:creator></item><item><title>OCR</title><link>http://www.a1vbcode.com/vbforums/Topic29347-3-1.aspx</link><description>Can someone help with a simple OCR Snippett. I am looking to recognize a code 39 barcode in a JPG or PDF file by OCR it and then name my files by it.  If someone could show me how to reference a .dll  that will work for this or how I might go about it.  I also have omnipage installed if that helps any is there was a way to reference the OCR dll for it.  I just want to rename alot of files by OCR barcodes.  A code sample would really help.</description><pubDate>Wed, 16 Jun 2010 15:50:24 GMT</pubDate><dc:creator>Icecold</dc:creator></item><item><title>Convert PDF to Excel</title><link>http://www.a1vbcode.com/vbforums/Topic29341-3-1.aspx</link><description>&lt;SPAN class=short_text id=result_box&gt;&lt;SPAN title="" style="COLOR: #000; BACKGROUND-COLOR: #e6ecf9" qc="I need program to convert PDF to Excel through Visual Basic 6" pc="احتاج برنامج تحويل PDF الى اكسل عن طريق فيجوال بيسك6" closure_uid_r7zphy="102"&gt;&lt;FONT size=5&gt;I need program to convert PDF to Excel through Visual Basic 6&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;</description><pubDate>Sat, 12 Jun 2010 11:23:23 GMT</pubDate><dc:creator>samermahmoud</dc:creator></item><item><title>Random Number</title><link>http://www.a1vbcode.com/vbforums/Topic29336-3-1.aspx</link><description>Hello,&lt;/P&gt;&lt;P&gt;It has been a while since I have used vb6 and I find that I am having trouble trying to creat a random number statement. What I am trying to do is get the statement to do is pull the last two digits of the year follow by the two digits of the month follow by a total of three numbers exmaple YY-MM-###. And I need it to go in order. And help you can give with be thankful</description><pubDate>Thu, 10 Jun 2010 17:19:31 GMT</pubDate><dc:creator>ronetx01</dc:creator></item><item><title>please i need help</title><link>http://www.a1vbcode.com/vbforums/Topic29337-3-1.aspx</link><description>&lt;SPAN class=long_text id=result_box&gt;&lt;SPAN title="" qc="I have a main screen where 2Option new one and update the other want to press the Option writes new value of 2.00 C and when i click on the Update button Option2 screen appears with the years 2006 to 2020&amp;#13;&amp;#10;" pc="عندى شاشة رئيسية فيها 2Option واحد جديد والاخر تحديث عايز لما اضغط على Optionجديد يكتب قيمة 2.00ج وعندما اضغط على زر تحديثOption2 تظهر شاشة بها السنوات من 2006 حتى 2020" closure_uid_ogi3v6="22"&gt;I have a main screen where 2Option new one and update the other want to press the Option writes new value of 2.00 C and when i click on the Update button Option2 screen appears with the years 2006 to 2020&lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN title="" style="COLOR: #000; BACKGROUND-COLOR: #e6ecf9" qc="Is it possible chose OCT Rmen years to update with the knowledge that each year update c = 3.00 if the pressure does with more than one years worth in the pool, Text value in the main screen" pc="وهل ممكن اختار اكت رمن سنة للتحديث مع العلم ان كل سنة تحديث=3.00ج وهل لو ضغط على اكتر من سنة تجمع قيمتهم فى تكست القيمة فى الشاشة الرئيسية" closure_uid_ogi3v6="23"&gt;Is it possible chose OCT Rmen years to update with the knowledge that each year update c = 3.00 if the pressure does with more than one years worth in the pool, Text value in the main screen&lt;/SPAN&gt;&lt;/SPAN&gt;</description><pubDate>Thu, 10 Jun 2010 21:29:09 GMT</pubDate><dc:creator>samermahmoud</dc:creator></item><item><title>how to add share icons and share options to my site?</title><link>http://www.a1vbcode.com/vbforums/Topic29332-3-1.aspx</link><description>I need a code to have the ability to share my news on social networks.My site structure is in Asp.net and vb.net.&lt;br&gt;Please help .&lt;br&gt;Thank you</description><pubDate>Thu, 10 Jun 2010 10:46:41 GMT</pubDate><dc:creator>minasaeedi</dc:creator></item><item><title>Plz  Help me</title><link>http://www.a1vbcode.com/vbforums/Topic29303-3-1.aspx</link><description>hi evry one &lt;/P&gt;&lt;P&gt;i need make project  such as the Auto test for Icdl&lt;/P&gt;&lt;P&gt;and i need the put icon in menu&lt;/P&gt;&lt;P&gt;and open the word document in form vb6 &lt;/P&gt;&lt;P&gt;and i try put the ole but i can used it as well &lt;/P&gt;&lt;P&gt;and i wait the reply &lt;/P&gt;&lt;P&gt;thanx</description><pubDate>Sat, 22 May 2010 12:45:06 GMT</pubDate><dc:creator>smart sout</dc:creator></item><item><title>click on DOM tree node &amp; highlight corresponding html tag</title><link>http://www.a1vbcode.com/vbforums/Topic29319-3-1.aspx</link><description>Hey everyone,&lt;br&gt;&lt;br&gt;I have a webbrowser control &amp; a treeview control...once I load a website I create a HTML DOM tree representation of the website using the code below...&lt;br&gt;&lt;br&gt;What I want to do now, is the following:&lt;br&gt;1) mouse over any HTML element, which will then select the corresponding tree node on the HTML DOM Tree&lt;br&gt;AND the reverse...&lt;br&gt;2) select any HTML DOM tree node and have the corresponding HTML element highlight (a red border drawn around the HTML element)&lt;br&gt;&lt;br&gt;Does anyone have any pointers / suggestions - I would really appreciate it...&lt;br&gt;&lt;br&gt;[code]&lt;br&gt;Private Sub UpdateDOM(ByVal HTMLDocument As mshtml.IHTMLDocument3)&lt;br&gt;        TreeView1.Nodes.Clear()&lt;br&gt;        TreeView1.BeginUpdate()&lt;br&gt;        Dim domRoot As mshtml.IHTMLElement = HTMLDocument.documentElement&lt;br&gt;        Dim treeRoot As New TreeNode()&lt;br&gt;        treeRoot.Text = "&lt;html&gt;"&lt;br&gt;        treeRoot.Tag = domRoot&lt;br&gt;        TreeView1.Nodes.Add(treeRoot)&lt;br&gt;        CopyElementToTree(domRoot, treeRoot)&lt;br&gt;        TreeView1.EndUpdate()&lt;br&gt;        TreeView1.ExpandAll()&lt;br&gt;    End Sub&lt;br&gt;&lt;br&gt;    Private Shared Sub CopyElementToTree(ByVal element As mshtml.IHTMLElement, ByVal treeNode As TreeNode)&lt;br&gt;        Dim children As mshtml.IHTMLElementCollection = CType(element.children, mshtml.IHTMLElementCollection)&lt;br&gt;&lt;br&gt;        If children.length &lt;&gt; 0 Then&lt;br&gt;            For Each e As mshtml.IHTMLElement In children&lt;br&gt;                Dim treeChild As New TreeNode()&lt;br&gt;                treeChild.Text = getAttrs(e)&lt;br&gt;                treeChild.Tag = e&lt;br&gt;                treeNode.Nodes.Add(treeChild)&lt;br&gt;                CopyElementToTree(e, treeChild)&lt;br&gt;            Next e&lt;br&gt;        Else&lt;br&gt;            If Not String.IsNullOrEmpty(element.innerText) Then&lt;br&gt;                Dim textNode As New TreeNode()&lt;br&gt;                textNode.Text = String.Format("""{0}""", element.innerHTML)&lt;br&gt;                textNode.Tag = element&lt;br&gt;                treeNode.Nodes.Add(textNode)&lt;br&gt;            End If&lt;br&gt;        End If&lt;br&gt;    End Sub&lt;br&gt;&lt;br&gt;    Private Shared Function getAttrs(ByVal element As mshtml.IHTMLElement) As String&lt;br&gt;        Dim result As New StringBuilder("&lt;")&lt;br&gt;        result.Append(element.tagName.ToLower())&lt;br&gt;        'result.Append(element.innerHTML);&lt;br&gt;        Dim domnode As mshtml.IHTMLDOMNode = CType(element, mshtml.IHTMLDOMNode)&lt;br&gt;        Dim attrs As mshtml.IHTMLAttributeCollection = CType(domnode.attributes, mshtml.IHTMLAttributeCollection)&lt;br&gt;        If attrs IsNot Nothing Then&lt;br&gt;            For Each attr As mshtml.IHTMLDOMAttribute In attrs&lt;br&gt;                If Not attr.specified Then&lt;br&gt;                    Continue For&lt;br&gt;                End If&lt;br&gt;                result.Append(" ")&lt;br&gt;                Dim nodeValue As String = String.Empty&lt;br&gt;                If attr.nodeValue IsNot Nothing Then&lt;br&gt;                    nodeValue = attr.nodeValue.ToString()&lt;br&gt;                End If&lt;br&gt;                result.Append(String.Format("{0}=""{1}""", attr.nodeName, nodeValue))&lt;br&gt;            Next attr&lt;br&gt;        End If&lt;br&gt;        result.Append("&gt;")&lt;br&gt;        Return result.ToString()&lt;br&gt;    End Function&lt;br&gt;[/code]&lt;br&gt;</description><pubDate>Wed, 26 May 2010 06:55:29 GMT</pubDate><dc:creator>ljcharles</dc:creator></item><item><title>Request Hep with Programme Logic (Date Manipulation) - Visual Basic</title><link>http://www.a1vbcode.com/vbforums/Topic29313-3-1.aspx</link><description>&lt;P style="MARGIN: 4.8pt 0in 6pt; LINE-HEIGHT: 18pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"&gt;CAN YOU HELP ME WITH THIS.. I NEED THE CODE IN VISUAL BASIC WITH ACCESS DATABASE. I DONT HAVE MUCH PROGRAMMING EXPERIENCE.. SO WOULD BE GRATEFUL FOR YOUR TIME&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 style="MARGIN: 4.8pt 0in 6pt; LINE-HEIGHT: 18pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"&gt;I have a database with the following structure &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="MARGIN: 4.8pt 0in 6pt; LINE-HEIGHT: 18pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"&gt;IDNO - Text(7), &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="MARGIN: 4.8pt 0in 6pt; LINE-HEIGHT: 18pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"&gt;From Date - Date, &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="MARGIN: 4.8pt 0in 6pt; LINE-HEIGHT: 18pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"&gt;To Date - Date, &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="MARGIN: 4.8pt 0in 6pt; LINE-HEIGHT: 18pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"&gt;Year - Number, &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="MARGIN: 4.8pt 0in 6pt; LINE-HEIGHT: 18pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"&gt;Full_Part - Logical.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="MARGIN: 4.8pt 0in 6pt; LINE-HEIGHT: 18pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"&gt;what i want the program to give me the result is that i need to take out the missing date ranges (date gaps for each financial year for each ID Number).  The table can contain more than one record for each ID Number.. the table can also contain upto four records if if it in Parts (‘P)).  For each IDNO for each particular year. ie.. i need to take out the year wise gaps for records. also, if the entire year is missing then the gap will be the entire year with the full_part field in the result showing F. so say.. &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="MARGIN: 4.8pt 0in 6pt; LINE-HEIGHT: 18pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"&gt;A sample database is appended below :-&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="MARGIN: 4.8pt 0in 6pt; LINE-HEIGHT: 18pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"&gt;&lt;STRONG&gt;IDNO           From Date         To Date             Year     FULL_PART&lt;/STRONG&gt;&lt;BR&gt;&lt;BR&gt;A247108      01-Apr-99          31-Mar-00          1999     F&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="MARGIN: 4.8pt 0in 6pt; LINE-HEIGHT: 18pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"&gt;A247108      01-Apr-00          31-Mar-01          2000     F&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="MARGIN: 4.8pt 0in 6pt; LINE-HEIGHT: 18pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"&gt;A247108      01-Apr-01          31-Mar-02          2001     F&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="MARGIN: 4.8pt 0in 6pt; LINE-HEIGHT: 18pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"&gt;A247108      01-Oct-02          31-Mar-03          2002     F&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="MARGIN: 4.8pt 0in 6pt; LINE-HEIGHT: 18pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"&gt;A247108      01-Apr-03          31-Mar-04          2003     F&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="MARGIN: 4.8pt 0in 6pt; LINE-HEIGHT: 18pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"&gt;A247111      01-Apr-00          31-Mar-01          2000     F&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="MARGIN: 4.8pt 0in 6pt; LINE-HEIGHT: 18pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"&gt;A247111      01-Apr-01          31-Mar-02          2001     F&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="MARGIN: 4.8pt 0in 6pt; LINE-HEIGHT: 18pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"&gt;A247111      01-Apr-02          31-Mar-03          2002     F&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="MARGIN: 4.8pt 0in 6pt; LINE-HEIGHT: 18pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"&gt;A247111      01-Apr-03          31-Mar-04          2003     F&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="MARGIN: 4.8pt 0in 6pt; LINE-HEIGHT: 18pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"&gt;A247111      01-Apr-99          30-Jun-99          1999     P&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="MARGIN: 4.8pt 0in 6pt; LINE-HEIGHT: 18pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"&gt;A247111      01-Oct-99          31-Dec-99         1999     P&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="MARGIN: 4.8pt 0in 6pt; LINE-HEIGHT: 18pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"&gt;A247124      01-Apr-99          31-Mar-00          1999     F&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="MARGIN: 4.8pt 0in 6pt; LINE-HEIGHT: 18pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"&gt;A247124      01-Apr-00          31-Mar-01          2000     F&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="MARGIN: 4.8pt 0in 6pt; LINE-HEIGHT: 18pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"&gt;A247124      01-Apr-01          31-Mar-02          2001     F&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="MARGIN: 4.8pt 0in 6pt; LINE-HEIGHT: 18pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"&gt;A247124      01-Apr-02          31-Mar-03          2002     F&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="MARGIN: 4.8pt 0in 6pt; LINE-HEIGHT: 18pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="MARGIN: 4.8pt 0in 6pt; LINE-HEIGHT: 18pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"&gt;in this example.. i need the program to &lt;B&gt;&lt;U&gt;return the result as &lt;/U&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="MARGIN: 4.8pt 0in 6pt; LINE-HEIGHT: 18pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"&gt;&lt;STRONG&gt;IDNO           From Date         To Date             Year     FULL_PART&lt;o:p&gt;&lt;/o:p&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="MARGIN: 4.8pt 0in 6pt; LINE-HEIGHT: 18pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"&gt;A247108      01-Apr-02          30-Sep-02         2002     P&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="MARGIN: 4.8pt 0in 6pt; LINE-HEIGHT: 18pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"&gt;A247111      01-Jul-99           30-Sep-99         1999     P&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="MARGIN: 4.8pt 0in 6pt; LINE-HEIGHT: 18pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"&gt;A247111      01-Jan-00          31-Mar-00          1999     P (year is 1999 because it falls in the 1999-2000 financial year)&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: black; FONT-FAMILY: Verdana"&gt;&lt;o:p&gt; (ie only three gaps exist.. for IDNO A247108, the gap is for 01-Apr-02 to 30-Sep-02 for the year 2002 and &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: black; FONT-FAMILY: Verdana"&gt;&lt;o:p&gt;for the IDNO A247111 there are two gaps in the same year - ie 1999.  &lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN id=_AthCaret&gt;&lt;/SPAN&gt;</description><pubDate>Tue, 25 May 2010 09:32:24 GMT</pubDate><dc:creator>Prasanth Moothedath</dc:creator></item><item><title>Web site block</title><link>http://www.a1vbcode.com/vbforums/Topic29242-3-1.aspx</link><description>any one know how to block any website from iexlore and firefox????&lt;/P&gt;&lt;P&gt;how to do it &lt;/P&gt;&lt;P&gt;what will i need to do</description><pubDate>Tue, 04 May 2010 12:41:09 GMT</pubDate><dc:creator>Laurence™</dc:creator></item><item><title>Please help me : “Run-time error ‘9′: Subscript out of range !” in VB6 code &lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/Sad.gif" border="0" title="Sad"&gt;</title><link>http://www.a1vbcode.com/vbforums/Topic29199-3-1.aspx</link><description>Private Sub KillVirusProcess()&lt;br&gt;    &lt;br&gt;        Dim cb As Long&lt;br&gt;        Dim cbNeeded As Long&lt;br&gt;        Dim NumElements As Long&lt;br&gt;        Dim ProcessIDs() As Long&lt;br&gt;        Dim cbNeeded2 As Long&lt;br&gt;        Dim NumElements2 As Long&lt;br&gt;        Dim Modules(1 To 200) As Long&lt;br&gt;        Dim lRet As Long&lt;br&gt;        Dim ModuleName As String&lt;br&gt;        Dim CurEXEName As String&lt;br&gt;        Dim nSize As Long&lt;br&gt;        Dim hProcess As Long&lt;br&gt;        &lt;br&gt;        Dim MeFullPath As String&lt;br&gt;        &lt;br&gt;        Dim dStrNoKillMemory As clsString&lt;br&gt;        Dim dStrNoKill As clsString&lt;br&gt;        Dim dStrKill As clsString&lt;br&gt;        Dim dStrSub As clsString&lt;br&gt;        Dim i As Long&lt;br&gt;        Dim j As Long&lt;br&gt;        Dim k As Long&lt;br&gt;        &lt;br&gt;        Set dStrNoKillMemory = New clsString&lt;br&gt;        dStrNoKillMemory.Delimiter = "|"&lt;br&gt;        dStrNoKillMemory.Text = NoKillMemory&lt;br&gt;        &lt;br&gt;        Set dStrNoKill = New clsString&lt;br&gt;        dStrNoKill.Delimiter = "\"&lt;br&gt;        &lt;br&gt;        Set dStrKill = New clsString&lt;br&gt;        dStrKill.Delimiter = "|"&lt;br&gt;        dStrKill.Text = VirusInfo&lt;br&gt;        &lt;br&gt;        Set dStrSub = New clsString&lt;br&gt;        dStrSub.Delimiter = ","&lt;br&gt;        &lt;br&gt;        cb = 8&lt;br&gt;        cbNeeded = 96&lt;br&gt;        Do While cb &lt;= cbNeeded&lt;br&gt;            cb = cb * 2&lt;br&gt;            ReDim Preserve ProcessIDs(cb / 4)&lt;br&gt;            lRet = EnumProcesses(ProcessIDs(1), cb, cbNeeded)&lt;br&gt;        Loop&lt;br&gt;        NumElements = cbNeeded / 4&lt;br&gt;        &lt;br&gt;        For i = 1 To NumElements&lt;br&gt;            hProcess = OpenProcess(PROCESS_ALL_ACCESS, False, ProcessIDs(i))&lt;br&gt;            If hProcess &lt;&gt; 0 Then&lt;br&gt;                lRet = EnumProcessModules(hProcess, Modules(1), 200, cbNeeded2)&lt;br&gt;                If lRet &lt;&gt; 0 Then&lt;br&gt;                   ModuleName = Space(MAX_PATH)&lt;br&gt;                   nSize = 500&lt;br&gt;&lt;br&gt;                   j = 0&lt;br&gt;&lt;br&gt;                   Do While (j &lt;= cbNeeded2 / 4)&lt;br&gt;                      MsgBox cbNeeded2 / 4&lt;br&gt;                      j = (j + 1)&lt;br&gt;                       lRet = GetModuleFileNameExA(hProcess, Modules(j), _&lt;br&gt;                                    ModuleName, nSize)&lt;br&gt;                       If Modules(j) &gt; 0 Then&lt;br&gt;                         If (j = 1) Then&lt;br&gt;                             dStrNoKill.Text = TrimComplete(ModuleName)&lt;br&gt;                             CurEXEName = TrimComplete(dStrNoKill.GetLastToken)&lt;br&gt;                             &lt;br&gt;                             MeFullPath = App.Path &amp; IIf(Right(App.Path, 1) &lt;&gt; "\", "\" &amp; App.EXEName &amp; ".exe", App.EXEName &amp; ".exe")&lt;br&gt;                             If (InStr(1, ModuleName, MeFullPath, vbTextCompare) &gt; 0) Then&lt;br&gt;                                 Exit Do&lt;br&gt;                             End If&lt;br&gt;                             &lt;br&gt;                             MeFullPath = App.Path &amp; IIf(Right(App.Path, 1) &lt;&gt; "\", "SKmain.exe", "SKmain.exe")&lt;br&gt;                             If (InStr(1, ModuleName, MeFullPath, vbTextCompare) &gt; 0) Then&lt;br&gt;                                 Exit Do&lt;br&gt;                             End If&lt;br&gt;                            &lt;br&gt;                             If (InStr(1, NoKillEXEString, "|" &amp; TrimComplete(ModuleName) &amp; "|", vbTextCompare) &gt; 0) Then&lt;br&gt;                                 Exit Do&lt;br&gt;                             End If&lt;br&gt;                            &lt;br&gt;                            For k = 1 To dStrNoKillMemory.TokenCount&lt;br&gt;                                dStrSub.Text = dStrNoKillMemory.TokenAt(k)&lt;br&gt;                                Dim tNoKillBool As Boolean&lt;br&gt;                                tNoKillBool = CBool(ReadMemory(hProcess, dStrSub.TokenAt(1), Len(dStrSub.TokenAt(2))) = dStrSub.TokenAt(2))&lt;br&gt;                                If tNoKillBool Then&lt;br&gt;                                    Exit Do&lt;br&gt;                                End If&lt;br&gt;                            Next k&lt;br&gt;                         End If&lt;br&gt;                         &lt;br&gt;                         For k = 1 To dStrKill.TokenCount&lt;br&gt;                           dStrSub.Text = dStrKill.TokenAt(k)&lt;br&gt;                           If (CLng(dStrSub.TokenAt(1)) = VIRUS_MODULE) Then&lt;br&gt;                               If (InStr(1, ModuleName, TrimComplete(dStrSub.TokenAt(2)), vbTextCompare) &gt; 0) Then&lt;br&gt;                                   If Not (ProcessTerminate(ProcessIDs(i))) Then&lt;br&gt;                                       EndProcess CurEXEName&lt;br&gt;                                   End If&lt;br&gt;                                   Exit Do&lt;br&gt;                               End If&lt;br&gt;                           ElseIf ((dStrSub.TokenAt(1) = VIRUS_MEMORY) And (j = 1)) Then&lt;br&gt;                                Dim tKillBool As Boolean&lt;br&gt;                                tKillBool = CBool(ReadMemory(hProcess, dStrSub.TokenAt(2), Len(dStrSub.TokenAt(3))) = dStrSub.TokenAt(3))&lt;br&gt;                                If tKillBool Then&lt;br&gt;                                    If Not (ProcessTerminate(ProcessIDs(i))) Then&lt;br&gt;                                        EndProcess CurEXEName&lt;br&gt;                                    End If&lt;br&gt;                                    Exit Do&lt;br&gt;                                End If&lt;br&gt;                           End If&lt;br&gt;                         Next k&lt;br&gt;                      End If&lt;br&gt;                   Loop&lt;br&gt;                End If&lt;br&gt;            End If&lt;br&gt;            lRet = CloseHandle(hProcess)&lt;br&gt;        Next&lt;br&gt;    Exit Sub&lt;br&gt;    Isexit&lt;br&gt;    &lt;br&gt;End Sub&lt;br&gt;&lt;br&gt;This code Work Fine on Win Xp and Vista but i dont know why i got Error “Run-time error ‘9′: Subscript out of range !” in Win 7 &lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/Sad.gif" border="0" title="Sad"&gt; . Please Fix it for thax so much</description><pubDate>Sat, 24 Apr 2010 00:18:13 GMT</pubDate><dc:creator>sunboy</dc:creator></item><item><title>Write and read text with a carriage-return/line-feed (vbNewLine)</title><link>http://www.a1vbcode.com/vbforums/Topic29097-3-1.aspx</link><description>&lt;FONT color=#117711&gt;' My program opens a "PlayList.ppl" file for a theatre production.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#117711&gt;' Rather than using a database record, I chose to attach a data-string onto the full path&lt;BR&gt;' to a sound file (For example: C:\Production\Overture.mp3=100#47#Stage#0#Test-Note#C#0#2)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#117711&gt;'  The "=" divides the sound-file path from the data-string.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#117711&gt;' This is how I open the file to read each line. ("OneLine" is a string.&lt;BR&gt;' (The other strings are all Declared.)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#1f5080&gt;    ChDir PlayListPath&lt;/FONT&gt;&lt;BR&gt;    Open PlayListFile For Input As #1&lt;BR&gt;        While Not EOF(1)&lt;BR&gt;            Line Input #1, OneLine&lt;BR&gt;                SplitFileStr (OneLine)&lt;BR&gt;                List1.AddItem FileString&lt;BR&gt;                List2.AddItem FileVolume&lt;BR&gt;                List3.AddItem PageNum&lt;BR&gt;                List4.AddItem Speakers&lt;BR&gt;                List5.AddItem TaskStr&lt;BR&gt;                List6.AddItem NoteStr&lt;BR&gt;                List7.AddItem CurtainCmd&lt;BR&gt;                List8.AddItem CurtainDelay&lt;BR&gt;                List9.AddItem MixerScheme&lt;BR&gt;        Wend&lt;BR&gt;    Close #1&lt;/P&gt;&lt;P&gt;&lt;FONT color=#117711&gt;'   THE PROBLEM OCCURS WHEN THERE IS A CARRIAGE-RETURN/LINE-FEED IN THE TEXT NOTE ("NoteStr")&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR&gt;Public Sub SplitFileStr(WorkingStr As String)&lt;BR&gt;    On Error GoTo ErrMsg&lt;/P&gt;&lt;P&gt;    Pos = InStr(WorkingStr, "=")           &lt;FONT color=#33bb33&gt; &lt;/FONT&gt;&lt;FONT color=#117711&gt;' Split "OneLine" to get the "Data-String"&lt;BR&gt;&lt;/FONT&gt;    FileString = Left(WorkingStr, Pos - 1)&lt;BR&gt;    WorkingStr = Right(WorkingStr, Len(WorkingStr) - Pos)&lt;BR&gt;                                            &lt;FONT color=#117711&gt;' Use a "#" to get each value&lt;/FONT&gt;&lt;BR&gt;    Pos = InStr(WorkingStr, "#")&lt;BR&gt;    FileVolume = Left(WorkingStr, Pos - 1)&lt;BR&gt;    WorkingStr = Right(WorkingStr, Len(WorkingStr) - Pos)&lt;/P&gt;&lt;P&gt;    Pos = InStr(WorkingStr, "#")&lt;BR&gt;    PageNum = Left(WorkingStr, Pos - 1)&lt;BR&gt;    WorkingStr = Right(WorkingStr, Len(WorkingStr) - Pos)&lt;/P&gt;&lt;P&gt;    Pos = InStr(WorkingStr, "#")&lt;BR&gt;    Speakers = Left(WorkingStr, Pos - 1)&lt;BR&gt;    WorkingStr = Right(WorkingStr, Len(WorkingStr) - Pos)&lt;/P&gt;&lt;P&gt;    Pos = InStr(WorkingStr, "#")&lt;BR&gt;    TaskStr = Left(WorkingStr, Pos - 1)&lt;BR&gt;    WorkingStr = Right(WorkingStr, Len(WorkingStr) - Pos)&lt;/P&gt;&lt;P&gt;    Pos = InStr(WorkingStr, "#")&lt;BR&gt;    NoteStr = Left(WorkingStr, Pos - 1)     &lt;FONT color=#117711&gt;' THIS IS WHERE I MIGHT WANT A "vbNewLine"&lt;BR&gt;&lt;/FONT&gt;    WorkingStr = Right(WorkingStr, Len(WorkingStr) - Pos)&lt;/P&gt;&lt;P&gt;    Pos = InStr(WorkingStr, "#")&lt;BR&gt;    CurtainCmd = Left(WorkingStr, Pos - 1)&lt;BR&gt;    WorkingStr = Right(WorkingStr, Len(WorkingStr) - Pos)&lt;/P&gt;&lt;P&gt;    Pos = InStr(WorkingStr, "#")&lt;BR&gt;    CurtainDelay = Left(WorkingStr, Pos - 1)&lt;BR&gt;    MixerScheme = Right(WorkingStr, Len(WorkingStr) - Pos)&lt;/P&gt;&lt;P&gt;    Exit Sub&lt;BR&gt;ErrMsg:&lt;BR&gt;    Resume Next&lt;BR&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;FONT color=#117711&gt;This might all be confusing to you, but I hope I can get a suggestion. Perhaps reading one Chr at a time and coding the insert of a vbNewLine?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#117711&gt;Thanks all,   Pete.&lt;/FONT&gt;</description><pubDate>Sat, 03 Apr 2010 02:38:16 GMT</pubDate><dc:creator>PeteP</dc:creator></item><item><title>How to view word in vb6 form</title><link>http://www.a1vbcode.com/vbforums/Topic29268-3-1.aspx</link><description>hi every one &lt;/P&gt;&lt;P&gt;plz help me &lt;/P&gt;&lt;P&gt;i need view the word in the vb 6 &lt;/P&gt;&lt;P&gt;i need used it in autotest for icdl as the exam training&lt;/P&gt;&lt;P&gt;plz every one know how to do it ???&lt;/P&gt;&lt;P&gt;plz tell me &lt;/P&gt;&lt;P&gt;and thank every one &lt;/P&gt;&lt;P&gt;&lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/Smile.gif" border="0" title="Smile"&gt;</description><pubDate>Sat, 08 May 2010 09:51:22 GMT</pubDate><dc:creator>smart sout</dc:creator></item><item><title>Addressing a USB port</title><link>http://www.a1vbcode.com/vbforums/Topic29226-3-1.aspx</link><description>&lt;P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;FONT color=#000000 size=3 face="Times New Roman"&gt;My program needs to “look” directly at a USB switching device.&lt;/FONT&gt;&lt;/P&gt;&lt;P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;FONT size=3&gt;&lt;FONT color=#000000&gt;&lt;FONT face="Times New Roman"&gt; &lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;FONT color=#000000 size=3 face="Times New Roman"&gt;My understanding is that the USB unit is supposed to recognize which port it is plugged into, but it seems to be a “lucky-dip” at present.&lt;/FONT&gt;&lt;/P&gt;&lt;P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;FONT size=3&gt;&lt;FONT color=#000000&gt;&lt;FONT face="Times New Roman"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;FONT color=#000000 size=3 face="Times New Roman"&gt;Hence my wish to “hard-code” it to a dedicated USB port (or is there another way?)&lt;/FONT&gt;&lt;/P&gt;&lt;P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;FONT size=3&gt;&lt;FONT color=#000000&gt;&lt;FONT face="Times New Roman"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;FONT size=3&gt;&lt;FONT color=#000000&gt;&lt;FONT face="Times New Roman"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;FONT color=#000000 size=3 face="Times New Roman"&gt;myInt is an integer&lt;/FONT&gt;&lt;/P&gt;&lt;P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;FONT color=#000000 size=3 face="Times New Roman"&gt;myBool is a Boolean&lt;/FONT&gt;&lt;/P&gt;&lt;P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;FONT size=3&gt;&lt;FONT color=#000000&gt;&lt;FONT face="Times New Roman"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;FONT color=#000000 size=3 face="Times New Roman"&gt;(The whole process is via the unit’s DLL driver)&lt;/FONT&gt;&lt;/P&gt;&lt;P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;FONT size=3&gt;&lt;FONT color=#000000&gt;&lt;FONT face="Times New Roman"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;FONT color=#000000 size=3 face="Times New Roman"&gt;My calling code (supplied by the unit manufacturer) is ---&lt;/FONT&gt;&lt;/P&gt;&lt;P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;FONT size=3&gt;&lt;FONT color=#000000&gt;&lt;FONT face="Times New Roman"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;FONT color=#000000 size=3 face="Times New Roman"&gt;myInt = myUSB.FindFirst()&lt;/FONT&gt;&lt;/P&gt;&lt;P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;FONT size=3&gt;&lt;FONT color=#000000&gt;&lt;FONT face="Times New Roman"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;    &lt;/SPAN&gt;If myInt &amp;lt;&amp;gt; 0 Then myBool = myUSB.SetAddr(myInt - 1, 0)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;FONT size=3&gt;&lt;FONT color=#000000&gt;&lt;FONT face="Times New Roman"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;FONT color=#000000 size=3 face="Times New Roman"&gt;Everything works fine once I hunt about finding a port it recognizes. The operational port keeps changing each time the computer is switched on.&lt;/FONT&gt;&lt;/P&gt;&lt;P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;FONT size=3&gt;&lt;FONT color=#000000&gt;&lt;FONT face="Times New Roman"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;FONT color=#000000 size=3 face="Times New Roman"&gt;How can I point my program to a dedicated USB socket?  &lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/Smile.gif" border="0" title="Smile"&gt;&lt;/FONT&gt;</description><pubDate>Thu, 29 Apr 2010 00:03:59 GMT</pubDate><dc:creator>PeteP</dc:creator></item><item><title>Adding lines to the end of the text file</title><link>http://www.a1vbcode.com/vbforums/Topic29216-3-1.aspx</link><description>I looked at the expired forums that talked about how to edit save and print out a file and I thought it was very useful. I was hoping that you can clear up some topics. Here is the code I pulled out from earlier forums:&lt;br&gt;&lt;br&gt;[code]&lt;br&gt;&lt;br&gt;Option Explicit&lt;br&gt;&lt;br&gt;Dim FileNum As Integer&lt;br&gt;Dim NextLine As String&lt;br&gt;Dim LineCount As Long&lt;br&gt;&lt;br&gt;FileNum = FreeFile()&lt;br&gt;Open App.Path &amp; "c:\host2.txt" For Input As #23&lt;br&gt;LineCount = 1&lt;br&gt;Do While Not EOF(FileNum)&lt;br&gt;    Line Input #FileNum, NextLine&lt;br&gt;     If LineCount = 23 Then&lt;br&gt;            Line Input #23, NextLine&lt;br&gt;            Text1.Text = Text1.Text &amp; "Your new line of text" &amp; vbCrLf&lt;br&gt;     Else&lt;br&gt;            Line Input #23, NextLine&lt;br&gt;            Text1.Text = Text1.Text &amp; NextLine &amp; vbCrLf&lt;br&gt;      End If&lt;br&gt;      LineCount = LineCount + 1&lt;br&gt;Loop&lt;br&gt;Close #FileNum&lt;br&gt;&lt;br&gt;Private Sub cmdSave_Click()&lt;br&gt;&lt;br&gt;Dim FileNum As Integer&lt;br&gt;&lt;br&gt;FileNum = FreeFile()&lt;br&gt;Open App.Path &amp; "\host2.txt" For Output As #FileNum&lt;br&gt;Print #FileNum, host2.txt	&lt;br&gt;Close #FileNum&lt;br&gt;&lt;br&gt;End Sub&lt;br&gt;&lt;br&gt;[/code]&lt;br&gt;&lt;br&gt;as you can see I changed a few things but it is a little off. I am confused with the &lt;b&gt;#FileNum&lt;/b&gt; and I'm getting a error: &lt;b&gt; expected end of statement &lt;/b&gt;&lt;br&gt;&lt;br&gt;Any thoughts anyone&lt;br&gt;&lt;br&gt;Thank you</description><pubDate>Tue, 27 Apr 2010 15:41:22 GMT</pubDate><dc:creator>shadowcat2021</dc:creator></item><item><title>Open and move around an excel from VB 2008</title><link>http://www.a1vbcode.com/vbforums/Topic29173-3-1.aspx</link><description>I'm trying to open an excel file and then move around a little bit in the excel from VB 2008 and I having some problems.&lt;/P&gt;&lt;P&gt;I'm trying next:&lt;/P&gt;&lt;P&gt;dim objExcel as excel.application&lt;/P&gt;&lt;P&gt;objExce = new excel.application&lt;/P&gt;&lt;P&gt;objExcel.visible=true&lt;/P&gt;&lt;P&gt;'I get a error while trying next&lt;/P&gt;&lt;P&gt;objExcel.sheetsInNewBook = 1  'To indicate how many sheets in the book&lt;/P&gt;&lt;P&gt;'I get a error while trying next&lt;/P&gt;&lt;P&gt;objExcel.Workbooks.add()&lt;/P&gt;&lt;P&gt;I would like how can I move from a book to other and from a Sheet to other. I tried next and it didn't work:&lt;/P&gt;&lt;P&gt;windows("Book.xls").activate()&lt;/P&gt;&lt;P&gt;sheets("Sheet1").select()&lt;/P&gt;&lt;P&gt;My last question is: How can I open directly a templete book that already exist to work with it?&lt;/P&gt;&lt;P&gt;Thank you very much for all your help</description><pubDate>Tue, 20 Apr 2010 10:21:58 GMT</pubDate><dc:creator>samuvk</dc:creator></item><item><title>need help in forming loop..</title><link>http://www.a1vbcode.com/vbforums/Topic29168-3-1.aspx</link><description>Hello once again...&lt;br&gt; &lt;br&gt;i have an macros program where string &lt;b&gt;"strComp.Name2"&lt;/b&gt; is printing strings like...&lt;br&gt;"casting-1"&lt;br&gt;"Nut-1"&lt;br&gt;&lt;br&gt;"casting-1"&lt;br&gt;"Nut-1"&lt;br&gt;&lt;br&gt;"Nut-1"&lt;br&gt;"screw-1"&lt;br&gt;&lt;br&gt;"Nut-1"&lt;br&gt;"screw-1"&lt;br&gt;&lt;br&gt;"screw-1"&lt;br&gt;"CUP-1"&lt;br&gt;&lt;br&gt;"screw-1"&lt;br&gt;"CUP-1"&lt;br&gt;&lt;br&gt;"CUP-1"&lt;br&gt;"WASHER-1"&lt;br&gt;&lt;br&gt;"screw-1"&lt;br&gt;"WASHER-1"&lt;br&gt;&lt;br&gt;"WASHER-1"&lt;br&gt;"setscrew-1"&lt;br&gt;&lt;br&gt;"screw-1"&lt;br&gt;"tommybar-1"&lt;br&gt;&lt;br&gt;"screw-1"&lt;br&gt;"tommybar-1"&lt;br&gt;&lt;br&gt;here each pair represents relation with each other. so if they occurs more than one they will b considered as one like..&lt;br&gt;&lt;br&gt;"casting-1"&lt;br&gt;"Nut-1"&lt;br&gt;&lt;br&gt;"Nut-1"&lt;br&gt;"screw-1"&lt;br&gt;&lt;br&gt;"screw-1"&lt;br&gt;"CUP-1"&lt;br&gt;&lt;br&gt;"CUP-1"&lt;br&gt;"WASHER-1"&lt;br&gt;&lt;br&gt;"screw-1"&lt;br&gt;"WASHER-1"&lt;br&gt;&lt;br&gt;"WASHER-1"&lt;br&gt;"setscrew-1"&lt;br&gt;&lt;br&gt;"screw-1"&lt;br&gt;"tommybar-1"&lt;br&gt;&lt;br&gt;&lt;br&gt;Now i need to form a loop so that i can print &lt;br&gt;&lt;br&gt;casting-1 = 1&lt;br&gt;nut-1 =1&lt;br&gt;screw-1 =4&lt;br&gt;cup-1 = 2&lt;br&gt;washer-1 = 3&lt;br&gt;setscrew-1 = 1&lt;br&gt;tommybar-1 = 1&lt;br&gt;&lt;br&gt;  can any one give me some hints regarding this...&lt;br&gt;&lt;br&gt;sample code is appreciable because i am from basically Mechanical side..&lt;br&gt;&lt;br&gt;&lt;br&gt;thanks in adv... &lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</description><pubDate>Sat, 17 Apr 2010 02:55:31 GMT</pubDate><dc:creator>badwl24</dc:creator></item><item><title>reading a text file and find the maximum value of a string...</title><link>http://www.a1vbcode.com/vbforums/Topic29143-3-1.aspx</link><description>Hello everybody,&lt;br&gt;  &lt;br&gt;&lt;br&gt;    i have a text file which look like this......&lt;br&gt;"------------------------------------------------"&lt;br&gt; MASS-PROPERTY"&lt;br&gt;"------------------------------------------------"&lt;br&gt;"Part Name : screw-1"&lt;br&gt;""&lt;br&gt;"&lt;br&gt;          Thickness = .20"&lt;br&gt;"&lt;br&gt;          Size = 21"&lt;br&gt;"&lt;br&gt;          Mass = 2535.65398101001"&lt;br&gt;"&lt;br&gt;          Volume = 325083.843719233"&lt;br&gt;"&lt;br&gt;          Density = 0.0078"&lt;br&gt;"&lt;br&gt;          Surface Area = 37097.6602694409"&lt;br&gt;"&lt;br&gt;          Center of Mass : "&lt;br&gt;"&lt;br&gt;                           X = -6.91050791665524E-06"&lt;br&gt;"&lt;br&gt;                           Y = 134.941447450814"&lt;br&gt;"&lt;br&gt;                           Z = -6.59803695112839E-06"&lt;br&gt;"------------------------------------------------"&lt;br&gt;"Part Name : Nut-1"&lt;br&gt;""&lt;br&gt;"&lt;br&gt;          Thickness = 21"&lt;br&gt;"&lt;br&gt;          Size = 32"&lt;br&gt;"&lt;br&gt;          Mass = 457.955780496337"&lt;br&gt;"&lt;br&gt;          Volume = 58712.2795508125"&lt;br&gt;"&lt;br&gt;          Density = 0.0078"&lt;br&gt;"&lt;br&gt;          Surface Area = 18086.5657361828"&lt;br&gt;"&lt;br&gt;          Center of Mass : "&lt;br&gt;"&lt;br&gt;                           X = 7.57409354074984E-16"&lt;br&gt;"&lt;br&gt;                           Y = 18.1650756175473"&lt;br&gt;"&lt;br&gt;                           Z = 8.16080627967202E-16"&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;b&gt;in this first i have to read the "Part Name" (in this case screw-1 and nut-1) and  read the value of Volume and find out max of these two.. and print part "screw-1" has maximum volume. &lt;/b&gt; Any help in this regard will be appreciable...&lt;br&gt;&lt;br&gt;thanks in adv.</description><pubDate>Mon, 12 Apr 2010 05:58:38 GMT</pubDate><dc:creator>badwl24</dc:creator></item><item><title>special character should be accepted</title><link>http://www.a1vbcode.com/vbforums/Topic29123-3-1.aspx</link><description>hi to all, yesterday i have a dry-run for my project in vb6 programming and i found out when my records have a special character.. the program will error, says that missing operation. it because of the ' so i conclude because of the special character. so, what should i do that my searching will ignore all special character when the record have it.&lt;br&gt;&lt;br&gt;best regards&lt;br&gt;manilyn&lt;br&gt;thankz guys..</description><pubDate>Thu, 08 Apr 2010 10:09:36 GMT</pubDate><dc:creator>manilyn</dc:creator></item><item><title>Client / Server (Send Messages to Other Client Through Server?)</title><link>http://www.a1vbcode.com/vbforums/Topic29129-3-1.aspx</link><description>Using System.Net.Sockets&lt;br&gt;&lt;br&gt;I have successfully implemented a console server and multiple client setup, however&lt;br&gt;&lt;br&gt;I have noticed that the server only communicates with the client that sends the stream to it. &lt;br&gt;&lt;br&gt;I am trying to find a way to send a data stream from Client A to the Server and redirect the information to Client B in a p2s setup.&lt;br&gt;&lt;br&gt;Thanks!&lt;br&gt;&lt;br&gt;(Edit: I was trying to post this in the VB.NET section, however it told me permissions were denied...)&lt;br&gt;&lt;br&gt;</description><pubDate>Fri, 09 Apr 2010 16:27:48 GMT</pubDate><dc:creator>IasamSensei</dc:creator></item><item><title>Accounting Program Source Codes</title><link>http://www.a1vbcode.com/vbforums/Topic29124-3-1.aspx</link><description>Dear Sir,&lt;/P&gt;&lt;P&gt;I am looking for a working Accounting program source codes so that I can learn from it.&lt;/P&gt;&lt;P&gt;I am an accountant by profession. I entered into Visual basic programming so that I could write Accounting software.&lt;/P&gt;&lt;P&gt;I have actually dowloaded a few Accounting Programs from this Forum. Unfortunately, none is working. I am sorry, and I regret to say that most Vb programmers don't take the pain to comment their codes well. Some declare variables with meaningless names. I spend wasted effort trying to figure out what their variables mean. Some even remove the Option Explicit from the code editor so that vb will not force them to declare their variables. &lt;/P&gt;&lt;P&gt;Due to all these problems I have not been able to lay my hands on any working Acounting Program from this Forum.&lt;/P&gt;&lt;P&gt;Please, please, I need help. Kindly send me a working Accounting Program so that &lt;/P&gt;&lt;P&gt;I can study it and write mine based on our tax system.&lt;/P&gt;&lt;P&gt;Thank you. I wait eagerly for your help.&lt;/P&gt;&lt;P&gt;Akinyemi</description><pubDate>Thu, 08 Apr 2010 17:32:43 GMT</pubDate><dc:creator>Akinyemi</dc:creator></item><item><title>dbEngine item not found in this collection</title><link>http://www.a1vbcode.com/vbforums/Topic29104-3-1.aspx</link><description>why my dbengine not find ?? i am using vb6. &lt;br&gt;&lt;br&gt;&lt;br&gt;Private Sub Command1_Click()&lt;br&gt;Dim mydb As Database&lt;br&gt;Dim mytab As Recordset&lt;br&gt;Dim str As String&lt;br&gt;&lt;br&gt;Set mydb = DBEngine.Workspaces(0).Databases(0)&lt;br&gt;Set mytab = mydb.OpenRecordset("pasuser", dbOpenDynaset)&lt;br&gt;&lt;br&gt;&lt;br&gt;str = " delete "&lt;br&gt;str = str &amp; "FROM [pasuser]"&lt;br&gt;str = str &amp; "WHERE [pasuser].username = '" &amp; (Text1.Text) &amp; "'"&lt;br&gt;&lt;br&gt;mydb.Execute str&lt;br&gt;End Sub&lt;br&gt;&lt;br&gt;is thier something wrong on my declaration??&lt;br&gt;plz help me&lt;br&gt;&lt;br&gt;</description><pubDate>Sun, 04 Apr 2010 07:22:51 GMT</pubDate><dc:creator>manilyn</dc:creator></item><item><title>adjust the paper size using Printer.PaperSize = vbPRPSA5</title><link>http://www.a1vbcode.com/vbforums/Topic29103-3-1.aspx</link><description>hi to all specially to the moderator of this site on my project im on the level of printing witch can   print the info base on the text-box with the paper of 3x4 inches&lt;br&gt;&lt;br&gt;i use it because i want to align my text in center but it doesn't work how can i re size my paper in 3x4 please...&lt;br&gt;I'm beginner for using ah vb&lt;br&gt;&lt;br&gt;my code :&lt;br&gt;&lt;br&gt;&lt;br&gt; Printer.ScaleMode = vbInches&lt;br&gt;        Printer.ScaleLeft = -0.7 '----&gt;&gt; from left&lt;br&gt;        Printer.ScaleTop = -2.1&lt;br&gt;        Printer.CurrentX = 0&lt;br&gt;        Printer.CurrentY = 0&lt;br&gt;        Printer.FontName = "Comic Sans MS"&lt;br&gt;        Printer.FontSize = 16&lt;br&gt;        Printer.Print Text3.Text&lt;br&gt;        &lt;br&gt;'for drugstore&lt;br&gt;        Printer.ScaleMode = vbInches&lt;br&gt;        Printer.ScaleLeft = -0.7&lt;br&gt;        Printer.ScaleTop = -2.6&lt;br&gt;        Printer.CurrentX = 0&lt;br&gt;        Printer.CurrentY = 0&lt;br&gt;        Printer.FontName = "MS Sans Serif"&lt;br&gt;        Printer.FontSize = 12&lt;br&gt;        Printer.Print Text4.Text&lt;br&gt;                        &lt;br&gt; 'for chapter&lt;br&gt;        Printer.ScaleMode = vbInches&lt;br&gt;        Printer.ScaleLeft = -0.7&lt;br&gt;        Printer.ScaleTop = -2.8&lt;br&gt;        Printer.CurrentX = 0&lt;br&gt;        Printer.CurrentY = 0&lt;br&gt;        Printer.FontName = "MS Sans Serif"&lt;br&gt;        Printer.FontSize = 12&lt;br&gt;        Printer.Print Text5.Text&lt;br&gt;       &lt;br&gt; Printer.EndDoc&lt;br&gt;&lt;br&gt;&lt;br&gt;but the output are always&lt;br&gt;&lt;br&gt;aaaaaaaaaaa&lt;br&gt;aaaaaaaa&lt;br&gt;aaaa&lt;br&gt;aaaaaaaaaaa&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;i want it to align it in center&lt;br&gt;  &lt;br&gt;     aaaaaaaaaaa&lt;br&gt;        aaaaaaaa&lt;br&gt;           aaaa&lt;br&gt;     aaaaaaaaaaa&lt;br&gt;&lt;br&gt;&lt;br&gt;any one can help me plzzz??????&lt;br&gt;&lt;br&gt;best regards..&lt;br&gt;manily&lt;br&gt;&lt;br&gt;</description><pubDate>Sun, 04 Apr 2010 03:05:24 GMT</pubDate><dc:creator>manilyn</dc:creator></item><item><title>Captured image from web cam</title><link>http://www.a1vbcode.com/vbforums/Topic29093-3-1.aspx</link><description>hi to all can any one here know or any idea fro capturing image from web cam in vb 6??</description><pubDate>Thu, 01 Apr 2010 22:33:01 GMT</pubDate><dc:creator>manilyn</dc:creator></item><item><title>please help me answer these questions Correctly</title><link>http://www.a1vbcode.com/vbforums/Topic29090-3-1.aspx</link><description>Actually these are Some of Interviews Questions that i have to answer in an interview. I have got Some Confusion :confused: in My answers that why posting here .. So that Any Genius Can Answer these Question Correctly&lt;br&gt;&lt;br&gt;1) Which of the following are true about Extension methods?&lt;br&gt;&lt;br&gt;1) They must be declared static (Correct)&lt;br&gt;2) They can be declared either static or instance members &lt;br&gt;3) they must be declares in the same assembly(but may be in different sources files)&lt;br&gt;4) Extension methods can be used to override existing instance methods  (Correct)&lt;br&gt;5) Extension methods with the same signature for the same class may be declared in multiple namespace without&lt;br&gt;   causing compilation errors&lt;br&gt;&lt;br&gt;More than one can be correct?&lt;br&gt;&lt;br&gt;2) which of the following can one use to detect the user's current language?&lt;br&gt;&lt;br&gt;1) Examining the user languages property of the current request object&lt;br&gt;2) Examining the currentCulture property of the current request object&lt;br&gt;3) Examining the CurrentCulture property of the current thread Object (Correct)&lt;br&gt;4) Examining the language property of the current page object&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;3) which of the following are true about Declarative Attributes?&lt;br&gt;&lt;br&gt;1) They must be inherited from the system.Attribute&lt;br&gt;2) Attributes are instantiated at the same time as instances of the class to which they are applied&lt;br&gt;3) Attributes classes may be restricted to be applied only to application element types&lt;br&gt;4) By default, a given attribute may be applied multiple times to the same application element&lt;br&gt;&lt;br&gt;More than one can be correct?&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;4) with Which class is the task of mapping a specfic point in time into units such as weeks, months and year accomplished?&lt;br&gt;&lt;br&gt;1) System.datetime  (Correct)&lt;br&gt;2) System.timeSpan&lt;br&gt;3) System.Globalization.Calender&lt;br&gt;4) System.Globalization.CultureInfo&lt;br&gt;&lt;br&gt;5) Which of the follwoing elements can be adjusted when using the processModel element of the Machine.Config File ?&lt;br&gt;&lt;br&gt;1) The number of queued requests befoer returning "Server Busy (error: 503)"&lt;br&gt;2) The maximum number of threads per processor &lt;br&gt;3) The maximum number of threads per request&lt;br&gt;4) The Maximum amount of memory utilized per request (Correct)&lt;br&gt;&lt;br&gt;&lt;br&gt;6) Determining the availablity of sufficient memory for an operation can be accompished by&lt;br&gt;&lt;br&gt;1) There is no supported application level means to determine if a specfic amount of memory&lt;br&gt;   is available&lt;br&gt;2) using static methods of system.runtime.memoryfailpoint and checking the return value&lt;br&gt;3) creating an instance of system.runtime.memoryfailpoint and monitoring for an insuffcientMemoryException&lt;br&gt;   (Correct)&lt;br&gt;&lt;br&gt;4) Creating an instance of system.runtime.memoryfailpoint and monitoring for an outofmemoryException&lt;br&gt; &lt;br&gt;   What would be the correct answer?&lt;br&gt; &lt;br&gt;7) which of the following are true about anonymous types?&lt;br&gt;&lt;br&gt;1) They can be dervied from any reference type (Correct)&lt;br&gt;2) Two anonymous types with the same named parameters in the same order declared in different&lt;br&gt;   classed have the same type&lt;br&gt;3) Anonymous types can have methods &lt;br&gt;4) All properties of an anonymous types are read/write&lt;br&gt;5) Anonymous types cannot cross method boundaries&lt;br&gt;&lt;br&gt;&lt;br&gt;8) which of the following mechanisma are not suitable for returning a single row froma datatable&lt;br&gt;   containing a large number of records?&lt;br&gt;&lt;br&gt;1) Datatable.rows.find  (Correct)&lt;br&gt;2) Datatable.rows.select&lt;br&gt;3) Datatable.select &lt;br&gt;4) Enumerating across datatable.rows&lt;br&gt;&lt;br&gt;9) Which of the following are valid mechanisms for adding an event handler for public Event someEvent() on class Sample?&lt;br&gt;&lt;br&gt;1) AddHandler Sample.SomeEvent Addressof MyEventHandler (Correct)&lt;br&gt;   Public Sub MyEventHandler&lt;br&gt;&lt;br&gt;2) AddHandler Sample.SomeEvent,AddressOf Sample.SomeEvent&lt;br&gt;&lt;br&gt;3) Private WithEvents Sample As New Sample&lt;br&gt;   Public Sub MyEventHandler(sender As Object,e As EventArgs) Handles sample.SomeEvent&lt;br&gt;&lt;br&gt;4) Private withEvents sample As New Sample&lt;br&gt;   Public Sub MyEventHandler() Handles sample.SomeEvent  (Correct)&lt;br&gt;&lt;br&gt; More than one can be Correct?&lt;br&gt;   &lt;br&gt;&lt;br&gt;&lt;br&gt;10) Which of the following are true of ADO.NET?&lt;br&gt;&lt;br&gt;1) it uses a connected provider model     (Correct)&lt;br&gt;2) it uses a Disconnected provider Model (Correct)&lt;br&gt;3) it includes a dataAdapter class, which provides a high-performance mechanism for retrieving data&lt;br&gt;4) system.data.common provides classes that are database agnostic&lt;br&gt;&lt;br&gt; More than One can be Correct..&lt;br&gt;&lt;br&gt;11) which of the following are true of the system.text.StringBuilder class?&lt;br&gt;&lt;br&gt;1) it is less efficient than string concatenation when many concatenation are performed&lt;br&gt;2) There is a method which formats the string being appended to the stringBuilder, much like the string format (Correct) &lt;br&gt;3) The StringBuilder is most efficient when initialized using the parameterless constructor&lt;br&gt;4) All of the above&lt;br&gt;5) None of the Above.&lt;br&gt;&lt;br&gt;12) in which of the Following Ways do structures differ from classes?&lt;br&gt;&lt;br&gt;1) Structures cannot implement interfaces&lt;br&gt;2) Structures cannot inherit from a base structure (Correct)&lt;br&gt;3) Structures Cannot have events&lt;br&gt;4) Structures cannot have overrideable methods&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;13) which of the following is true regarding the system.datetimeoffset structure?&lt;br&gt;&lt;br&gt;1) it provides an exact point in time relative to the UTC time zone (Correct)&lt;br&gt;2) it combines a date time structure with a timeZone structure&lt;br&gt;3) it provides arithemetical operations using values with differenet offsets from the UTC&lt;br&gt;4) it can be used to determine the specific timeZone for a localtime&lt;br&gt;&lt;br&gt; More than one Can be Correct&lt;br&gt;&lt;br&gt;14)Which of the following are true about Nullable Types?&lt;br&gt;&lt;br&gt;1) A Nullable type is a reference type&lt;br&gt;2) A Nullable type is a structure (Correct)&lt;br&gt;3) An implicit converstion exists from any Non-nullable value type to a nullable from of that type (Correct)&lt;br&gt;4) An implicit conversion exists from any nullable value type to a non-nullable from of that type&lt;br&gt;5) A predefined conversion from the nullable type S to the nullable type T exists if there is a predefined conversion&lt;br&gt;   non-nullable type S to the non-nullable type T (Correct)&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;15) which of the following is true about VB Generics?&lt;br&gt;&lt;br&gt;1) VB Allows non-type template parameters&lt;br&gt;2) VB supports explicit specialization &lt;br&gt;3) VB allows the type parameters to be used as the base class for the generic type&lt;br&gt;4) VB allows a generic type parameter itself to to be a generic &lt;br&gt;5) VB enforces that all codes are valid for all types of parametrs (Correct)&lt;br&gt;&lt;br&gt; what would be the Best Choice ? &lt;br&gt;&lt;br&gt;&lt;br&gt;16) which of the following statements do expression trees fit best?&lt;br&gt;&lt;br&gt;1) Expression trees are a data structure which can be intially composed using language syntax (Correct)&lt;br&gt;2) Expression trees are a  dynamically generated code which is executed to perform the desired function&lt;br&gt;3) Expression trees can be created only from Lambda Expressions&lt;br&gt;4) Expression trees can be modified once again&lt;br&gt;5) All of the above&lt;br&gt;&lt;br&gt;17) when using an implicitly typed array, which of the followoing is most appropriate?&lt;br&gt;&lt;br&gt;1) All elements in the initializer list must of the same type &lt;br&gt;&lt;br&gt;2)All elements in the initializer list must be implicitly convetable to a known type which is the base type of&lt;br&gt;  atleast one member in the initialize&lt;br&gt;3) All elements in the initializer list must be implicitly convertable to a common type which is the base type &lt;br&gt;   of the items actually in the list &lt;br&gt;4) There are no restrictions on the items in the initializer list as the array is not declared to be a specific type &lt;br&gt;(Correct)&lt;br&gt;&lt;br&gt;I have also mentioned my answers with my poor knowledge so Please Answer These Question just by the Alphabets(A,B...or E) corresponding with Indexes.&lt;br&gt;I hope U all will help me to get This Job while answering these question correctly.&lt;br&gt;Thanks&lt;br&gt;Best Regards&lt;br&gt;Salman</description><pubDate>Thu, 01 Apr 2010 01:00:59 GMT</pubDate><dc:creator>salman1986</dc:creator></item><item><title>operation not allowed?</title><link>http://www.a1vbcode.com/vbforums/Topic29085-3-1.aspx</link><description>i would like to know how to edit,delete and modify the records in data grid&lt;br&gt;actually i have create AN ARMY RECORD SYSTEM&lt;br&gt;and i have made searchign avaiable at datagrid&lt;br&gt;what i have done is dat i made a search button and a combo for army number to search through.&lt;br&gt;and firstly it will find out the personal info in one datagrid and then will show other infos in another grid as per requirement by using different buttons..&lt;br&gt;now what i want to do is that...i have made a button for editin n i want to allow editing and deleting in datagrid using that button and also the other button named as "MODIFY RECORDS" should modify those eidited records which hav been eidited using datagrid&lt;br&gt;&lt;br&gt;and i trap on the editing  i tried to delete first the record before i can edit to aware the duplicate primary key but when i delete thiers a lot of error&lt;br&gt;&lt;br&gt;my code is look like this:&lt;br&gt;&lt;br&gt;Private Sub Command1_Click()&lt;br&gt; Dim rResult&lt;br&gt;   &lt;br&gt;   rResult = MsgBox("Do you want to delete the record", vbYesNo)&lt;br&gt;   &lt;br&gt;   If rResult = vbYes Then&lt;br&gt;   &lt;br&gt;      &lt;br&gt;       conn.Execute "Delete REPRESENTATIVE,DRUGSTORE,CHAPTER,AMOUNTPAID from Registered where CONTROLNUMBER ='" &amp; Text1.Text &amp; "'"&lt;br&gt;       &lt;br&gt;       Set DataGrid1.DataSource = Nothing&lt;br&gt;       Set rec = Nothing&lt;br&gt;       &lt;br&gt;       Set rec = New ADODB.Recordset&lt;br&gt;       rec.Open "Select * from Registered", conn, adUseClient, adLockOptimistic&lt;br&gt;       Set DataGrid1.DataSource = rec&lt;br&gt;   End If&lt;br&gt;End Sub&lt;br&gt; &lt;br&gt;and the error was the   conn.Execute "Delete REPRESENTATIVE,DRUGSTORE,CHAPTER,AMOUNTPAID from Registered where CONTROLNUMBER ='" &amp; Text1.Text &amp; "'"...&lt;br&gt;&lt;br&gt;any one could help me plzzz....&lt;br&gt;&lt;br&gt;&lt;br&gt;kindly answer me as soon as possible&lt;br&gt;thank you</description><pubDate>Wed, 31 Mar 2010 03:30:31 GMT</pubDate><dc:creator>manilyn</dc:creator></item><item><title>MDI Parent Child Control</title><link>http://www.a1vbcode.com/vbforums/Topic29087-3-1.aspx</link><description>Bear with me here. This one souds a little complicated.&lt;br&gt;&lt;br&gt;I have a parent control. It is frmMain&lt;br&gt;I have a child called frmBack&lt;br&gt;&lt;br&gt;I removed the controlbox, title and icon from frmBack and want it maximized inside the frmMain. &lt;br&gt;Inside frmMain there is a toolbar. This stays. &lt;br&gt;&lt;br&gt;When I start the program, everything works, the frmBack maximizes. Except a control box and bar appears above the toolbar in frmMain and, besides looking tacky, allows you to close, minimize ect the form. &lt;br&gt;&lt;br&gt;How do I remove that bar and control that appears?&lt;br&gt;If the windows is in normal mode those are not there. I had removed them already.&lt;br&gt;&lt;br&gt;Thanks in advance to any reply on this subject.</description><pubDate>Wed, 31 Mar 2010 12:09:52 GMT</pubDate><dc:creator>runtest</dc:creator></item></channel></rss>