Results for "Volume: 2002C"
This is a demo program showing how someone could make a lemmings type game. This code uses bitblt with regular timers and is quite slow (because of regular timers). Check out the other version I will post with ccrp timers. Note: I do not have any affiliation with the creators of the game Lemmings, nor is this program complete, I just made it for fun.
This is a demo program showing how someone could make a lemmings type game. This code uses bitblt with high resolution timers and is quite fast. Note: I do not have any affiliation with the creators of the game Lemmings, nor is this program complete, I just made it for fun. CCRP Timers are included.
Sorts Integer Values really fast. on my 800mhz compu it sorts 100 000 values in 0.109 seconds...
This is an add-in that I wrote for VB6 when it was first released. The wizard creates a Message Box or Input box and lets you fully select the parameters for your box. See the zip file for the complete project to compile the DLL. Once complied, register the the DLL. Close VB and reopen VB. Go to Add-Ins and open the Add-In manager and check Loaded/Unloaded and Load on Startup. Close the Add-In Manager and the Wizard should be listed on your Add-ins list. There is an included document "MsgWiz.rtf" that explains how to use the program. I originaly released this as shareware and still has a crude copyguard contained within it. To register the wizard to get rid of the nag screen, the code is KXP4410. If you would like to register the code, the information is on the Help/About screen.
OK well all know that the webbrowser control can display animated GIFs? But you really dont want to use that because of that ugly scrollbar on the side, or what about the top and left margins? This gets rid of those 3 annoying things. What you are doing in this is typing direct HTML into the webbrowser control, instead of directly pointing it to the image. With this you can set margins or scrollbar visability.
A simple Tic Tac Toe game that allows you to play against the CPU. This Tic Tac Toe is different from others because the CPU 'learns' from its mistakes and will get smarter as you play more games with it. what makes the CPU 'smart' is actually a weight system which the CPU determines its best move by looking into history of games and determine which move would result in the lowest probability of losing. All the moves are stored in a history file and is loaded whenever the program starts. Initially when the history file is empty, the CPU is really dumb, but each time you win it, it will get smarter. The initial history file included has all possible winning moves played out, so basically you cannot win the CPU no matter how hard you try. If you let CPU move first, it might win you if you are not careful! This is because the moves the CPU make is also derived from the move history, it choses the moves that yield the best winning chance. It will actually set traps to trap you if you are not careful! To make the CPU dumb again, just delete the "movhis.txt" file. You can choose to go first or let the CPU go first. but the CPU only 'learns' when it is allowed to start second. The learning process might be a bit weird as the CPU will lose to the same tactic a few times, this is due to the weight decision process, but basically if you train it enough times, it will not lose again. I rate this as a begineer because I only have less than 6 months VB programming experience. 3 months to be precise! Hopefully it will fit in to this category. Comments and feedbacks are welcome. And Please rate my work!
This code snippet will show you how you can convert an ADO recordset to a delimited text file in just a couple lines of code using the ADO GetString Method. You can easily export a recordset to a csv file using this method.
Windows XP ships with Common Controls version 5 and version 6. By default all windows apps use version 5. In order to force your app to use version 6 your application must have a manifest. It must also correctly call InitCommonControls(). A manifest is a text file with an xml script similar to this: ------------------------------------------------------------------------------ Your App Description ------------------------------------------------------------------------------ If your application is called 'MyApp.exe' then in the same directory you must have a manifest file called 'MyApp.exe.manifest' otherwise WinXP will use common controls v5. Instead of having a seperate manifest file, this project inserts the manifest into the executable file, and therefore, safeguards the manifest file from deletion or corruption.
cEdit is a code editor written in Visual Basic. It has many of the features of similiar shareware apps. It's designed to provide a base for those interested in producing a similiar code editor. This will be the last cEdit 4, and the next release will be in delphi. This version has bug fixes, got rid of the color window which I felt was unnecisary, and just a few minor changes here and there.
This has got to be the easiest way to have a splitter on an MDI form. See ScreenShot. Please leave comments and/or vote.
This has got to be the easiest way to resize a borderless form (borderstyle=0) and move a form without a titlebar!!! NO API!!! Please comment/vote.
Add editing capability for MSHflexgrid for the novice programmers, NO API calls just simple textbox position manipulation, very easy to understand, wish i had this when i was starting :)
TabIndexManager (*array of controls bug fixed*) is a add-in for Visual Basic IDE that control the TabIndex property of the controls in the selected form. *A MUST SEE CODE !!!* ..... Special thanks to my friend Marcelo Ivan Martin. ................................................................................................................................................. *** PLEASE DON´T FORGET TO VOTE ! ***
Create Shape Statement For Master/Detail Form In Visual Basic.I Made This "Generator" Because I Couldn't Remember The SHAPE Statement And Now I Publish It For All Developers Who Cannot Remember It And It Is A Good Example Of ADOX And ADO.The New Version Is With Full Test Of SHAPE Statement.
Have VB installed in default location of C:\Program Files........ and have the "Save As" and "Existing Files" dialogs default to a customized location.
Absolutely tip top code for MS Access users. This does exactly what it says on the box. This has got to be worth a vote or two. Merry Christmas folks.
VBAssembler -> Automated Edit Assembler with VB. Sorry I uploaded again because i got some errors.
cEdit 4.4 includes some more bug fixes that some users found along with a few more updates including a built in webbrowser as request, snippets as requested, and full template support with a simplistic template editor. The snippets you can just drag a file over the snippet window and it will be added as a snippet. This version also has a links menu it's purpose is simply to give access to some links I feel are worth while for coders :)
Tool intended for the administrators. Two mains parts : 1) Windows secrets fonctionnalities. Similar to the PolEdit program. Useful to prevent a workman to modify Windows. - Inhibe some commands like add printer, change display properties, find, execute... - Change icons size - Hide some drive-letters from Explorer - Apply an AutoLogin - Show a message before the login - Lock the NumLock before the login - ... All these changes can be made to a remote computer (you must have admin rights !) 2) Network tools - Ping an IP or DNS. Single or infinite with sound to known the result without seeing the screen ! - Convert IP->DNS and DNS->IP. This fonction can be applied on a range of IP. - Send messages (equivalent to 'net send' dos command) - See MAC address of all your NIC - Shutdown the local or a remote computer (equivalent to ShutDown.exe from the zerotoolkit) - Read data from the internet (UTC time for exemple) Thats all folk........ for the moment........ This code is usefull if you whish to learn : - Registry manipulations - WinAPI32 - Icontray (small icon near the clock) - Retrieve system information (memory, display...) - Network manipulations and tools - ... The program is in French and it miss a little comments. If you have somes difficults to understand the code or to translate, email me. I made this program using many small codes and exemples found in PSC. Thanks to all of you that take the time to upload your 'How to' exemples.
I wanted to share what i have learned about supporting XP themes in your existing apps. Note that the themes will only be visible if you are running Windows XP. Any other OS and they will look as they did before. First, make a manifest file for your app. This is fairly simple and samples can be searched for at PSC (go to http://www.planet-source-code.com/xq/ASP/txtCodeId.27928/lngWId.1/qx/vb/scripts/ShowCode.htm and that code will generate one for you). The second thing i learned is that certain controls, especially the option button, will not show up correctly in a frame(ie ugly black box around the option control). This can be resolved by putting your control in a picture box inside the frame. Second, a command button that is set to graphical style will not show up themed. The button has to be a standard style. Note that this property cannot be set through code, it has to de done via the properties in the IDE. Hope this helps.