Results for "Volume: 6_2008-2009"
All programmers need to allocate arrays to store data, and very often they don't know how much they will be storing. here is a beginners tutorial that shows how to dynamically allocate an array on the fly that will only allocate as many items as are needed!
How to modify P&D Wizard/Setup1.exe to add Desktop Icons during the installation of your Visual Basic Programs. PLEASE, TAKE AN EXTRA MINUTE TO VOTE IF YOU LIKE THIS ARTICLE. Thanks, Christopher.
This Window Grouper demo project was made just to test a concept. What it does be default is, while running, monitor for any Internet Explorer windows that get opened. When one is detected it will group it into the window grouper interface and give the window a tab. The effect is that you will have only one window open (the Window Grouper) and that one window will contain a tabbed interface to all your open browsers. By right clicking on a tab you can bring up the Get Windows option to list all other running applications and pick one to also group into the interface (ie, Word, Excel...what ever). This code is far from perfect and was only made to test a concept to see if I wanted to go further. I thought I would share this to teach others how this can be done (this way but of course there are always better ways). Some code in here (mainly the EnumWindows stuff was given to me from another developer who got it from a online database which the person there said they got it from PSC so looks like this part of the code really gets around.
transparent forms on windows98
It's a common problem everyone has faced. You have a couple paragraphs of text that you want to store in a constant. But how do you manage quotation marks, line breaks, and backslashes in a quoted string? This solution will let you paste text into a textbox, and it will spit out the source code in order to store that text properly in a variable. Outputs to Javascript, VBScript, VB6, VB.Net, C#, and HTML. Very handy!
Makes sure users of your program agree to the terms of the EULA (End User License Agreement) before being allowed to access the program.
Call an api by its name without Declare. Usefull for Sripts or if u dont know if the Machine is XP or 95...
This is an example of what can be done with the finite state machine code I have uploaded (see my other submissions). It shows how you can define a particular grammar and how to check to see if that sentance fits this grammar/syntax. This would be helpful for text adventures etc, and should also give you an idea about how else you can implement other systems using FSMs. The output is printed to the debug window (Ctrl-G).
Enumerate all installed printer on local machine and retrieve their status (the same in windows printer folder) and other informations. Enumerate also the jobs of printer and their status. Ver 1.0.1 05/03/2003 (dd/mm/yyyy) - Some printers return ready also when aren’t ready
A shutdown application with support of win95,win98,win2000,winXP.It can restart,shutdown or logoff your computer with password protection(in win9x).You can input coutdown time or just time.It supports command line options like /restart /now.Very easy and quick to use.(right click on start and on header for more options)
The idea was derived from other code I saw here. The code here soft scrolls text on your form. The text used can be very lengthy. I jumped on the 'do scrolling by using the picturebox'-wagon, but I shift it just one character, instead of the whole width of the text, which makes it much more flexible and more usable for large text.
As the title itself suggests, it is all about maintaining Employee records. This software enables an user to generate I-Cards, Payslips, Attendance Slips, Profit and Loss Analysis and much more. Graphics and Animation have been highly time consuming, but at the end, really worth spending all that time. Finaly, from the developers point of view (PSC Users), it would be very much useful if anyone is interested to learn generating Reports using Crystal Reports, Desinging animations through Macromedia Flash, and connecting MsAccess database using ADO, all through codings...good luck and best wishes for all the guys visiting PSC (my learning resource)...
Create custom menus useing Images (See screenshot). Please vote and comment!
This is more of a tutorial than a code submission. It shows you how the LONG variable is represented in memory by VB. It also shows you how data types are represented in memory and how to place custom bytes into longs without having to figure out what numeber all 4 bytes would be etc. It uses a simple function to domenstarte this which converts a dotted string IP address to it's long representation (they way it's represented in memory). And to prove it works, you can test it alongside the real API function used to do this. The tutorial is integrated into the commenting. Leave some feedback.
A solution for who does not want to use ADO/DAO or ODBC to have access its database in MySQL. With only one DLL you it has the power on all functionalities of the MySQL.
VB Language Pack Generator is a Powerful and complete application for you to quickly generate language packs to your VB projects. You need to load a project, and translate your labels, menus, buttons, SSTabs, etc... It is able to translate control arrays and indexed menus too. It can load large captions or tooltips from the binary (.FRX) file of the form. The example, how to use the class module to load language packs is heavly commented. I am thinking in implement it and make it a profissional tool for VB programmers and make it shareware. Vote for me if you like it. Feel free for give me some help to implement it. Thanks!! UPDATED: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=61578&lngWId=1
This code is designed to show you some ofthe basic functions you can perform with Microsoft Agent. Microsoft Agent is that small animal/icon/character that sometimes appears on programs like the Microsoft Office paper clip.
Hello fellow PSC users, I have written this tutorial (part one of a series) to teach the programmers that don't know about Command Line Driven programs how to develop them. Have you ever seen with Windows applications that you can go into Run and type "PING 255.255.255.255" (with out the "") and the program PING will ping the IP address 255.255.255.255. This series tutorial will start at the basics of Command Line Driven application programming and take you right up to the complex coding that can be developed in Visual Basic programming. I hope this tutorial will help you other VB programmers, and I hope to see a lot of nice programs uploaded onto PSC using this concept. The .zip file contains the tutorial (.doc format) and a sample program I have written in VB (fully commented). Best Regards, Coding MasterMind
(NOTE: NEW BIGGER VERSION INCORPORATING ALL SUGGESTIONS AT http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=43915&lngWId=1 -- I'm leaning this version up for those who want the smaller, simpler app) Small icon in the systray disables, enables or runs the screensaver with a click. Also has a menu item to open the display properties control panel to the screensaver tab. Tested w/ Win2000 and XP; please let me know if there are any problems on other OS's. Thanks to all the PSC community... I wouldn't know half the tricks I do if it weren't for all of you. UPDATE: Added option to LoadAtStartup (Registry method) and save this setting to Registry [fixed].
This is a redo of my previous version. If you are behind a router/hub/NAT/firewall and are unable to get your "real" IP address, then you can use this simple utility. It extracts your IP address and hostname ("ISP Name") from a remote web server ("http://www.ShowMyIP.com/xml"); therefor I cannot take full credit for this; but give it to them for providing the service. Comments, threats, jokes are always appreciated! :)