Results for "Author: mrbobo"
If your sick of typing in the same old menus over and over then try this out. Extracts menu data from VB Forms and Usercontrols and allows inserting these menus into other VB Forms/Usercontrols or saving as a template for later use. Whilst its a useful little programming tool in itself, it was written to demonstrate string parsing and filetype creation and association including, Explorer context menus.
A practical demonstration of using classes to optimise your applications. Correctly written classes make your code re-usable, faster, more reliable and memory efficient. They also speed devolopment time, make debugging easier and can be placed in DLL's making them accessable from multiple applications simultaneously As time goes by they become even better because each time you use the same class in different apps, any bugs that do show up get removed for future apps as well.
A reasonably complete clone of Regedit.exe with a few added extras. All coders should be familiar with the layout and usage of the Registry If you're not then here it is on a plate !
A scientific calculator. Written as Usercontrol, very lightweight, very easy to call. Demonstrates trigonometrical and logarithmic functions, each with just a line or 2 of code. Great to learn from.
Disable *.vbw files from running when you click on a VB6 Project file(*.vbp or *.vbg) in Explorer. Simple registry function to avoid malicious vbw files activating. No timers, no overhead, run once and your protected.
Handling File Paths. The VB programmer should try to use the API wherever possible. It is usually faster and more memory efficient than most VB methods. We should also make use of .RES files rather than hard coding to reduce the amount of memory consumed by our applications. This little demo attempts to illustrate these concepts in the simplest possible way.
File Association can be tricky and there are some rather blunt instruments being applied in some examples of Association both on this site and elsewhere on the web. This demo shows how to Associate your App to a file extension and safely return Association to the previously Associated program if desired. Lots of comments, easy to call, with the absolute minimum of code required to do the job. Prompted by more than one question in the Discussion Forum.
This tiny app will inform you of new submissions on PSC and demonstrates how to implement ownerdrawn menus to add icons and change the font/color of your menus in the simplest way possible. Years ago I posted a submission to monitor for new submissions on PSC. That submission did much more than check for new postings and as such it broke one of codings' golden rules - never hardcode addresses/strings. For that app it was neccessary, but as is inevitable, things changed at PSC and elements of that app have become inoperative accordingly. I've simplified this app to only check for new submissions and the only hard coded address used is one that is unlikely to change until a complete revamp of PSC occurs.
There are quite a few submissions on PSC demonstrating the use of ownerdrawn menus. Most are very good, I voted for them ! However, for some folks they were a bit complex and hard to understand. I hope this helps clarify the process for less experienced coders. Most professional VB programmers have been doing this for years. This submission seeks to simplify, as much as possible, the process of converting VB menus to ownerdrawn menus. No side panels, crazy fonts/colors - just the default menu with a true color icon. This small module is a cut-down version of a template I wrote a long, long time ago. I hope I haven't introduced too many bugs in the process of simplifying it, but if I have they shouldn't be too major and the concepts involved are still well demonstrated. The tasks : 1. Locate all VBmenus on a form and determine thier actual handle according to Windows 2. Change the type of each menu to 'Ownerdrawn' 3. Subclass the form so we can respond to the messages 'WM_MEASUREITEM' and 'WM_DRAWITEM' 4. Use the API to print a caption and paint an icon, either Enabled/Disabled or Checked, in response to those messages.
Adding items to the system menu can make your application look more professional. This is a very simple example of how to do it and be able to respond to clicks on that menu. No need to vote - this is in response to a question in the discussion forum.
The use of Templates can dramatically reduce development time and time spent debugging. The repeated use of the same code means that over time, that code gets tested in many environments, and gets further refinement to produce robust code and bug free applications. This submission contains two small simple "Templates" that you are free to use. Using "ModCmnDlg.bas" means that you do not have to use MS Common Dialog Control (comdlg32.ocx) for the simple task of opening and saving files. Using "ModMRU.bas" enables the easy addition of recently used files to menus in a form. This can make your application easier for the user to use and gives a more professional feel to the application To those coders that have requested my Templates in the past - I am in the process of moving over to .NET and will release the more advanced ones over time, stay tuned !
A PlugIn is a dll/exe/script that is installed separately from an application that can perform tasks within that application. It should be able to pass objects freely between the application and the plugin. This is in response to a number of questions in the Discussion Forums - you know, the place no-one ever goes and questions never get answered !!
Demonstrates how to link the scrolling of 2 RichTextBoxes, so they scroll simultaneously without any lag time. This is in response to a question in the discussion forum.
The Richtextbox is a great tool for displaying text but it can be quite a task converting it's format for use on the web. This project is part of a Code Library application that I still use today. It has HTML saving options for publishing source code to web sites. It demonstrates manipulation of the Richtextbox control, string parsing routines and syntax highlighting. It will also format your code applying standard indentation, remove blank lines and truncate long lines neatly, making your code much more readable. You can then choose to save it back to disk as a VB file(retaining it's original header), an HTML file or as a rich text file(rtf). Like all code this old, I would do many of the functions quite differently nowadays, but there are still some handy techniques used here. I hope I didn't create too many bugs when I pulled it out of my Code Library app ! I have had quite a few emails of late enquiring as to when I'll upload some more submissions, so in response to those here is yet another Bobo submission !
Advanced Find/Replace. Unlimited Undo/Redo. UPDATED - some minor bugs removed. Demonstrates getting file properties, obtaining document statistics, page setup, printing, file association, create shortcuts, date format, advanced selection options, wordwrap, using commondialog without MS control, controlling RichTextBox scrolling. Can open/save .rtf, .doc and any plain text. Includes a heavily modified version of Undo/Redo classes by Sebastian Thomschke - fully optimized for speed when handling large files. There are many examples of plain text editors here on PSC. I would not have submitted this upload unless I thought it was a significant improvement upon existing submissions. This one is definately better than Notepad. Having submitted Bobo RegEdit(RegEdit.exe replacement), and Bobo Image Workshop(more than a Paint replacement), I thought I might as well upload this. Behaves just like Notepad without filesize restrictions (Rich Text Box) but edits entirely in plain text format. Thankyou all for reporting the bugs you found - zip file updated minus those bugs.
Adds a touch of professionalism to your project. Just like VB IDE. One tab has the common dialog, the other tab shows recent files, their path and their icon in a listview. Can obviously be adapted to show images, provide different settings and options to the user as to how they wish to open a file. Included : Standard EXE project, UserControl Project and test project, OCX Project and a test project for the OCX. Demonstrates saving/loading listview to registry, getting file icons for use in a listview, how to build your own commondialog controls, controlling other apps windows.
This submission is prompted by a question in Ask a Pro. Allows you to change some readonly properties at runtime.
Need to test installs on different operating systems? Need a new operating system fast? Infected by virus?...Read this - it may help.
API for beginners made easy. Yet another submission for beginners. The API is sometimes avoided when first starting VB programming because it seems too difficult. In fact it's quite easy, just experiment. I've tried to split the code up to into various modules to make it clearer to undertand. Vb controls sometimes lack some properties we as programmers need. The API can be used to return those properties to us. In addition API gives us access to built in dialogs and other functions not otherwise available through VB. This demo covers only a few of the more common API functions, there are hundreds and hundreds of others! Modify VB Controls: Listview Flat Column headers, Treeview no tooltips, Progress bar change back/forecolor, Textbox - lower/uppercase and numbers only, Command button - thick edge, flat, hover. Dialogs: Open, Save, Browse for Folder, Printer, PageSetup, Color, Font, Add to Favorites, Organize Favorites, Import/Export Favorites, About. Functions: GUID Generator, Unique Temp filename, IE Version, Keycode giver, Hard Disk info, Common Paths, Long filename, Short filename, FileExists, Binary open/save String Parsing: Pathonly, Fileonly, ExtensionOnly, ChangeExtension, Unique filename, File size, Trim null characters. I recommend you visit www.allapi.net for excellent downloads regarding the API - but be quick, I understand the site is closing soon.
This demo shows some of the capabilities of editing RichTextBox tags to achieve very fast global formatting. Great for Syntax Highlighting etc.