Results for "Volume: 5_2007-2008"
Simple Direct Draw game. Shows how to make simple operations with Direct Draw surfaces. Does not require DelphiX
Class module for resizing/repositioning controls on a form. See source code for details.
I saw the earier example of a global error handler written in C#, but needed it written in VB for my company. I translated the earlier work into my version in VB. It was suggested by a couple of people that I provide my VB version, so here it is. I just hope you find it useful. You can visit the C# version at: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=948&lngWId=10 It was submitted by Joel Thoms on 2/5/2003. Thanks to all that asked me to post the VB version. Special thanks to Charles Richardson for helping me track down a bug. When you paste the code into the IDE, most of the formatting should return.
Allows you to backup a source file and have the destination file name be the current date. Great for database backups!
A class for creating Windows, Buttons, Edit boxes, and Multiline Edit boxes. It is very simple to use, and later I will add more types(Listbox, static(label), frame, etc). I included project files for Brland C++ Builder 5, and MS Visual C++ 6.
This very simple routine avoid checking if a correct path already exist before using it and, if not, create it exactly as you want. Imagine you wont to write a log file in a path defined as: C:\Myapplic\Services\logs\LOG.TXT you must check before if the directory Myapplic exist and then check all other subdirectory (Service,logs) before opening the file For Output. Probably you will use a lot of Error Resume Next, Mkdir(...), Error GoTo 0, dir(....) and so. Instead you can use this routine as described below: Myfile="C:\Myapplic\Services\logs\LOG.TXT" Call CheckDir(Myfile) nf=FreeFile() Open Myfile For Output As #nf . . . Close #nf and including the following .bas module: Public Sub CheckDir(file) Ix = 4 'Initial index KSlash = InStr(1, file, "\", 1) 'Search for first "\" For Cnt = 1 To Len(file) 'Run until discover 'other directories KSlash = InStr((KSlash + 1), file, "\", 1) If KSlash = 0 Then Exit For 'Last slash dir1 = Left(file, (KSlash - 1)) cdir1 = Mid(dir1, Ix) Ix = Ix + Len(cdir1) + 1 hh = Dir(dir1, vbDirectory) 'If Directory doesn't exist, create it If StrComp(hh, cdir1, 1) 0 Then MkDir (dir1) End If Next Cnt End Sub
An *unfinished* (but well-working* RPG, that is a GREAT learning tool for aspiring game programmers who do not know a lot about C++. The game also has a pretty cool battle system.
This simple code will allow you to programmatically select an item in a listview. Hope this helps.
PhpICalendarX is a class through which you can set a calendar to your page. I have build so many features into the same. Please mail me the comments and other queries you liked to know. And I hope it will be of good use to the planetsourcecode.com viewers.
I converted the original C# code for the IconMenu(http://www.vbaccelerator.com/home/index.asp) to VB.NET. The only Changes that I made to the actual code is that I added a property that allows you to select the Menu style you want, Classic Or XP Style. Everywhere I go that offers source code and it's in C# people are always asking for the VB.NET port of it, so Here's the VB.NET port of VBAccelerator's IconMenu
Alternate way of using Shell command in .Net
This program causes a button's color and text color to fade between its usual colors and those of its window's title bar's color and text color when the user rolls over that button with the mouse arrow.
Recently started with PHP. Here is a simple counter, which uses animated images to create sliding effect.
It able to detect ENTER key press by user. VB6 use " Keyascii = vbkeyreturn " but .Net need to write another function to detect it. Try to use this function to help you. Vote this code if you found it useful 2 you.
Hoon It is Funny and Cool. Be sure that you have MS word to read this Article.
This is a reasonably simple piece of code to generate a random hitec phrase. Its something I made just for the practice, but has a nice demonstration of switches and random number generation. Also now generates a logfile and reports on the size of that logfile. (I plan to infect Bill Gates PC with this a sa virus and make it pop up random phrases every 7.65 minutes. MWA HA HA HA HA!!!!)
Most users especially those bigenners with vb.net asks how to use DAO with vb.net
This Code will help the programmer to insert the image into a Sql Server Database through DataReader in VB.NET
this code is for the person who is dumbfounded about arrays. In the example charactor arrays are fully explained in detail. This is a must download for a beginner. Web: http://neo.8op.com/~fatal/
This class was developed to assist me in creating an assembler. I found that by making my own class to deal with strings I could better understand what whas happening.