Results for "Category: Miscellaneous"
--IsInIDE() --It'll return true if running in IDE
Remember the old one page module to load Browse For Folder!? This code makes it in four or five lines :) Just a reference to shell32.dll class: dim SH as New Shell and that's all. In fact, shell32.dll supports many functions. I have included some of them such as tiling and cascading windows and running System Properties, getting folder details and.... Download the source code to see how and if you liked it please remember to leave comments and vote! I developed this yesterday on my XP. If you have any idea, I'll be glad to know. Update Note: I checked compatibility. This is supported in Win 98 etc.
I got bored so I wrote this clock.
This is more for a programmer's tool then anything else. It allows you to select a window on screen with the mouse using a cursor and a smaller image representing that cursor on the dialog (which disappears when you click on it and drag it, reappearing when you make a selection)
Creates a list of files in a directory, something explorer does not allow you to do. List can then be printed or saved to a text file. Drag n Drop enabled!
This code adds Register and Unregister capabilities to the right click context menu. Whenever you click on a DLL or OCX you will be able to unregister or register it easily. No more going to the command prompt to register those DLL's. This INF file imports keys into your registry. Make sure you back up your registry, for safe measure. To install just right click and select Install. Brought to you by D & M
I needed a *good* auto resizer to minimize the time spent on resize code. I tried a few auto resizers, but none of them worked the way I wanted. So, I threw together this little piece of code. Unlike other resizers making assumptions on how to resize your controls, this code makes no assumptions. You the programmer are in total control of the resize behavior of each control on the form. IMPORTANT NOTES BELOW!
Easily log events. Log errors by passing the ERR object.
Creating New Controls At Runtime useful for creating a front end to Vb6 or a programming like the D++ Programming one.
This will add an ADDITIONL button in the ControlBox (beside the the Minmize, Maximize, and Close buttons).
This is an example of how to scroll a form vertically. It also resizes the controls and moves through the form if the focus is on an unseen control (textboxes in this example).
Theres a code on PSC that says the best stable multithreading in vb6 is done with activex. I say thats the worst advice I've ever heard. This is one of my solutions.
Use the ThreadingAPI type library to safely CreateProcess in vb6. by Matthew Curland
You can make your programs look like true Windows XP programs by adding files called "manifest" files to them. This program provides an easy way to make those files for all of your applications. It includes usage notes on limitations that the manifest files have on them. If you like the code, vote for me please!
The focus of my article is to demystify the printer object and present it as a magnificient object, which can be used to churn out dashing printouts without the support of any third party reporting tool.
This code is designed to send messages to any alphanumeric pager where the paging service supports TAP v1.8
Detect what key you pressed, shows its keycode detects if Numlock,Scroll Lock, Caps Lock and Insert are active or inactive. I did that using API. I also putted buttons so you can open or close your CD
This project contains alot of functions/subs created by T-Virus Creations. NOT commented but ready for use (Most of the stuff is explained at top of Module or Sub/Function. Please, don't forget to rate this!!
I've tried a lot of different multiple undo examples from the Inet, but every had at least one draw back. So I had to write my on solution and I think this one is quite smart. If you want to use it, you don't have to clutter your code by pasting in lots of undo-related subs, functions and variables. Everything comes within two handy class files and you only need to add three lines of code to your VB projects. -- I didn't test the code on VB5.0, would be cool if anybody can give a feedback on that. -- NEW: a single undoitem now stores only the modifications and not the whole text --> that is important when working with bigger files. -- NEW: now you can turn off the automatical tracking of text changes --> may be useful on automated text operations. -- NEW: Speed improvements. New properties getUndoCount and getRedoCount. Now you can undo/redo multiple changes with one function call. -- Thanks to MrBobo for his ideas and suggestions. -- -- Have a look at the latest version supporting standard textboxes too: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=34335&lngWId=1
This is an advanced version of my last month's submission. Now supports richtextboxes AND textboxes. You still only need to add two class files and a few lines of code to your VB project to add the multiple undo feature to any richtextbox or textbox. For more information read the readme.txt included in the zip file, please. -- Again, thanks to MrBobo for his ideas and suggestions. -- NEW: Time and Type (deletion, modification, addition)of an undo snapshot is tracked. Thanks to Andrea Moro for this idea.