Results for "Category: Miscellaneous"
This code will read the active titlebar height and font parameters. The Caption of the window is then centered with the date and time. I looked long and hard to try to do this. Most PC's don't use a proportional font for the titlebar and thus the amount of characters displayed depend on the size of the character (i.e. "WWWWWWWWWW" is wider than "llllllllll" in most non-proportional fonts). I found some info on the web and modified it to allow the caption to be centered in the area between the titlebar bitmap and the 3 controlboxes. The Titlebar size and the titlebar font & size can be different from machine to machine. These settings affect how much data can be displayed in the caption of the window, as does the screen resolution. I had originally tried constants based on the form width, but these were not 100%. Try changing the form size and the active title bar settings to see it in operation.
Using Class Modules to shuffle the deck of cards 10 times to insure they are thoroughly shuffled this shuffle example is great for those looking to make a card game as a test project, code submittal for here or other various code submittal areas... You can use these modules freely all i am asking is for 2 seconds of your time to just simply scroll down once you are ready to download this example and simply click on that cute little vote button. This example holds so many oppurtunities for you guys to explore.
Just a small program to show how to show a screen saver in a picture box from within VB. Also has some other usefull functions. This is just a small program I was playing with. It is not complete and I don't know if it would be usefull to anyone, but I thought I would upload it anyway.
I wrote this code inorder to identify our servers that were connected to a KVM switch. A KVM switch allows you to connect multiple computers to a single keyboard, monitor, and mouse. When switching from one server to another, I found it difficult to discern which server I was using. So the DogTag program goes to the registy and gets the computer name. Then it displays the computer name in the upper right corner of the screen. DogTag is designed to use the color of the desktop to make it seem like the name is part of the background.
This example shows how to implement multiple command line arguments or switches. The arguments passed to the application are shown in a listbox on the screen. Help is provided on how to run the program with arguments in VB. Use arguments ion the form "-h -c-t" (without the quotes)
Hello, this example shows you show to view powerpoint (.ppt) files inside your vb project. You can also change the file and change some viewing options. Every line is commented. please vote! Thanks hope this help, Matt!!
I got bored so I wrote this clock.
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!
Cool looking status/progress bar, slightly modified from user control found on PSC. I only modified code, I take no credit.
Gives your Forms a professional touch! With magnetic(automatically docking) Forms. If your using Winamp, you know what I mean. Just move a Winamp window around the screen and it will magnetically snap on the screen border. My Code will not only give you this feature while moving the Forms. Even while resizing! This Code is VERY easy to use. The new Version now doesn't move the Forms manually. This makes it faste on old PCs and Win9x! You just have to see it(PLEASE VOTE FOR IT, too)!
This is just a small example that will show you how to (1)Minimize your form and make it dissapear. (2)Place your forms icon in the systray (3)have a popup menu that re-opens the form etc,There is probaly a million codes out there for this sort of thing but i thought i might as well share mine with you.
This is an UPDATE of my last URL Launcher. This code will launch a website by right clicking on the IExplorer icon from the Win98 quick launch taskbar. The choose Launch URL and the rest is easy. I have made it so you can clear the saved url's. Also if you enter a blank url and hit enter this will act as a cancle and close the program. The autocomplete of the url's now works and saves them to a txt file. You can also clear the saved url's by clicking clear url's from the list in the combobox. You MUST compile this project into "c:\windows\browsefrom.exe" The RegKey.reg file got deleted by planet source code so I saved it into a .txt file. open the RegKey.txt file and save it As RegKey.reg and then merge it into your registry. If you do not merge the RegKey into the registry this program will NOT work. If anyone has any questions feel free to email me at [email protected] and PLEASE VOTE.
Rename a file or a directory in VB just in one line of code
These codes produce 3d effects on any form or picturebox. The Etched3D and Raised3D subs produce either a raised line or an etched line around the picture box. The SunckePanel3D and the RaisedPanel3D subs produce a raised or lowered effect on the entire form or picturebox. These look great in your bas.
Clears the documents menu in Windows 95/98/NT.
This is a neat little Sub that will Cause a Pause or "Time Out" in your program.
This will Center your form on your screen. It will also higher it a tiny bit, so it looks centered above the TaskBar.
' Creates a color bar background for a ListView when in ' report mode. Passing the listview and picturebox allows ' you to use this with more than one control. You can also ' change the colors used for each by passing new RGB color ' values in the optional color parameters.
Taken from Windows Magazine August 1999 Agent is Microsoft's name for the technology that puts those "cute" cartoon characters on the screen while running any Microsoft Office application. This technoloty will be a standard feature of Windows 2000, but you can also add it to Windows 98 or Windows 95 viea a free download at "HTTP://msdn.microsoft.com/workshop/imedia/agent/agentdl.asp" Once you install this update, you can use these characters in your applications, including macros!
This is, I think, the easiest way to center a form. It is the way reccomended by Microsoft and Microsoft Press. Just stick it into your form_load.