Results for "Category: Miscellaneous"
This code demonstrates how you can create a virtual keyboard that can be toggled on or off for data entry purposes, could be of use in game/application software. I hope it proves to be of some use, votes and comments welcomed but not expected.
This code captures an entire DOS-Prompt window into a picture box control on your form, allowing the command prompt to be a part of your project. This code can be altered to give this functionality to virtually any external program. Note: This code is being re-posted, as I have now got a new account with PSC and I have yet to upload all of my code again.
This code demonstrates how to cycle programs in your systray for ease of launching, it provides a system tray icon which cycles/changes when right clicked, the associated program can then be launched when the user left clicks the tray icon.
This code demonstrates how to place an icon into the system tray and then make text dynamically scroll across the icon in ticker tape fashion right in the system tray next to your clock.
This code alows you to add a very simple progress bar to a form, you could also edit it to make it realy useful
Machine code & Picture Box Games by Robert Rayment: This shows some more demonstrations of machine code and picture boxes. Mixing, Blending, Greying, Scrolling, Color cycling, Shimmering, Darkening, Brightening and Rotating. All code fully commented - good fun!
Machine code: Demonstrates the use of machine code in VB using CallWindowProc (as put forward by Ulli). 7 pieces of code ending with code equivalent to the API CopyMemory. I've added some notes on using MASM32 as suggested by respondents. NB See later submissions for use of the freeware assembler NASM.
Shows how to comment or uncomment a block of code.
VB, Assembler & Resource files by Robert Rayment (see small update below) Only those interested in this topic should download these files. If you have been following some of the VB+assembler progs I've been putting on PSC you may have noticed that the assembly part is either in a bin file (com in earlier examples) or in a DLL. The disadvantage of both these is that they need to be in the same folder as the prog. This is OK for testing but is a nuisance for an EXE. Also we're usually talking about small bits of assembler to beef up parts of VB (Heineken approach). The DLL may be specific and so is not appropriate to register. Assembled snippets are often much faster than VB. Also, once you've got over the red-tape and peculiarities of the particular assembler, its often _easier_ (this may be a secret so don't tell anyone) A DLL has a minimum size of 16KB and a bin file 4KB (cluster size). What this submission shows is how to put your assembler code into a resource file which gets incorporated into an EXE freeing it from associations and only taking a few more bytes than the bin file size. A 32-bit Hex/Long integer/Binary converter is developed to demonstrate these techniques. The zip file is ~11KB. UPDATE: it is possible to simplify the load from res by InCode = LoadResData(101, "CUSTOM") lpMCode = VarPtr(InCode(0)) avoiding the save to disc. Make sure to delete the line lpMCode = VarPtr(InCode(1))
Basic unit converter - converts imperial measures to metric measures. One of my very first programs written in VB :).
To show how to use logical comparisons in VB. Shows the different symbols for the logic gates[heh, drawn by me...]. Also allows you to see the truth tables. Covers Or, And, Xor, Nor, Nand, and Xnor logic.
This lesson will show you how to launch the screensaver with code. It's very simple and only takes a couple of lines of code to accomplish. The first part goes in a module.
dails phone numbers to detect a carrier, great for looking for tollfree internet dailup numbers or other computers that pick up the phone. Can also send files over connection.
Explains dragging and dropping of controls. It shows how to accurately find drop spots and is fully commented and very concise. If you have any trouble whatsoever, feel free to email me and I'll respond as quickly as possible. Enjoy this drag and drop tutorial.
Opens programs located in the Windows Control Panel
This is basically a program for sending E-mails, great code if you want to learn Winsock as it is fully commented. The emails show up as being from whatever you type in. Hope this is helpful. Any feedback as in comments, suggestions, deaththreats, marriage proposals will be greatly appreciated. Thanks...
This is a very simple program. It simply shows beginners how to browse through files on your computer without the comdlg32.ocx control (it gets somewhat annoying to use this control on every application and then having to include it in a zip file if you're sending it to your friends). It's nothing that took me a long time to do, maybe a minute, but it might be useful to someone. Oh yeah, and this only uses the standard VB controls, no additional Active X controls
This code is the easiest clock ever... The code doesnt get any easier. If you like it vote for it.
RGB and VB color coder has 3 ways of picking colors (scrollbars, slider bars, and common dialog colors). After picking a color it shows the RGB color code, the VB color code, and the color example... Not hard...
This little module is for use with the yahoo messenger client. It has some pretty good stuff in it. So download it and check it out. This was only a 20-30 min job at max, and there will be more versions of the module.