Advertisement

Results for "Author: mrbobo"

2_2002-2004 #123336
CommonDialog and Browse for Folders Plus

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.

2_2002-2004 #123414
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.

2_2002-2004 #123544
Bobo RTF Tricks

Syntax coloring, advanced selection routines and Highlighting. Highlighting using the Richtextbox control is awkward. Whilst there are a host of Selection properties there is no Highlight property we can access from VB. We just have to parse the RTF code.

2_2002-2004 #123780
Yet Another Better Browse for Folder

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.

2_2002-2004 #123992
Menu Extractor

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.

2_2002-2004 #124534
Using Classes for Beginners

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.

2_2002-2004 #124700
Bobo RegEdit

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 !

2_2002-2004 #124710
Bobo Calculator

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.

2_2002-2004 #125781
Bobo VBW Disabler

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.

2_2002-2004 #125917
More API for Beginners

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.

2_2002-2004 #126272
File Association

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.

3_2004-2005 #131248
Bobo PSC Monitor Update

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.

3_2004-2005 #131313
Bobo Bitmap Menus Simplified

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.

3_2004-2005 #131881
Bobo Modifying the System menu - easy

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.

3_2004-2005 #131988
Bobo Templates

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 !

3_2004-2005 #132028
Bobo PlugIns for Beginners

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

3_2004-2005 #133010
Linked RichTextBox Scrolling Example

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.

3_2004-2005 #133210
Bobo VB Code To HTML

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 !

3_2004-2005 #135442
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.

3_2004-2005 #135443
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.

Languages
Top Categories
Global Discovery