Results for "Category: Miscellaneous"
With this code you can retrieve information about your connection(LAN,PPP,etc) like connection speed,MTU,Bytes sent/receive and many more. ATTN:This code is NOT mine so please DO NOT vote for me.It was given to me as an answer to a question of mine in a forum and I thought it'd be very usefull to people.Enjoy
Ever wanted to make the butt ugly block of colour behind desktop icon's text disappear through code? well, now you can! I searched the net hi and low for VB code to do this but to no avail, so I wrote this. To my knowledge it's the FIRST EVER VB code for this, so check it out. It's only been tested on Win 9x & Win ME. Take a peek at my site at http://www.em.f2s.com if you like this code. Hope you learn something =)
Let's see what I have... You can use my functions to display the Change Icon Dialog, just like in the shortcut properties (Updated: NOW WORKS!). You can check if a file has an executable extension. You can show the Exit Windows MsgBox ("You must restart for the changes to go to bed"). And you can show the Run Dialog (see screen shot).
The program changes your Screen of Death color theme. When I wrote this program, my main intentions weren't to create a program that changes the color theme - they were to find out how the console API functions work, and how to build an owner-drawn combo-box... The Screen of Death color changer was just the result. =) You can see both the owner-drawn combo boxes and the console window, in the included screen shot.
You can pause execution of code for the specified duration. Different from "Sleep" api in that it will not lock up the whole program.
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 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 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 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 alows you to add a very simple progress bar to a form, you could also edit it to make it realy useful
These codes fade a Label ForeColor from Black to Red, Blue, or Green. They were written to be used on a Splash Screen. I used them on my Splash Screen and it works pretty good I like it...
Fast Bit-shifting Class Demo (Update + ASM files)by Robert Rayment. Thanks to David Fritts for highlighting this method on PSC (CodeId=45885). I've corrected the assembler and Ulli has recast it in his own inimitable style with some explanations. In fact the method is the self-same as that used by Dmitry (CodeId=11830) a few years ago. The main point is that, when comparing fast EXEs, this bitshifting class is over 10 times quicker than the standard VB way using functions of the form 2^p. This description is extended in Notes.txt.
A386 machine code collection by Robert Rayment. 1. Simple examples 2. Fractals. 3. PicBox1 4. PicBox2. All using the A386 assembler. Win 98, Zip 173 KB
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))
This code is simply to illustrate the mathematical operations necessary to draw a circle. Of course I realize VB has built in functions for this, but thought this might be useful for some to understand. In my example, I use a picture box with the PSet method to do the drawing.
I always thought 0's and 1's were cool as a background to web pages or in the credits to the movie "Ghost in the Shell". I found a way to actually make your binary numbers mean something instead of trying to make a lot of random binary numbers on your own. This program looks as the Ascii value (0 - 255) of a character and determines an 8 digit binary number that the number equals to in binary language. It also converts binary language back into strings so you can send binary messages to and from your friends if your really up for it. Take note - A binary text message will be 8 times larger then a regular message. Download: This zip file comes with the executable and the source code. Hopefully it is all self explanitory. This is only the executable itself and does not include the run time dll's. You may need to download a visual basic 6.0 virtual machine.
Displays a path to navigate through each subdirectory in the path to your web page. This is called bread crumb navigation. Many sites use this with the words You Are Here. It is suggested that you do not use this type of navigation alone.
Present a concise, easy-to-understand, and easy-to-use method of binary encryption. It could easily be taken and twisted into something more complex and harder to crack.
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.
This shows how the richtext of one richtextbox control can be inserted into another without losing any of its formatting.