Results for "Author: mrbobo"
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
Even if your own code is very tidy, when you download other peoples code it can sometimes be nearly unreadable because of the formatting or an overuse of comments. The aim of this project is to quickly provide standard indenting, remove blank lines and optionally comments from VB source code. I hope you find it useful.
Are you addicted to PSC? Does visiting PSC actually get in the way of your coding? This may help. It checks for new submissions and new votes on your submissions. Now updated to include new comments notification and viewing all comments. It also provides links to the most common pages you use, all in a popup menu in the system tray. Demonstrates downloading using API, disabling right-click menu in web browsers, string parsing, system tray management, internet connection state, handing multiple settings using the registry. UPDATE: The original version of this PSC Monitor used API to download the source code of a selected PSC web page and parsed this source code for specific data. It did this job well, but the application was unresponsive whilst downloading was taking place. To overcome this problem it now uses a separate tiny exe file (BBdowner.exe - source code included) to download the data in a separate thread, thus allowing for multiple tasks being carried out simultaneously and allowing the app to be reponsive even during downloading. I hope you appreciate the increased stability and speed. Before running PSC Monitor, compile BBdowner.exe and place in the same folder as PSCMonitor.exe, thats all - easy!
The name says it all. No need to vote. This is in response to a question in the "Ask A Pro" section. Added Hide/Show as requested.
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.
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.
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
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.
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.
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.
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.
Mixer API demo. A clone of the Windows Mixer(sndvol32.exe). Volume/Balance/Mute controls fully responsive to external changes via callbacks from winmm.dll. The Mixer API causes problems for VB coders everywhere. The tangled web Microsoft created turns what should be simple into a nightmare. In this demo I try to untangle some of this mess by cloning the Windows Mixer(sndvol32.exe) as an example of how to write your own Volume/Balance/Mute controls. As an App it's pretty useless as sndvol32.exe exists on all Windows platforms, but for all those Audio/MP3 coders out there, it should make life a little easier. Update: As requested an "Administrator" version(Included as a separate zip) Added: 1. The ability to lock Volume,Balance and Mute for each control 2. Save settings as presets 3. Run hidden - simple code - not 100% hidden, but good enough to keep the average user out. The save settings demonstrates writing settings to a binary file, something not often seen here on PSC. What it will do: If a control is locked, not even sndvol32.exe can make changes. The given control cannot be altered. Security is low - I'll leave it up to you to bump up the security level. What it wont do: If a 3rd party App communicates directly with the soundcard(WinAmp for example) it can effect changes. Screenshot shows "Administrator" version
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.
Demonstrates how to get the selected text from another application - Notepad for example. Yet another submission in response to questions in the Discussion Forum. Hope you find this useful.
This is a simple demo of using the API to manage files. It demonstrates the use of SHFileOperation. It is by no means a 'File Manager'. It was put together in order to answer questions from many coders new to 'VB in the Discussion Forum. I hope it is of some help to those folks.
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 is in response to many requests for "removing duplicates in a listbox" in the discussion forum. Using the API is almost always faster than using VB. I'm unaware of any examples here on PSC of using the API for removing dupes - I may be wrong. Either way this is a very efficient way of accomplishing this task. No need to vote - code couldn't be much simpler than this! Feel free to improve upon the code yourself. As usual all bugs come entirely free of charge.
If you've ever tried to use the standard Toolbar customise feature then you will know it doesn't work. This is a documented bug - visit MS and do a search. They offer some solutions, but these only partially rectify the problems. The problems involve an inabilty to reliably save the configuration of the Toolbar and a failure to display unused items in the left hand selection Listview. My fix Scrap the feature entirely - uncheck AllowCustimize checkbox in properties Replace the dialog with a clone form Power the function with a simple class
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.