Results for "Volume: ASP_Volume2"
A PinBall Demo by Robert Rayment. UPDATED for XP, wayward pixels killed, scoring and ball capture improved. See notes in the Form. Zip file 116 Kb.
Source code for a program that will insert binary or ascii files into an executable or any file really. Also generates [VB] code to extract the file.
its an all purpose visual basic .bas file. it contains about 140 subs/functions. its awesome. i've poured my heart out into this .bas file. you can at least check it out and give me some feedback on what i need and what you think.
your text moves around an electronical neon board you can set: Left or Right moving direction / picture of pixels (On & Off) / speed (moving step and time interval) / board size And Text
This is quite possibly the smallest application you can write in VB that actually serves a purpose. You get 2 for the price of one here in this zip file and both do the same thing only in different ways. The first program in the module only directory toggles the desktop Icon text Background from it's default color to transparent, and back to normal. I have it in my start up directory so it will run every time windows starts. In my opinion it should be built into windows and this shows how easy it would be. This will also show you how to create a complete application with only a module (no forms needed). A Little side note is something quite weird I ran into with this: The exact same program written in C++ is actually twice the size in executable file size... hmm... Let me know what you think. One other thing is that active desktop has to be turned off. To do this (R)click the desktop choose the web tab and un-check active desktop.
Calendar user control - lightweight and simple to use - full source code included
This is an example based on the technique of using ActiveX EXE components to multithread. This code shows how to multithread without the need of a form and timer control, and also without the need of events (which are slow and no good when you want to thread a dynamic number of objects. The trick is to implement an interface). This example code is programmed in a very short amount of time, so have understanding if you find the it a bit sloppy. I think that I don't lie when I say that you will have a hard time finding a VB multithread example (that actually works) with fewer lines of code!! Instructions: Compile the ThreadServer project. Open the "Client" project, add a reference to the "threadServer" COM object and run the client. -Good luck
Ever wanted to see a picture behind flexgrid text (not a single cellpicture!)? This project is a little part of my custom grid control. Picture idea was given by a questioner Experts-Exchange site. Please let me know your ideas and let me know if you want to have a more flexible FlexGrid control code. Enjoy. Suat Ozgur
Blocks ads, cookies and popups
There are three major ways to implement a sleep in VB. 1. Set a timer and exit, let the timer restart you. This can involve setting up a little "state machine" that knows where to come back in. It is not difficult, just a hassle. A Select/Case/End Select is all that is needed, usually but requires some documentation about which section to put code in if changes are needed. It runs "enabled" so events are recognized. 2. Do a "busy loop" (do loop) which watches the clock and also does a DoEvents (optional) and exits on time passed. This also runs "enabled". 3. Call the Sleep API (Declare Sub Sleep Lib "kernel32.dll" (ByVal dwMilliseconds As Long)) This runs "disabled" for events. The problem with the first one is the requirement of a state machine and documentation, the problem with the second one is that you burn CPU cycles that might be best used elsewhere (the CPU will be 100% busy forever), the problem with the third one is responsiveness of the application -- the app will not respond to anything while waiting for the API to release it back to the run queue. Here is a compromise using the third method. I have just tested this and found it to be very efficient on a P500. The program has been running for 16 minutes and has not used 1 second of CPU time yet. That includes doing the I/Os (223 so far) to the networked disk to check for files. It uses the Sleep API but in very small increments of 100 msec per call. The DoEvents used to be needed to let other apps run. Now it is needed to let events happen inside your own app. You get access to the app 10 times a second and the CPU utilization is very low. For my application (checking for a file on a networked disk and doing something with it), it is excellent in all respects. I have not tested this in an application where you would be waiting for messages in a time critical situation.
This will teach you things about: Variables, Operators, Conditional Statements, and Combo/List Boxes It will show you how to make a small game in VB. If you like it or it helps you, then vote for it!
Creating bar and line charts is fairly well documented on the MSDN CD, but 2D XY (what I call XY scatter graphs) are not. This example demonstrates a method to not only create 2D XY graphs, but also plot multiple series on the same chart. The things that need to be done are pretty esoteric, including using multiple DataGrid columns for each series, removing null points from one or more series, etc., which makes this kind of graph very unique. This example also illustrates some other properties and methods that can be useful for other types of charts.
A valuable tool in your programming toolkit. Use this routine for when an Access table goes bad. Often when this happens conventional INSERT or APPEND queries or cut/paste techniques don't work for backing up your table. This is a routine for copying data from one table to another table, field by field. As the information is processed, bad data fields are skipped over and logged in a log file. Only good data is deposited in the target table. **re-uploaded/Corrected II**
A very annoying joke, but this is a totally different type of a fake virus joke that I've found on this site. This one has everything from shutdown, flip windows, scroll windows, stretch windows, disable ctrl alt del, a very funny way to open close CD Door and much more, just check it out. Good one to scare and annoy newbies. It’s worth a try.
Extreme Mind is a game where the user tries to figure out a random code created by the computer. This board game is based on a game I played as a child called Mastermind. I have seen a couple attempts to re-create this game (on PSC) for the computer but I personally didn't like any of the ones I found, so I wrote my own, and I give it to you. Please, Please, Please Vote and leave as many comments as possible because I have only been programming since March 2001 and using VB since July 2001, so the more comments the better. Some interesting things in this code are: -Generating random numbers with no duplicates -Scanning the user's code for duplicates -Using Random Access Data Files -Remembering settings -Checking the user's code (pretty involved) -Image swapping -Using Sounds -Sending an .html file to the default browser And much much more...
Storm is a remote admin tool similar to sub7. it has many features and i plan on adding more very soon! please vot if you like it!
Adapted from AutoBackup submited by Alexandre Moro. Backs up or copies data from your PC to the destination of you choice. This version creates the entire directory structure on destination, rechecks items for just before backup for any changes, Loads with windows, customizable destination directory name (e.g. F:\My Projects - 09-18-2001) To mention a few...
Remote Local Host Name & modSysTrayIcon Bugs Fixed. And Added some Options; "Closing Internet Connection, Attacker log saves, ShutDown Computer, Flood for Acctackers) Good Firewall I think. Look it & Test it...
Perform triangulation on a set of 'N' points. I couldn't find any VB Code to do this, so I converted a Fortran 77 program written by Paul Bourke. This is my first ever submission to PSC, please be nice. :)
** Release 3 ** New cTREEVIEW features: Flat border; IsChildNode; CopyNode with cancel option; Cut Icon state. ADO example supporting: Load on demand; Find First/ Next/ Previous; Label Edit; Drag'n'Drop; Node & TreeView context menus; node specific Open/Closed/Drag icons. ADO Example now supports: New Nodes/Records can be added; copy treeview node(s); Cut/Copy/Paste through right-click context menu; and functions are now benchmarked with results displayed. ** Release 2 ** cTREEVIEW class features: Scroll treeview Up/ Down/ PageUp/ PageDown/ Home/ End using code; Dragging with auto-scrolling (not supported by Microsoft in the TreeView control); NodeFirstViewable; & NodeLastViewable. ADO Example fixes: Find Next/Previous didn't work if branches already loaded. cTREEVIEW class fixes: correct node drag icon displayed. cTreeview features include: fast clear a treeview; extended Add/Rename/Delete nodes; copy & move nodes through code &/or Drag'n'Drop including parent nodes onto child nodes (not normally possible!); find node using text and (optionally) key properties; check if a node is a parent of another; checks if a node is a root node; a safe get parent node text; right-click context menu (before/after click event); collapse/expand all nodes; collape/expand all child nodes; enable/disable redraw. This example shows how to:- work with multiple tables of data and load data on demand. As a bonus, I've included cDB class that encapsulates working with an Access Database using ADO. All code is heavily commented. If there are any routines that you feel are missing or code/bug-fixes that you wish to contribute, then please let me know and I'll add them in. *** Latest version can be found here:- http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=37553&lngWId=1 ***