Results for "Author: mrbobo"
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.
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 !
The best way to flood fill is to use ExtFloodFill. Absolutely vital functionality for graphics applications. Trouble is it doesn't lend itself for use with .NET. Your only alternative to ExtFloodFill is to use recursive routines to scan an image and change pixels colors appropriately. This can be quite inefficient and take an unreasonable amount of time to perform. There was quite a good example last month here on PSC and I've seen a good one by Bob Powel. Searching on the intenet for ExtFloodFill and .NET will return many examples of people wanting to use ExtFloodFill but I have yet to see a solution. So here it is.
Some useful routines for those just starting out in VB.NET. File handling routines, embedded resources, graphics, system icons, ownerdrawn listboxes, serialization and much more. Presented in a format familiar to those who have used my VB 6 beginners toolboxes. Source code relevent to the current tab appearing in a text box ready for copying/saving. Included in this solution are 3 other projects I did when I first obtained Microsoft Visual Studio .NET 2003. They are 3 simple clones of Calculator, Notepad and Minesweeper. I find that one of the best learning exercises you can do is to write clones of existing software. The coding strategies employed in an application are not always obvious until you come to duplicate the software yourself.