Results for "Volume: 6_2008-2009"
I created this project with VS 2005 so more programmers can use it. It will work in VS 2008 as I first did it with 2008. It uses Microsoft 2007 database driver and a user friendly interface (Explore type UI). This project is also well (if not overly) commented. With this project you will learn how to: • Hard code most procedures • Use a class object (as in Object Oriented Programming (OOP) and • Connect to a Microsoft database using ADO.Net. As for using it in a real world application it shows how to • Login into a system • Set global variables used throughout the system • If not successfully logged in, it will lock the user out of the system until the SA resets the user’s account • Allow the user to change his/her password • If the user account is system defined disable the ability to delete the account • As well as create and update an account. There is a lot of good stuff or examples for any level programmer. I have spent some time on coding, testing and commenting and would like the project to be rated. Happy programming. Login Information: User Code: ADMIN Password: admin User Code: GUEST Password: password User Code: LWESTJ Password: password
I modified some database paging code I found on Planet Source Code so that it was a little more straight forward. Included is a sample code file and a sample MS Access 2000 database. Paging allows you to display a specific number of records from a database at a time. For example, if you have 1000 records, you can allow it to display 10 records at a time so you don't have a huge page display. If you're smart, you can add sorting features like the ability to display records starting with 'A' only, but this will get you started.
Authenticates a user to make sure if they have previously logged into the site. Requires Session("UserID") to be populated. This usually represents the Users ID within a data base. (Users.UserID) If a user is not loged in, they are redirected to a page to attempt a login. This is useful when the ability to "Auto-Login" has been enabled to use previously saved login information in the users cookies. When a user is redirected to the login page, The URL they were attempting to view is passed along in the Query String along with the reason why they need to login. If the user was posting data to the protected page (perhaps a session timed out), then the previous page they were posting from is sent as the URL that the user is redirected to after they have successfully logged in. This is done to help reduce errors when visiting a page that expected posted form data.
Allows you to upload multiple files and fields without purchasing or registering COM objects. Great for shared hosts that frown upon 3rd Party com objects or charge an arm and a leg for them. This version uses Classes rather then the dictionary object that I have seem most other people use. Dictionary Objects seem to be flakey with more problems. I have added examples of how to upload a file to a database and the file system. A file is also included that retreives the file from the database.
To have a completely functional Guestbook on your website, MINUS the difficulty of a database.
hi!this is my first submit finely i think i can put something usefull for other users. this code read the keyboard language from another application all you need is to send the handle of the thread window.
This simulates a tab control in pure DHTML, using cascading stylesheets and VBScript to do the job. Mind you the VBScript code can easily be changed to JavaScript. With this, you can develop your own web application without haveing to use an Active-X control.
UPDATED- I added comments to the code. This program uses the sysinfo control to monitor battery use on a laptop. The screenshot say more than I can type here. I would ask that if anyone knows how to show the info for 2 batteries, I would appreciate an email with how... Thanks
Make dice animation with api, nice and powerfull i have include the images.Have fun :) Add many dice as you want,animation is done with 3D software. Please visit my new web site and see what you can do ! VB power !!! come and chat with me http://www.virtualgamer.t2u.com
This is a drawn out example of reading and writing with the FileScriptingObject. This is similar to copying a file, but allows rewriting specific line(s). It's intentionally overdone so that you can delete what you don't want. Includes extensive error handling. I've included lots of comments for newbies. 'T Runstein
This kind of code has never been posted before it is a 2D Map engine same as StarCraft !!!! maybe better! ENJOY IT !! im the owner of this engine. NEED DIRECTX 7 ( tested with vb 6 ) verry powerfull make Map big as the world and keep it powerfull REAL TIME ENGINE !!! Please visit my new web site and see what you can do VB power !!!come and chat with me http://www.virtualgamer.t2u.com
Add search to your site using a database.
The scope of this code is to allow the client to select a image on their harddrive and preview it before they submit it to your server, this source uses memory streams and swaps image objects and byte arrays back and forth to resize the image to a standard previewable size while the original image stays unchanged so you can store it. You can store the image to a database with related user data input or just save the image to a directory when the client does their final submit. Comments and suggestions are welcome, I have found this to be the easiest way to make this happen as IE7 does not allow you to load images from the users harddrive to the browser with client-side script. Please share if you have another way to do this in VB.NET
alphaSpy is a fantastic program that finds the color of anything you put your cursor over. if you are browsing a web page or see a program with a color you like, put the mouse pointer over it and it will tell you the colors code in decimal form, hex form, rgb form, vb color form, qbasic color form, the color's r,g, and b value, and many more. view the screen shot to get a better idea of what this program is and to also see the great interface. i would greatly apreciate feedback because i am new to planet source code.
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 demonstrates how to run a console application as a hidden process. The application in this case is a chess engine, and through the use of regular expressions, the output is dissected line by line and the individual parts of the data stream are captured and parsed accordingly.
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).