Results for "Volume: 2002C"
Demonstrates the use of the Windows API's to open a browse folder dialog box and select a folder. Code is in a module you can import into your projects. Well documented code for the beginner to follow.
Demonstrates the use of recursion to retreive the files in a folder. Code is in two mudules...one demonstrates the Windows API's to open a browse folder dialog box to select a folder, the other contains the code to list all of the files in the directory selected, including files in all subfolders. Code is well documented.
This project recursively lists all files that are read-only under the folder(s) you select. You can then click a button to remove the read-only attribute from the files listed. Great utility if you use rewritable CD's for data storage. Drag the files back onto your hard drive, run this tool on them and you can edit them again. Code is in two modules which 1)uses the Windows API's to open a browse folder dialog box, and 2)contains the code recurse the folder selected to list the read-only files and change the file attribute. Code is well documented.
An easy way to learn how to use the windows api and see how to make simple graphs that map out the percentage of your laptop battery. Email ms2programmer@yahoo.com with your comments, ideas, or bug fixes please, thanks, enjoy.
Explode the form.Zoom in and Zoom out the form
Finds all Pythagorean Triples given in a specific range.
This code allows you to display PNG images within your programs with full 32 bit color (that is, 24 bit color with 8 bit alpha transparency). This will allow you to use "antialiased" images in your programs, making your graphics blend in to the interface perfectly, no matter what color the user has chosen for their interface. Code by Thomas Kabir (www.VBFrood.de). Posted here with permission.
A PinBall Demo by Robert Rayment. UPDATED 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!
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.