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 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.
Browse for Folders Dialog with 'Create New Folder' button and 'Include Subfolders' checkbox. CommonDialog with image previews. Both these controls are updated versions of functionality included in some of my previous submissions. Now Win 2K compliant. Please vote if you like it.
This module provides a Win2K interface to the Browse for Folder under Win95/98. This is not an update to my earlier submissions but a complete rewrite using pure API. With Win2K MS introduced a new DLL (SHELL32.DLL Version 5.0) which includes a better Edit box, Popup menu and a New Folder button. With this module you can achieve the same result (except the Popup menu) using the old DLL (SHELL32.DLL Version 4.71) as used by Win 95/98. Additionally you can add a checkbox, customise captions for Titlebar, OK button, Cancel button, New Folder button. You can also resize the Browse for folder window. Additionally you can choose to open the dialog double size or full screen. All the usual features are present, such as include files, start at special folders etc. You can select between the old style Editbox or the Win2K style editbox (Much better I think.) Why bother? - Not everyone is running Win2K. Very easy to call. Heavily commented and includes complete sample usage. Please vote if you find this useful.
Here is the third part of my Web Browser Tricks This time as a Web Browser(nearly). What's here ? - a nearly exact clone of Internet Explorer's Favorites menu, autocomplete Address combo, menu's enabled/disabled by the Webbrowser, text resizing including identification of current size, progress bar in the Statusbar, plus all the standard WebBrowser stuff.
This Example Application Demonstates : Enable/Disable Forward and back Buttons, Standard Navigation Buttons, Cut/Copy/Paste/SelectAll edit functions, Auto-Complete Address Box, Saving and Loading MRUs, Avoiding duplicates in Combo/List boxes, The 'about:' Navigation method, Opening and Saving Web Pages, Using Explorers' Find File or Folder Dialog, Finding text on current page, Sizing text on Web pages, Showing a progress guage, Showing Status text, Creating HTML pages at runtime. If I get some interest via the way of votes I'll put up some more
Search a directory for files containing a specified string and return a list of such files. Once again, I've uploaded this in response to a quetion posted in the Discussion Forum.
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.
Updated version - removed many bugs and errors. Thanks for the feedback and interest shown by all those who emailed me. It helped greatly. This little App will allow you to edit or create menus in VB6 Forms. It removes the limitations of the number of nested submenus allowable in the VB6 menu editor on which it is based. New forms can be created with menus in place. It can be used to extract menu structures from one form and place it in another. You can save menu structures as templates for later use. It has only been tested in VB6. Use it as you would the Menu Editor in VB6 with the exception of the Open/Save operations. As with all my submissions, bugs and errors are provided completely free of charge.
I keep reading requests for RichtextBox code on PSC so I decided to upload one of my templates with a few added features. Nothing that special here really - basic RichtextBox functioality. The RichtextBox is pretty good at what it does though ! This example demonstrates : Find and Replace, Infinite Undo/Redo, Using .tmp files, HighLighting selected words, Inserting Images, Inserting text at a set location with different Fonts, Common Editing Functions, Shrinking a path to a desired length, Creating your own light-weight Wizard. This is not meant to be a complete application merely a demonstation of some techniques. All error messages and bugs are provided entirely free of charge. Feel free to use any of the code or errors as you wish - MS wrote the control - I've just shown how you might use it. It's capable of more than I've shown here.
Shows how to add items to a listview and then save those items to either an INI file or to Registry. Once saved you can then load the data back into the listview.
This is in response to a 'Request for Code' in the discussion forum. It's similar to lots of other submissions of address book style apps. It shows how to create and access a database without any data controls - just by referencing 'Microsoft DAO 3.6 Object Library'. Purely an introduction to databases - nothing more. A simple address book in 160 lines of code, easily expanded, with lots of comments to guide a beginner through the code.
Another addition to my WebBrowser tricks. This one shows how to access SHDOCVW.dll so that with one line of code you can 1.Bring up Internet Explorers' Add to Favorites Dialog 2.Convert Netscape Bookmarks to Favorites 3.Convert Favorites to a Netscape Bookmark file. 4.Download files without IE throwing up its' dialog. Also I threw a couple of simple Windows based procedures... 1.Show Windows File Property Dialog 2.Show Windows Find file Dialog 3.A method of hiding the Cursor system wide.
This little App will allow you to edit or create menus in VB6 Forms. It removes the limitations of the number of nested submenus allowable in the VB6 menu editor on which it is based. New forms can be created with menus in place. It can be used to extract menu structures from one form and place it in another. You can save menu structures as templates for later use. It has only been tested in VB6. Use it as you would the Menu Editor in VB6 with the exception of the Open/Save operations. As with all my submissions, bugs and errors are provided completely free of charge.
In response to requests for more samples here is Volume 2. This collection includes the use of scrollbars, listboxes and the treeview. Move listitems up or down in a listbox, remove duplicates etc. The treeview example demonstrates a fully functioning 'Favorites bar' for a Web browser application using Internet explorers favorites - add links, add new folders, rename, delete etc. Also included is a KeyCode giver, a picture resizer, and just for fun a random mousemover. Code for each function appear in a textbox ready to copy into your project. I hope this is of some help to people beginning VB. Good luck.
This is an app I wrote early last year to see how far I could go with VBs' graphic editing capabilities. It's still a work in progress and could do with a rewrite. After Stu Lishman uploaded his latest version of Stu Paint I added Twain support, thanks Stu. The program was thrown together quickly but is none the less complete and working, with only one or two minor bugs. It does most things Paint Shop Pro will do. I have a version with layers that works quite well but is less complete than this version. It demonstrates cut, copy, paste, selection, freehand selection, shapes, multiple clipboards, color handling, effects, filter browser, inserting text, magnifying, rotation, inversion, MDI window control, toolwindows, MRU lists, Temp files, Undo/Redo, buttonising etc.etc. Some of the effects are modified versions of code downloaded from PSC. Unlike most of my other submissions there is very little commenting of code - it's too big now and I've forgotten more of the functions than I remember. For the more advanced coders however it should not be too difficult to follow. It was an experiment however, so there is some duplication of both code and controls, with heaps of room for optimising.
Threw this together to answer a group of questions in the Discussion forum. It is intended to help those just starting VB. It demostrates string manipulation, file handling, simple navigation, reading and writing to files. It includes four example apps that include menus, window handling, file properties and a basic text editor. Code for each function appear in a textbox ready to copy into your project. I hope this is of some help to people beginning VB. Good luck.
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.