Wednesday, March 21, 2012

How to Use a HashTable in a Visual Basic Application


1. Open a new Visual Basic project. Double-click the 'Button' control four times to add 'Button1' through 'Button4' to the form and arrange them as you like. Change the 'Text' property for 'Button1' to 'Add,' for 'Button2' to 'Remove,' for 'Button3' to 'Show All' and for 'Button4' to 'Clear.'
2. Press 'F7' to open the code window. Type the following code on the first line:Imports System.CollectionsThis imports the System.Collections namespace into the project. It contains the Hashtable class.
3. Open the 'Form1' class and type the following code:Dim MyHashTable As New Hashtable()This creates a new object called 'MyHashTable' that uses the Hashtable class.
4. Open the 'Button1_Click' subroutine and type the following code:TryMyHashTable.Add('First', 'Gold')MyHashTable.Add('Second', 'Silver')MyHashTable.Add('Third', 'Bronze')Catch ex As ExceptionMessageBox.Show('Duplicate Key')End TryThese lines use the 'Add' method to add three new items to the hash table with 'First,' 'Second' and 'Third' as the keys and 'Gold,' 'Silver' and 'Bronze' as their respective values. You can get the key-value pairs from anywhere else in the program, such as a user InputBox, TextBox controls or other selections at run time. Adding these items in a 'try-catch' block ensures that if you try to add an item with a key that already exists in the hash table, it does not crash the program.
5. Open the 'Button2_Click' subroutine and type the following code:If (MyHashTable.Count = 0) ThenMsgBox('HashTable is empty')ElseMyHashTable.Remove(MyHashTable.Count)End IfThese lines use the 'Count' method to see if the hash table is empty already. If so, the program tells the user; if not, it removes the most recent item. You can program alternative ways to remove items from the hash table.
6. Open the 'Button3_Click' subroutine and type the following code:If MyHashTable.Count = 0 ThenMsgBox('No items in HashTable')ElseFor i = 0 To MyHashTable.Count - 1MsgBox(MyHashTable.Keys(i).ToString & ', ' & MyHashTable.Values(i))Next iEnd IfThese lines check first to see if any entries exist in the hash table. If not, the user is informed that the table is empty; otherwise, all of the key-value pairs are displayed. Because hash tables use zero-indexing, you need to count up to this hash table's 'count' minus one.
7. Open the 'Button4_Click' subroutine and type the following code:MyHashTable.Clear()This method clears all entries in the hash table. You do not need to check first if the table is empty or not because clearing an empty table does not cause an error.
Read more ►

Tuesday, March 20, 2012

How to Download Missing .DLL Files


1. Right-click to copy the name of the .dll file. Paste the information in a Word document or record it on paper to avoid losing the information if the computer were to shut down.
2. Open the browser to a search engine. Search for entries on downloading .dll files or visit DLL-files.com. The Web site has an extensive library of free .dll files for download.
3. Left-click on the first letter of the file for a list of files that start with the same letter. Conversely, if you have the complete name of the file, you can type or paste it into the search window.
4. Click on the hyperlink that contains the name of the file. The file will load. Next, click on 'Click here to download the file'. A new screen will appear. Using this screen, click, 'Download (file name)'.
5. Click on the open button within the Windows dialog box. Follow the installation prompts on your system. To save the information to your hard drive, select the folder where you want the file to be saved. Press, 'Save'.
Read more ►

Sunday, March 18, 2012

How to Fix Runtime Error 429 With an ActiveX


1. Visit the Microsoft Windows Script 5.6 download Web page with your Web browser.
2. Click 'Save,' which is located in the 'File Download-Security Warning' dialog box. Choose a destination location for the download and click 'Save' in the 'Save As' dialog.
3. Run the file by double-clicking it and clicking 'Run' in the dialog box.
4. Click 'Yes' to confirm the update download. Read the Microsoft agreement and click 'Yes' to proceed. The update will undergo the installation process.
5. Click 'OK' in the 'Windows Script 5.6 is now installed!' dialog box to complete the fix.
Read more ►

How to Install ActiveX Control for Flash Player


1. Open a single Internet Explorer browser window. If you have multiple windows open, close all but one of them.
2. Click 'Tools' in the top menu bar and select 'Internet Options.'
3. Select the tab near the top of the dialog box labeled 'Security' and then click the 'Custom Level' button.
4. Browse the long list of features until you find the heading labeled 'ActiveX Controls and Plug-ins.' Choose 'Enable' or 'Prompt' for three specific features: 'Download Signed ActiveX Controls,' 'Run ActiveX Controls and Plug-ins' and 'Script ActiveX Controls Marked Safe for Scripting.' If you use Internet Explorer 5 or 6, set all ActiveX options to 'Enable' or 'Prompt.' Do the same for the 'Active Scripting' setting in these two browser versions.
5. Click 'OK' two times to close the open dialog boxes and save your changes.
6. Navigate to Adobe's website in your open browser window. Click the 'Get Adobe Flash Player' icon located on the right-hand side of the screen, and then click the yellow 'Agree and install now' button to start the installation process.
7. Click the yellow bar if it appears on the top of your screen, select the 'Install Active X Control' option, and then click the 'Install' button in the following dialog box. Depending on your ActiveX settings, the yellow bar may not appear. In either case, installation typically takes less than a minute. The Flash Player is ready to use after the process completes.
Read more ►

How to Delete DLL Files


1.
Turn on your computer and verify that your hard-drive is connected correctly and that your operating system functions properly. This will prevent errors during the .Dll file deletion process. Log in to your operating system user account and click the 'Start' button in the lower left-hand corner of the screen.
2.
Click the 'My Computer' icon and select your hard-drive (default label is 'C:')
Open the 'My Computer' icon in the 'Start' menu. Enter the 'C:\' hard-drive. Click the 'Windows' folder and select the 'System 32' folder. The 'System 32' directory is where .Dll files are located in Windows. You should see dozens of files, including .Dll files, in the 'System 32' folder in your Windows installation.
3.
'Delete' will remove the .Dll files from your 'System 32' folder.
Right click the .Dll file or files you wish to delete and selete 'Delete' from the mouse menu which pops up in Windows. Click 'Yes' on the dialog box prompting you if you would like to send the .Dll files to the Recycle Bin. Your .Dll files will be deleted and no longer located in the 'System 32' directory.
Read more ►

Friday, March 16, 2012

How to Fix a Binkw32.dll Error


1. Go to the binkw32.dll file download website (see Resources for the link) and click on the "Save File" button. This will initiate the file download onto your computer.
2. Find the location of the file download on the computer and right-click on the file. Select the "Extract" option and choose the Windows desktop as the destination for the file extraction.
3. Right-click on the "Start" button, located in the lower left corner of the Windows desktop, and select the "Explore" option. This action opens "Windows Explorer." Go to the "System" folder, in the left panel of Windows Explorer. Different versions of the Windows operating systems will have the "System" folder in varying locations. The locations are as follows:Windows 7, Windows XP, Windows Vista: "C:\Windows\System32."Windows 2000, Windows NT: "C:\WINNT\System32."
4. Left-click the "System" folder in the left panel of "Windows Explorer." This will open the contents of the folder in the right panel.
5. Drag and drop the "binkw32.dll" file from the Windows desktop into the right panel of Windows Explorer, onto the contents of the opened "System" folder. Click "Yes" to replace the old "binkw32.dll" file with the new "binkw32.dll" file. Reboot the computer.
Read more ►

How to Clear an HP Check Printer Cartridge Error Code


Reinstall the Ink Cartridge
1. Turn on the printer and open the cover where the ink cartridge is located. Remove the cartridge.
2. Place the ink cartridge back in the carriage. Close the cover. Turn the printer off for a minute.
3. Turn the HP printer on. Print a test page. If this does not correct the problem, move onto Section 2.
Wipe Down the Cartridge Contacts
4. Turn on the printer and open the cover where the ink cartridge is located. Remove the cartridge.
5. Remove the cartridge and use a clean, lint-free, dry cloth to gently wipe the contacts.
6. Wipe from the top of the contact to the bottom. Do this for each contact.
7. Place the HP ink cartridge back in the carriage. Turn the printer off for a minute.
8. Turn the HP printer on. Print a test page. If this does not correct the problem, move onto Section 3.
Reset the HP Deskjet and Photosmart Printers
9. Turn on the HP Deskjet or Photosmart printer, open the cover and remove both the black and color cartridge. Close the cover.
10. Remove the power cord from the outlet and disconnect the cables running to the computer or router. Wait one minute, plug in the power cord and then plug in the cables.
11. Open the cover and install the black and color ink cartridges. Turn on the printer.
12. Print a test page. If this does not correct the problem, you will need to buy new ink cartridges at an office supply store, such as Staples or OfficeMax, or a discount retailer, such as Walmart or Target.
Reset the HP Officejet and HP PSC All-in-one Printers
13. Turn on the Officejet or PSC all-in-one printers.
14. Unplug the power cord from the back of the printer and wait one minute.
15. Plug the power cord back into the printer. Press and hold the "Power" button until printer turns on.
16. Print a test page to see if this has fixed the problem. If not, you will need to buy a new color ink unit at any office supply store.
Read more ►

Thursday, March 15, 2012

How to Use ActiveX on a Blackberry


1. Click on the "Internet Explorer" icon on your Blackberry to open the Internet. Internet Explorer is the only Web browser that uses ActiveX controls. Type in the URL of a webpage that uses ActiveX technology into the address bar at the top of the screen and wait for the page to begin loading.
2. Notice a yellow bar that appears at the top of the screen as the page begins to load. Within the yellow bar, the following text appears: "Internet Explorer stopped this site from installing ActiveX control." Move your cursor over the yellow bar and click the trackball. This will open a menu.
3. Select the first line of the menu that opens by scrolling your cursor to the entry that reads "Install This Add-on for All Users of This Computer." Click on the trackball. Internet Explorer will now open a "User Account Control" window which includes a "Continue" and a "Cancel" button. Select "Continue" to to install ActiveX on the Blackberry.
4. Load the webpage you are visiting as normal. The ActiveX controls have now been installed and will be used whenever pages using ActiveX content are accessed on your Blackberry. There is nothing else you need to do.
Read more ►

How to Repair a Missing Dll File in Windows XP Professional


1. Locate a copy of the missing DLL file. Search online archives of DLL files or copy the file from a system that has a working version of the DLL file you are missing.
2. Move the DLL file into the 'C:\Windows\System32' system folder. Overwrite any files that already exist.
3. Click 'Start' and choose 'Run.' Type 'cmd' and press 'Enter.'
4. Enter the command 'regsvr32 {file}.dll' where {file} is the name of the missing DLL. Press 'Enter.'
5. Restart the computer to complete the process.
Read more ►

Wednesday, March 14, 2012

How to Fix Error Code 2738 for Microsoft Streets amp; Trips 2006


1. Double click the 'Command Prompt' icon in Windows to open it. It is located under Start > All Programs > Accessories > Command Prompt. The Start Menu is labeled with a Windows logo in Vista and Windows 7 and located in the bottom left corner.
2. Enter the following command into the command prompt box 'regsvr32 vbscript.dll' without the quotes. This will register visual basic scripts for your computer.
3. Enter the following command into the command prompt box 'regsvr32 jscript.dll' without the quotes. This will register java scripts for your computer.
4. Close the command prompt box. This may open a dialog box prompting you to restart Windows now. Accept the option to reset Windows if prompted (usually in Windows XP) otherwise your computer is now ready to install Microsoft Streets and Trips 2006.
Read more ►

How to Use Freestyle Flash


1. Wash your hands thoroughly with warm water and soap, and dry them on a clean towel.
2. Insert a new lancette into your lancing device. Verify that the lancing device is clean around the tip and the lancette fits properly.
3. Be sure you have the right strips for your Freestyle Flash meter. Confirm that your strips are within the printed expiration date.
4. Insert the test strip into the Freestyle Flash meter with the sample collection end facing out. Be sure that the meter recognizes the strip and wait for the meter to prompt you for the blood sample.
5. Clean the test area with a fresh alcohol wipe and allow it to dry thoroughly. Any excess alcohol may result in an inaccurate reading.
6. With the opposite hand, grasp the lancing device. Holding it firmly against the test site, push the button to trigger the device.
7. Grasp the testing finger slightly below the test site and gently squeeze it to encourage blood flow. You only need a small sample with the Freestyle Flash meter.
8. Hold the Freestyle Flash meter in your free hand and gently touch the strip against the blood sample and allow it to draw the blood in.
9. The Freestyle Flash meter will beep and test the sample Watch the display as it counts down to verify the meter is working. It will display the results on the screen in about five seconds.
10. Use the alcohol swab to gently wipe the test site clean and apply slight pressure to stop the flow of blood. Use the alcohol wipe, gauze or a band aid as needed to stop the bleeding.
11. Record your reading in a log for later reference. The Freestyle Flash will hold 250 test results, but it is a good idea to have a back up of the record just in case.
12. Discard the used strip into the garbage and remove the lancette from the lancing device. The lancette should be disposed of in a Sharps container after use.
Read more ►

Monday, March 12, 2012

How to Change Time and Date on Windows XP


Change the Date and Time in Windows XP
1. Start Windows XP normally. Make sure you are logged in as an administrator or as another user with privileges for changing settings.
2. Click on the time that is displayed in the task bar. This will bring up the Date and Time Properties box. You can also right-click on the time by clicking on the 'Adjust Date and Time' menu option.
3. Highlight a portion of the time on the digital clock, beneath the graphic representation of the time (it looks like a traditional round-faced clock), to highlight it. Make sure you have highlighted the correct portion (hours for hours, minutes for minutes).
4. Enter the time you wish to change and click 'Apply.'
5. Click one of the drop-down menus in the 'Date' section of the window. This will allow you to change the month and the year, either by typing them in or selecting them from the menu.
6. Click on a particular day of the week to reset the calendar to that day.
7. Remember to click 'Apply' whenever you change a property or multiple properties. Your changes will not be confirmed until you do.
8. Enable the daylight-savings time function in the 'Time Zone' tab. This will automatically change the clock to conform with daylight-savings time.
Read more ►

Sunday, March 11, 2012

How to Restore Flash Player


1. Navigate to the Flash Player download Web page, and click on the 'Download Now' button. If you already have the latest version of Flash installed, you'll receive a message telling you that your installation will update automatically when a new version is released. If you don't have the latest version, follow the instructions to install.
2. Click on the 'Start' button, then 'Control Panel' followed by 'Uninstall a Program' in the 'Programs' section if you have the latest version of Flash but are still experiencing problems.
3. Locate Flash from the list of programs displayed. Highlight and click on 'Uninstall' at the top of the screen before following the instructions to remove Flash from your computer.
4. Go back to the Flash Player download Web page, click on the 'Download Now' button and follow the instructions to install. This will install a new version of Flash on your machine.
Read more ►

How to Repair a DCOM Error


1. Click 'Start,' then enter 'dcomcnfg' into the 'Run' or 'Search' box and press the 'Enter' key. Wait for the Windows to configure and launch the Microsoft Management Console (MMC) Component Services Snap-In utility.
2. Click 'Component Services' in the left window pane when the MMC window appears. Navigate to 'Computers' > 'My Computer' > 'DCOM Config' > 'Microsoft Windows Remote Shell Host.'
3. Right-click the 'Microsoft Windows Remote Shell Host' value link, then click 'Properties' on the pop-up menu.
4. Click the 'Security' tab under the 'Launch and Activation Permissions' label, then click 'Customize.'
5. Click the 'Edit' button, then assign the following permissions in the window:'Everyone -- Local Launch and Local Activation''Network Service, System, Administrators Group, Interactive --Local Launch, Remote Launch, Local Activation and Remote Activation.' (Enable all of the check boxes.)
6. Close the MMC snap-in window, then restart the computer.
Read more ►

Saturday, March 10, 2012

How to Access Dll Files Through C


1. Click the Start menu in Windows and double-click the 'My Computer' logo to begin locating the computer's DLL database. Most operating systems store system information in the C drive, so double-click this drive to browse it. If there is a warning screen stating that system files are currently hidden, select the 'Show system files' or 'Show contents of this folder' option and continue browsing. Open the Windows folder.
2. Open the sub-folder labeled 'System-32.' This is where the majority of DLL files are located. Typically, the only reason that a DLL file would not be located here is if a user instructed otherwise during a program installation. Scroll down in the folder until you find the DLL file that you are looking for.
3. Click 'Tools' and then 'Folder options' if no DLL files are showing up in the System-32 folder. Choose the 'View' tab and select from the options to view hidden files and folders. Also, select the option to view file extensions for known file types. All DLL files should now show up in the System-32 folder as ending in '.dll.'
Read more ►