Results for "Volume: 2002C"
This code shows how to use GetFreeDiskSpaceEx API. It works with the drives larger than 2GB as oppose to the old GetFreeDiskSpace API call. It will also work with Windows2000 per-user space quota, so the free disk space you get is actually what available to the user and not all the space available on the disk.
How do I prevent a form from being submitted, until all required fields are correct ? Only one field is used in the example. Every time the user clicks the OK button, the onClick event fires. If it passes the test the form will submit, else the focus will be placed on the textbox, an alert will appear and the submit button will be disabled, which stops the submit process. The onMouseMove event is used to enable the button again. I just added the error handling code in case an error comes up. It is actually not necessary, you can just enable the button again. I use the onControlSelect event on the submit button, because sometimes after being disabled, the button looks like it is embedded in the page. The above event fixes it. The above can be applied to multiple textboxes, and multiple conditions and arguments can be used. It saves time and space as the validation is done on the current page, before the form is submitted. Otherwise the user has to go through the laborious task of clicking the back button on the posting page to be redirected to the previous page, and fix a simple mistake. I've had comments that the JavaScript return false statement is a better solution. Unfortunately the return false; statement doesn't seem to work when you are using frames. I hope you find this usefull !.
After searching throughout the web for a JavaScript function that would add a web page to a users favorites folder, I grew increasingly impatient with the laziness of others code, (hey why re-create the wheel?) because others code only lets you add one page to a users favorites folder. Therefore, I created a DYNAMIC “Add to Favorites” function, that for example will add the web page where the code is located to the users favorites. Just create an include virtual, (for script) and insert the include onto all of your pages, or preferably if you have a header page include, just copy the code into that – and Voila! As long as you have the TITLE tags on your page, you’re set!
By clicking on a button u will add an icon in the systray, by clicking with right mouse button on it a little menu will appears, the icon that appears in the tray is the icon of ur program. Have fun
This code passes all form variables by creating hidden copies of every form variable that was passed to it. This is great for gathering information over multiples forms (i.e. Order Processing).
Welcome to Ultimate Star Trek Trivia, the most advanced, versatile Star Trek trivia game in the world! Prepare yourself for a rich multimedia experience as you delve into the depths of fandom knowledge and immerse yourself in the most rewarding trivia experience ever created. Over 1,400 questions. Over 400 pictures. Dozens of sound and music clips from the weekly episodes and all nine movies! This program will provide Trekkers with endless hours of enjoyment as they explore the depths of their knowledge of Star Trek. This program was once sold as shareware. But in the spirit of the open source community, the source code and all multimedia content is being released to the public by the author. (Note this is a 5Mb download)
Allows you to create custom menus with icons and a bitmap down the left hand side as seen on some commercial products, The forms are dynamically created at runtime to cut down on memory.
Display a page that allows you to type in a SQL Query statement, and display the results in HTML Table format. The number of field parameters and field names are immaterial. It will display the results in an easy to read format. Great for customer reports. The Code will not allow an Update or Delete query.
Write an e-mail client in no time! BuzMail is an 'overlay' to the MSMAPI controls provided with VB, in the form of a mail 'object' and various functions etc. It allows the user to send and receive e-mails with or without attachments without having to work out how to use the un-user friendly MSMAPI controls.
Here's an update to my post on NT service. I've found the API examples is MSDN to be incorrect. I've tried to fix some of these bugs and make the routines useful. However, the best addition is a Microsoft OCX to make services easy! NTSVC.OCX is included and free to distribute. Take a look at the sample code an decide for yourself. NTSVC finally makes running your app as an NT service easy!!! You may want to read the MSDN articles: "INFO: Running Visual Basic Applications as Windows NT Services" "NT Service: An OLE Control for Creating Windows NT Services in Visual Basic" Here are some links to check out: http://support.microsoft.com/support/kb/articles/Q170/8/83.asp http://support.microsoft.com/support/kb/articles/Q175/9/48.ASP http://msdn.microsoft.com/library/techart/msdn_ntsrvocx.htm http://vbwire.com/advanced/howto/service2.asp http://vbwire.com/advanced/howto/service.asp
Well everybody and their brother already have a post here for FTP calls, but I thought I'd throw in my 2 cents. Basically, I took the WININET.TXT -- WININET API Declarations for Visual Basic file and added wrappers to make things like GetDriectory, PutFile, GetFile, DeleteFile and TouchFile easier to do.
This allows you to fill out and send an Outlook message from script. Uncomment 2 lines to create a sub that can be included in a larger script. Great for admins who routinely send reports. 'T Runstein
Please rate my code!a hit counter that uses a daatabase and autonumber datatype to generate the next number each time your page is visited. You can change the background graphic to one of your own graphics
* Thanks to Paul Mather I improved my lame skills in strings, now the function is MUCH shorter I have created a function that converts C Hex values (Example: 0x0001) to VB Hex values (Example: &H1) with no APIs , just one usefull function. And one things is fixed, in the updated version I put a removing of the all zeros in the hex, now fixed... :-)
This componet will create a really pretty visual layout of any month. It has mouse-over colors and will POST back to itself with date information. I built it to run specific queries based on date ranges, but you could use it for just about anyhting. Plug-in a couple of properties and you're set.
This code displays a nicely formatted one-month calendar. Buttons allow you to jump forward or backward a month or year.
Draws a Multi-Month Calendar populated with events from a database.
This is an chat. No database and no FSO. Have private messages, images, automatic refresh and more. Brasileiros! Este chat é quase igual ao do UOL! The online example: http://www.guarulhos.org/go/chat.asp
This class is used to interpret phone numbers to and from a database in a specific format. The format is 25 characters long and is explaied withing the script.
The main purpose of this article is to show the use of ActiveX controls in your web pages with proper error handling and data updates. In the sample time tracking application I will demonstrate the use of the following. 1. Using ActiveX controls. 2. Client and Server side validations using VBScript. 3. Practical use of formatDateTime function and DateAdd function. 4. Server side browser detection code. 5. Using ADO to connect to popular databases like MS Access and SQL Server. 6. Using ADO to add records. 7. Implementing ADO Error Handling. For Complete description, download the attached zip file which has code and detailed explanation of the techniques used.Please do not forget to rate my code.