Advertisement

Results for "Volume: 7_2009-2012"

7_2009-2012 #229630
Tic Tac Toe that learns (True AI)

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!

7_2009-2012 #225684
Convert an ADO Recordset to Text

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.

7_2009-2012 #224405
XP Manifest Inserter

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.

7_2009-2012 #225989
A*Super Easy MDI Splitter

This has got to be the easiest way to have a splitter on an MDI form. See ScreenShot. Please leave comments and/or vote.

7_2009-2012 #228770
File/Folder Browser

A file/folder browser that doesn't use the drivelistbox,dirlistbox or filelistbox. Small bug fix - sorry A vote or two would be nice

7_2009-2012 #225990
A*Easiest way to move form without titlebar and Resize borderless form!

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.

7_2009-2012 #229390
Simple Flexgrid editing

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 :)

7_2009-2012 #228855
TabIndex Manager *BUG FIXED*

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 ! ***

7_2009-2012 #229642
Create Shape Statement V2.1 (Updated!!)

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.

7_2009-2012 #224626
Change Default Project Location

Have VB installed in default location of C:\Program Files........ and have the "Save As" and "Existing Files" dialogs default to a customized location.

7_2009-2012 #226823
SQL Generator for MS Access

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.

7_2009-2012 #223858
VBAssembler (uploaded again)

VBAssembler -> Automated Edit Assembler with VB. Sorry I uploaded again because i got some errors.

7_2009-2012 #226986
Proper Way To Use WinXP Manifest

After attempting to use various manifest creators and uilities found here and finding out it either doesn't work at all or works but with errors I decided to add minor fixes and explain exactly how to implement windows xp theme use and not get an error... Well I hope you don't get an error cause mine doesn't generate errors. Now don't get me wrong there are a few manifest programs I found that worked fine in displaying the content but I was getting various errors from them when using other components in the program and this seems to have worked with most of the components I have. I didn't create this coding but I did figure out how to avoid errors, at least on my own machine and if this helps you please toss a vote just for the sake of all this typing and rambling. *lol* Additional Note I Left Out: You do not need to add Reunion.exe for your app file name it can be just reunion without the exe (of course reunion probably iisn't the name of your exe but mine is so just for ease of the explanation) A piece of advice when doing xp theming, if you place the controls within a frame they will form a ugly black outline so make your controls on the form not inside of a frame then move the controls to the frame.

7_2009-2012 #223188
cEdit 4.4

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 :)

7_2009-2012 #220235
WindowsControl for NT4 (work on W2K)

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.

7_2009-2012 #221025
XP Style Control Help

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.

7_2009-2012 #217465
Associate file type and icon with your app

I made some improvements on the code I submitted way back on 12/20/1998 (WOW! today is 12/20/2001 - its been 3 years to the day! My, how time flys!) There has been about 11,000 downloads and a lot of comments on this code since then so I thought that an improvement should be posted. I've added a SHChangeNotify function to update the icon in Windows immediately. Original post: For those of you who want to add a touch of professionalism to your program, now you can create a file type in the Windows Registry database which will associate all files ending with your program's file extension (yourfile.xxx) to your program. You also specify an icon for your file type and a description. This example also shows you how to use Command$ to open these files in your program once the file is clicked or opened in Windows, and a quick tip on creating files in the Windows Recent file folder (Start > Documents). Email [email protected] if you need help. Good luck.

7_2009-2012 #218280
Resize Picture to Fit Picturebox

A one-liner that resizes a picture to fit the dimensions of a picturebox. No API calls.

7_2009-2012 #229200
An Autocomplete enabled Setup Program

This code consists of an Autocomplete-enabled Setup. Don't Forget to vote me! Very useful to deploy your applications with little space.

7_2009-2012 #229201
Maris Browser Ver2.0

A MUST SEE FOR ALL OF YOU! This is a multi-featured Internet Explorer Loved by all. Don't Forget to vote me! It's features include Favourites, History, Status Bar, Juke Box, Search while online,and is very very customizable!

Languages
Top Categories
Global Discovery