Results for "Volume: 4_2005-2006"
Email any form from your site using CDONTS (IIS's built-in smtp). Just 10 lines of code handles any size form! Email will display message in the form of fieldname: fieldvalue in proper tab order, with line breaks between each name/value pair.
Demostrates how you can easily create a cool menu using the default filters which are part of internet explorer. You can easily modify the code to use it for your own menus.
This code was taken from O'Neil. It searches a combo box as the user types. O'Neil's code was modified to use the SendMessage API to search the combo box, which made it much faster. This is very fast, even with thousands of records in the combo box. Thank you O'Neil for the idea, and the well commented code!
The book "Tricks of the Game Programming Gurus" by Andre LaMothe, copyright 1994, has an interesting chapter on artifical intelligence. However, all the samples in the chapter are done up in C. I've redone them into VB just for the heck of it. There are 5 simple programs illustrating chasing, evasion, patterned movement, random movement, and a program that combines all of the above.
This is a series of Has.. Codes. It will search a textbox for the following: Lowercase letter, Uppercase letters, Numeric Characters, and Accented Characters. So, if it has lowercase letters or something, it will display a message box. this is a good example of how to use for..next loops, ASCII codes and the Instr Function, then again, this might be a lousy example, you be the judge.
This code validates credit card entries on a corresponding page.
When you work with cookies, you always run into paranoid types who disable their cookies. If you don't detect and deal with them, your code may not work. This code detects the user's cookie settings using the ASP Session object. Unlike some other implementations, it requires only one script page.
generates a 'dummy' file which can be any type and any number of kilobytes. 110% commented just like my code 'A+ Secure Delete'. purpose is to generate files, so not much of a purpose. i just saw it in a couple of hacking/security programs and thought i'd try it.
i'd imagine this has been done before, but if it has i haven't seen it. all it is is a substitute for the FileCopy statement. copies a file byte-for-byte to a new destination. 110% commented just like 'A+ Secure Delete' And 'A "Dummy" File Generator' (both by me). well hope you like this.
This is a basic counter that has some more advanced statistic features. Small, fast and efficient!
This is a classical game of Ping-Pong, but with many improvements. You can play against a PC with 5 different skill levels or against a friend. You also have a lot of options. For example you can change the speed of the game, the score limit, you can choose a two-ball game (you will play with two ping-pong balls instead of one) or you can choose wether the PC will assist you in hitting the ball. The scoring goes as follows: if the ball hits a player's margin of the screen, the other player's score increases. The player that first reaches the score limit wins. Enjoy!
With CTray you can add/remove/change one icon to the System Tray. All you need to do is add CTray to your project and one picture box to your form, and you're done! A sample project is included.
This program simulates mouse events. It can, left click, right click, pause between events, and you can easily make it double click too. It works by using an action list (listbox), the user inputs a bunch of actions that they want to perform, then the program does all the actions in the list for a specified amount of loops. (you can also specify the cursor position for each action, i.e. click on start menu, then click run.)
Purpose: "shows how to ...send an e-mail message using Collaboration Data Objects (CDO)." from MS KB Article: Q200150. I created a VB project and a class from the provide code. You will need the Microsoft CDO 1.2 library referenced.
This function searches a text string for possible phone numbers and returns an array of those numbers. It allows you to specify a default area code, too. (If you know an easier or more elegant way to do this, let me know!) Doesn't work for international numbers.
This allows a user to send an instant message to other users on a network. It includes storable "mailing list" capabilties, customizable message "macro" buttons, and an optional customizable message header.
Using the Windows Scripting Host this VBScript retrieves the users favorites folder and loads the url links into an array, then goes to each site for three minutes.
A simple shopping cart program. It uses the dictionary object to store data in the session. It pulls all information from the included database. I used a fake company name and horrible graphics but, the code works nicely!
This code takes input from a textarea and replaces carriage returns with the HTML line break BR...
This is an example application that demonstrates Html Syntax Highlighting. It currently Color Codes Html Tags, Html Attributes, Comments, and ASP Tags in different colors. It highlights when a file is opened, when a user types, and when tags are inserted. It also maintains color coding as a user moves the cursor in and out of a tag using the mouse or arrow buttons. It also handles pasting text into a textbox. This application is complete and contains a demostration of every part of the code. Please check out http://www.codearchive.com/home/eric for my other projects.