Advertisement

Results for "Volume: 5_2007-2008"

5_2007-2008 #180250
DLL Callback

This sample demonstrates the use of asyncronous inner-process operations. In this case we have an app that wants to get data from a DB, which could take a undefined long amount of time. The app wants to do other work while waiting for the result of the DB-Call. It calls the "GetDBData()"-function, which returns immediately. After the DLL-function has done its work, it notifies the caller app via the CALLBACK-function "DataReadNotify()".

5_2007-2008 #172630
Combo_TypeAhead

Allows the VB combobox to have a type-ahead feature like the combobox in Access. If there are any matching items in the combobox list, it will automatically "fill in" the missing portions of the item and select it. This will work for multiple characters, not just the first character of the string. *** This is an expanded version of the original code *** The updates allow for new items to be added into the list, automatically. It also will handle the delete key (the previous code did not.)

5_2007-2008 #176088
^NEW^ -- wildcard string compare (globbing)

matches a string against a wildcard string such as "*.*" or "bl?h.*" etc. This is good for file globbing or to match hostmasks.

5_2007-2008 #172631
Changing priority

This code fragment demonstrates how you can get a program to change it's own priority. Sometimes it is necessary to change the priority of a process from the default. The example that prompted this code was a program I had to launch from a commercial scheduler always defaulted to idle priority. This caused the program to miss it's processing deadline. Increasing the priority to normal or high solved the problem.

5_2007-2008 #185259
TextBox - Only Accept Numbers

This short little code example shows you how to only accept numbers to be inputed into a textbox by using the KeyPress event procedure. This is beginner, but I've seen alot of people that don't know how to do this.

5_2007-2008 #174925
ListView 84 Subs and Functions

Just learning how to manipulate the ListView Control and thought I would pass this along. Might do more controls later on if response is good. If you find some of these useful please vote :>) Subs and Functions Check all Items in ListView UnCheck all Items in ListView Remove Checked ListView Items Remove UnChecked ListView Items Copy ListView Column Copy Entire ListView Copy Selected Column Items In ListView Copy Selected Row Items In ListView Copy Column Headers In ListView Copy Formatted ListView Copy And Format Selected Items In ListView Copy Checked ListView Column Copy Checked ListView Rows Count ListView Column Headers Count ListView SubItems Columns Count ListView Column Items As Sum Count Selected ListView Column Items As Sum Count ListView Items Count Selected Items In ListView Count Unselected Items In ListView Count Checked Items in ListView Count UnChecked Items in ListView Count Duplicate Items in ListView RemoveDuplicateItemsInListView RemoveDuplicateSubItemsInListView Remove First Item In ListView Remove Last Item in ListView Remove Selected ListView Item Or Items Remove UnSelected ListView Item Or Items Remove NonMatching Items in ListView Remove NonMatching SubItem in ListView RemoveNonExactMatchingItemsInListView Remove Matching Item in ListView Remove Matching SubItem in ListView Remove Exact Matching Item in ListView Clear ListView Remove ColumnHeaders in ListView Remove ColumnHeader in ListView Resize All ListView Columns But Item Column Resize Last Column Resize ListView Columns Equally Is Item Checked in ListView Is Item Selected In ListView Is ListView Full Color ListView Color Stripe ListView Rows BackColor Color ListView BackColor Row Color ListView Rows BackColor To Default Color Color Selected ListView Rows BackColor Color Selected ListView Rows BackColor To Default Color All ListViews On Form Select All ListView Items Deselect All ListView Items Get First Selected Item In ListView Get First Selected SubItem In ListView Get First Selected Row In ListView Get ListView Column As String Get Entire ListView Get Selected Column Items In ListView Get Selected Row Items In ListView Get Formatted ListView Get Column Headers in ListView Goto First Item in ListView Goto Last Item in ListView Goto Row Item in ListView Load Basic ListView File Save ListView as Basic ListView File Save ListView Column as File Search ListView By Column Search Entire ListView Search For Closest Match In ListView Search For Closest Match In ListView Column Find First Item Or SubItem In ListView Find Next Item Or SubItem In ListView Selected ListView Items ListIndex For User Selected ListView ListIndex Send a ListView Column to ComboBox Send Selected ListView Items From Column To ComboBox Send a ListView Column to ListBox Send Selected ListView Items From Column To ListBox Send ListView Column to TextBox Send Selected ListView Column Items To TextBox

5_2007-2008 #188452
[ A Simple] Way To List Files In A Folder

This project simply lists the files in a folder. No elaborate class hirarchy wrapers. Simply demonstrates System.IO features. This simple solution was brought to you by the P2B Consortium. “Free and easy artificial intellagence chatbot hosting” http://www.p2bconsortium.com/sss/CreateBot.aspx Step 1: Build and run \ListFilesInFolder\ListFilesInFolder.sln Step 2: Enter a folder path in the top text box Step 3: Click on "List Files In Folder" to list the files in the folder

5_2007-2008 #172639
FOOApp

The FOOApp: A complete Classified Ads application showing how to use Active Server Pages' ADO database techniques, SQL techniques, cookies for "remembering", VBScript client-side field validation, and much more. FREE!

5_2007-2008 #190264
ScheduleGrid

A web based grid that allows a user to schedule actions against a resource on a time base by simply clicking and dragging. A tooltip is displayed that shows the user what the time is where the mouse currently hovers. This control allows you to set up multiple actions, a start and end time of the grid, and time intervals for each cell in the grid. Time intervals are numbers that can divide into sixty; i.e. 1, 2, 3, 5, 10, 12, 15, 20, 30 and 60.

5_2007-2008 #178999
Sending Output to the printer

Learn how to send output to your printer. PLEASE RATE THIS.

5_2007-2008 #177458
Lewies Validation Code Image - Part 2

Prevent content and processes from being misused for spam or inappropriate use. An image is displayed to the end-user. An attempt is made to prevent OCR recognition by agents, spiders, or artificial intelligence to gain access to content or processes. The image will display a “code” to the user that they are required to enter into a field provided.

5_2007-2008 #190964
Flash Toggler

Turns macromedia flash animations off/on in Internet Explorer without renaming the plugin. So, you don't get any errors or popup boxes asking you to install Flash unlike with other Flash togglers. I have a shortcut to it on my IE toolbar so I can turn Flash on/off.

5_2007-2008 #172484
Make Your Own FTP Client

Make a simple FTP Client that allows you to read and write to a remote computer

5_2007-2008 #190970
Easily add WinXP themes to your applications without manifest! Just 5 lines of code!!!

This is a very simple way of add WinXP themes to your applications! Tired of carrying arround unwanted manifest files??? well this uses only 5 lines of code ;)

5_2007-2008 #174607
Display Visitor's Name

Posted by PJ Barnes (pb@alphalink.com.au) to newsgroup comp.lang.javascript (13 October, 1998) Description: This script prompt the user to enter his name and displays a welcome message. Very simple and common script.

5_2007-2008 #175735
SaJ

SaJ is a program for Spliting And Joining Files. I have tested it on win98/2000 and xp. The Split/Join Function is running on a seperated thread and in a low cpu-priority. This, prevents the form from freezing and also it enables to cancel the operation at any time... SaJ is competible with other split\join programs like hjSplit...(considers very popular..) I will be glad to here any comments or bugs reports!! :-)

5_2007-2008 #179557
IeSpy

IESpy lets u keep a watch on the webpages visited by anybody.It checks whether IE is running and if so logs almost evry webpage visited, another alternative to checking history folder which is genraly deleted by the users.It saves the data in a log file when exiting.Also shows how to implement enum callback functions. Please leave your comments and suggestions.

5_2007-2008 #177167
Base64 encoding/decoding DLL, complete with sample EXE!

Base64 is a public encoding/decoding algorithm. It is used in many ways, for example in authorization and E-mail attachments. Let's say you want to enter a site that requests a user name and password (I'm talking about that dialog thing that you get in your browser). You type in "MyUserName" and "MyPassword". At this point the browser first concatenates the strings with a colon between them: "MyUserName:MyPassword". Then it encodes the resulting string with Base64. The result is "TXlVc2VyTmFtZTpNeVBhc3N3b3Jk". This is what is sent to the web-server (this is the process in a non-secure protocol like http - in a secure protocol like https, the process is a bit different). Another use is in E-mail attachments. When you attach a non-text file (such as a JPG file) to your E-mail message, your E-mail client first encodes this file in Base64, and only then sends it to the SMTP server. When you retrieve the E-mail message from the POP server, you receive the encoded file and your E-mail client decodes it to get the original file back. This posting consists of two projects. One is called "Base64" and is a Win32 DLL Project - this DLL contains functions which do the encoding and decoding. It contains documentation, in a file called Base64.exe. The other project is called "YBase64" and is a Win32 EXE Project - this is a sample application which uses the aforementioned DLL. (You can see YBase64 in the attached screen shot) IMPORTANT NOTE: MFC HAS NOT UNLEASHED ITS EVIL POWERS UPON THESE TWO PROJECTS - they are completely and purely Win32. You have two options for encoding and decoding - asynchronous or synchronous. The "spontaneous" encoding/decoding is done synchronously. For the files you have an checkbox which lets you choose (of course, the progress-bar and cancel button aren't operational in synchronous mode). I have done some testing: Encoding a 50.6MB file took about 1 minute and 20 seconds, and decoding the result took about 1 minute and 40 seconds, on my P3 450MHz. I used a file-compare program (FC.EXE which comes with Windows) to compare the result and the original file, byte by byte, and no differences were encountered. If you like this code, please vote and/or submit your feedback! Thanks.

5_2007-2008 #190598
Progress Bar Example

This hummorus application explains how to use the Progress Bar Controls. This program is based on a spoof for people that have massivly oversized harddrives. This code was written in VB .Net (2002) but the logic can be used in most versions of Visual Basic.

5_2007-2008 #174608
Mail It (JavaScript Mail Form)

Andy Augustine Description: You can use standard HTML to send email to a "hard-coded" email address with a "hard-coded" subject. (The body of the message can be any info keyed in the form). However, if you want to send email to a user-specified email address and/or a user-specified subject, then HTML cannot do the job. This script shows how Javascript can be used to allow the user of the form to specify the recipient and subject (the trick: use a hidden form and populate this form with the contents of the visible form). You can customise the visible form to suit your requirements. Please note that if you have not configured your browser's email program, this script will not work.

Languages
Top Categories
Global Discovery