Results for "Volume: 2_2002-2004"
This code is a demonstration of a 3-tier application and contains excellent structure and coding practices. It is based on the Microsoft Northwind database. This is a must for any supposed 3-tier serious developers of wanna be developers. Uses COM+ and ADO 2.5 but can be easily changed to run in MTS.
This is the source code for a textbox that has an hDC handle! ***THIS IS NOT A LABEL*** This means that you can paint a picture / skin onto it, thus simulating transparency . . .or whatever you want it to look like. My textbox supports ALMOST EVERY function that a MS-textbox supports . .including selection of text, jumping to words and scrolling. ***PLEASE TAKE A LOOK*** Included in this code-download is also my newest 'low-memory' version of transparent buttons, which is a class-module that automates on-the-fly skinning of command buttons. A MUST SEE!
This code will create an internet shortcut on someone's computer. All you have to do it call it with a path and hyperlink!
As a lot of people asked, I added orientation property. This is a horizontal/vertical slider ActiveX. You can drag the pointer from minimum to maximum positions with your mouse. Or you can click on any visible part of slider to set pointer at this position. Or you can set position programatically. Includes PositionChanged Event. Control can be transparent or opaque. Now you can control the appearance of disabled image. You can configure your slider in the way you like it most. Source codes, readme and demo project included. Enjoy!!!
Allows you to write strings to the Quake 3 console using the Windows API. This is the second version of this code, and the code has been cleaned up a lot, and many comments have been added. This how programs like QIRC show their output in-game with no Q3 code modification. I'm still trying to figure out how to read input from the console. Any help on this would be much appreciated. In the meantime, you can use this code to insert Q3 commands into the console from VB code.
At last!!! Something that nearly matches the great functinallity that macro substitution gives in Visual FoxPro through the & Command... in this case we simulate it using the Microsoft Script Control, which allows you to run VBSCRIPT code through the control's methods, simply passing it code as a string parameter.
This is good for beginners because i have put examples of some loops(Do loop, Do while, For loop) Case statements, If statments (If else, if elseif, else)
This code can be used to shutdown/restart/logoff the windows environment in both win 95/98 and NT/2000. It also detects which platform you are running on. Other code posted here does not shutdown NT/2000 as it does not give the user the correct privileges. This code does. I can not take the credit for this code though as I found it on the MSDN disks.
This is just some various RunDLL32 calls to do system functions, this may be my first addition to PSC but by far not my best, Keep an eye out for more.
Shows how to use MCI API to play AVI Video Files, give it a look (and vote for me?). Enjoy it!
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.
Ever forget an API call, and have to find out what it is, and tinker with it for a looonnng time before you can ever get it to work? Well now you can just add this OCX to your project and API is a breeze! All you have to do is add this to your project (Ctrl + T, then press browse and select my .OCX file and it will become one of your tools to pick from) then you type something like this in the code: CompControl1.ShutDown (this shuts down windows!!!) This OCX includes API for: ShutDown, Restart, LogOff, TaskBarHide, TasksBarShow ,ScreenSaverOn ,ScreenSaverOff, DesktopIconsHide, DesktopIconsShow, ALT-CTRL-DEL Enabled, ALT-CTRL-DEL Disabled, OpenCDROM, EmptRecycle, MinimizeAl, OpenExplore, FindFiles, OpenInternetBrowser, InternetConnect, InternetDiconnect, SendEmai, Add_Remove, Add_HardWare, Time_Date_Settings, Regional_Settings, Display_Settings, Internet_Settings, Keyboard_Settings, Modem_Settings, Mouse_Settings, System_Settings, Network_Settings, Password_Settings, Sounds_Settings, Copy_File , Delete_File, Move_File, FlipMouseButtons and More! could also be easily changed into a module for your project! If you like it please vote!
All-in-one client server example using Winsock's TCP/IP.
CHECK THIS OUT! This is a really cool effect. Stand in the middle of a 3D world and use the mouse to rotate the camera around. All running at over 60 frames per second!!! The pictures look beautiful (thanks to Craig Nisbet - it's his artwork, but my programming). How is such a high res 3D image made to run at 60 FPS in VB? Well, I cheated ofcourse! I just used a cylinder and wrapped and image round it, then put the camera in the centre of this cylinder. But the effect looks just the same as if I were using the best quality 3D graphics using thousands of polys! You really can't see the difference. Plus, like my last submission it has the advantage of compression - why use a huge 3D file when you can just use a jpeg? This demo also features both hardware and software rendering, (BTW software = very slow) and adjustable rendering quality. There will be many more features added but I won't be able to release the source code of the final version, sorry. I hope that you agree that this deserves a decent vote, if not then please tell me why not so I can improve the program. Enjoy!
IRCFileTool is a complete application that scans IRC for offer bots and the files they are offering. It lists them all and lets the user download them. At it's core is a Winsock control handling an IRC connection complete with DCC sends. It could easily be modified to function as an IRC bot.
Explains on How to Flip Images to 270 Degrees
Source Code Routine Add In's A Visual Basic add-in which provides 2 functions. Both functions scan the current code module and build a list of routine names. From this list you can select the routine on which the function is to be performed. The first function will add comments at the beginning of the selected routines- including lines for parameters and return value descriptions. The second function will add basic error checking to the selected routines. Note that for this function, the routine list will only include routines which do not already contain some type of error checking. Various bug fixes made: 27/10/2000
Comments and adds error handling to your projects
This calculates the average time taken for a progressbar to get to its current percentage and calculates how much time it will take for the progressbar to reach 100%
Code Library will save and/or recall frequently used pieces of text/code. Files can be opened simply by clicking on them in the file listbox. Lots of other features that can be used in other projects. Updated October 2000