Advertisement

Results for "Author: mrbobo"

2002C #10642
WebBrowser Tricks

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

2002C #10643
File String Search

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.

2002C #10644
API for beginners made easy

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.

2002C #10645
Menu Builder Update

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.

2002C #10646
The RichTextBox Control

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.

2002C #10647
Saving/Loading a listview Example

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.

2002C #10648
Simple Address Book Database

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.

2002C #10649
More WebBrowser Tricks

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.

2002C #10650
Menu Builder

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.

2002C #10651
Beginners Toolbox - Volume 2

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.

2002C #10652
Bobo Image Workshop

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.

2002C #10653
Beginners Toolbox

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.

2002VB #17333
Load in Previous Instance

Another example for Beginners from MrBobo. This example program shows how to communicate between instances of your application. Lets say your application is assosiated to a filetype. The user clicks on such a file and an instance of your application is launched. But what if you want to load the file in the existing instance - not the new one ? There are many examples of how to achieve similar results on PSC. This method is designed for reliability and ease of use with a minimum of code to implement.

2002VB #17334
Yet Another Messagebox

Allows you to alter the text on messagebox buttons. Easy to use and call. Just add a module to your project and call with a single line of code in a similar manner to the standard Msgbox call. Commented code and extensive example usage.

2002VB #17335
Image Previews in Common Dialog

If you are writing an Image Editor or your app opens picture files you need this. Just like the big boys you can now show a preview of images right there in the CommonDialog window. Very easy to use. Add a module and a small form to your project and call with a single line of code.

2002VB #19235
Testing Installations and Installing Windows in Under 5 Minutes.

Need to test installs on different operating systems? Need a new operating system fast? Infected by virus?...Read this - it may help.

2002VB #19236
Simple Painter

This demo shows in the simplest possible code, the basics of image editing. It is intended for the novice but others may find it useful in optimising or simplifying their code. Whilst it is in no way a full blown editor, it may provide a basis from which to learn. If you want an example of a more advanced image editor I suggest you look at "Bobo Image Workshop" which is found at: http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=21482&lngWId=1

2002VB #19237
Bobo Pad

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.

2002VB #19238
CommonDialog with Recent File Tab

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.

2002VB #19239
Changing Forms Read Only Properties at Runtime

This submission is prompted by a question in Ask a Pro. Allows you to change some readonly properties at runtime.

Languages
Top Categories
Global Discovery