Results for "Author: norm cook"
You have 12 billiard balls. One of them is odd in that is slightly off in weight from the others. The problem is to use a balance scale to determine which is the odd ball and whether it is light or heavy. This little program shows the solution graphically plus it details the logic involved. Have fun with this.
I got irked at the way the standard CommonDialog control responds to multiple file selection so I wrote my own. This one mimics the standard CDialog but has some extra features. Properties: Cancelled = true after showopen if user cancels DialogCaption = Caption of the dialog DialogX & DialogY = position of dialog DirectoriesOnly = browse for directories FileCount = Number of files returned after Showopen FileNameArray = Array of filenames returned Filter = filter as used in normal common dialog e.g. "All Files|*.*|Text Files|*.txt|Executables|*.exe" FilterIndex = Which of the above to start with e.g. 0 would refer to All Files, 1 to Text Files, etc InitDir = specifies initial directory to start, must exist ShowOpen (method) call the dialog You can customize this anyway you see fit. One thought would be to skin the Dialog form or add properties for fonts, fore & back colors, etc. I included a test project but you must first compile the ocx to use it. The ocx is in the zip but PSC may remove it. Enjoy.
You have 12 billiard balls. One of them is odd in that is slightly off in weight from the others. The problem is to use a balance scale to determine which is the odd ball and whether it is light or heavy. This little program shows the solution graphically plus it details the logic involved. Have fun with this.
I got irked at the way the standard CommonDialog control responds to multiple file selection so I wrote my own. This one mimics the standard CDialog but has some extra features. Properties: Cancelled = true after showopen if user cancels DialogCaption = Caption of the dialog DialogX & DialogY = position of dialog DirectoriesOnly = browse for directories FileCount = Number of files returned after Showopen FileNameArray = Array of filenames returned Filter = filter as used in normal common dialog e.g. "All Files|*.*|Text Files|*.txt|Executables|*.exe" FilterIndex = Which of the above to start with e.g. 0 would refer to All Files, 1 to Text Files, etc InitDir = specifies initial directory to start, must exist ShowOpen (method) call the dialog You can customize this anyway you see fit. One thought would be to skin the Dialog form or add properties for fonts, fore & back colors, etc. I included a test project but you must first compile the ocx to use it. The ocx is in the zip but PSC may remove it. Enjoy.
I recently got interested in adding bitmaps to menu items and found that the bitmaps have to be on the order of 13x13 (MS says 10x10 but these seem to work OK). Since I didn't have any readily available method to create such bitmaps, I came up with this little tool that may be of use. You can create 13x13's from scratch, size/crop from other pics (bmp,jpg,ico) or size/crop from clipboard. Included is the routine to actually assign the bitmaps to menu items, as you can see from the screenshot.
Allows user to resize a control at runtime. Put the UserControl on a form and use the Attach method to size a particular control. There is an API way to do this, using CreateWindowEx, but I wanted to do it with a UserControl & here's the result. Enjoy.
Over the years, I've accumulated a lot of code resources. However, it's gotten scattered into many locations on my box's local drives and external drives. So I wrote these two projects in an effort to organize my code into a searchable database for ease in finding reusable code. The first project is BuildMyStuff, which will scan recursively from the path you specify to accumulate the types of files you want into an MS Access database-- you do NOT need Access installed to use these projects, see comments below**. The second project is SearchMyStuff, which will allow you to type in a search word/phrase which will return results based on finding the search criteria in the file's name or text. Once you have a list of files, you can view them (copy/paste), move them to a new location, drag them into an open VB Project Window, or remove them from the Database (you will likely come up with a lot of duplication, as I did. I have included an empty database, Ref.mdb. Hoping that it makes it through the screening process. If not I will submit a modification that builds it via code. **(If you have MS Access installed you can skip this.) About the Database: I use DAO almost exclusively (I know that ADO has many more bells & whistles, but for a desktop app, DAO is simply easier to use and faster). At any rate, if BuildMyStuff loads without any missing references, you are good to go. Otherwise you will need to locate dao360.dll on your machine, or download it, and register it (Start|Run|regsvr32.exe c:\[path]\dao360.dll) Possible Locations: C:\Program Files\Common Files\Microsoft Shared\DAO\dao360.dll C:\WINDOWS\ServicePackFiles\i386 Download site http://www.domainpunch.com/support/articles/dao.php For info, my version is 3.60.9512.0
Just trying to emulate the Mozilla Firefox Progress Circle. Could be handy when performing a task to let the user know something is happening.
A replacement for the antiquated FileListBox. This control sets the ListView's imagelist to the system imagelist which alleviates the need for an ImageList control to store file icons and is therefore less resource intensive. It is subclassed so that the LV doesn't remove the system imagelist assignment. Some other improvements over my previous submission: 1) Allows user to remove the Size, Type, Date columns if desired, plus hide the columnheaders in Report mode--this makes it look like the FileListBox with icons. 2) Added Horizontal and Vertical ledger styles (see screenshot) with the option to change the colors. 3) Column header sort icons. Enjoy.
This is a tool to help with building the ToolboxBitmap pictures for your usercontrols. The docs state that best results are obtained by using a 16x15 bitmap. Through experimentation I've learned that the Transparent color the IDE uses is at x=0, y=14 (lower left corner). Enjoy.
Here's one for those of you who like to write music apps, players, etc. A VU meter on your app makes it a little more professional looking at least IMO. The class used to get the Left/Right volume levels was written by Arne Elster (rm_code) so I take no credit for that. Also the gradient functions were written by another programmer, don't know who, but it is a good one. Take note, this app won't show you much unless you have sounds coming from the soundcard, e.g. Winamp, WMP, Mike, CD or whatever. If you have difficulty getting sound levels, try this. With the demo running, right click on your Volume icon & select Open Volume Control. Or try Control Panel|Sounds| Volume tab then Device Volume, click Advanced. If neither of those are available, try to run the app directly. On my machine it is C:\WINDOWS\system32\sndvol32.exe. With that open, select Options|Properties and select the Recording option button & click OK. Now you have the sliders for the various record options. Try selecting different record devices and changing the volume levels for these (note you have to click the Select checkbox below the slider for it to have any effect) and see if you get results in the demo app.
You have 12 billiard balls. One of them is odd in that is slightly off in weight from the others. The problem is to use a balance scale to determine which is the odd ball and whether it is light or heavy. This little program shows the solution graphically plus it details the logic involved. Have fun with this.
I got irked at the way the standard CommonDialog control responds to multiple file selection so I wrote my own. This one mimics the standard CDialog but has some extra features. Properties: Cancelled = true after showopen if user cancels DialogCaption = Caption of the dialog DialogX & DialogY = position of dialog DirectoriesOnly = browse for directories FileCount = Number of files returned after Showopen FileNameArray = Array of filenames returned Filter = filter as used in normal common dialog e.g. "All Files|*.*|Text Files|*.txt|Executables|*.exe" FilterIndex = Which of the above to start with e.g. 0 would refer to All Files, 1 to Text Files, etc InitDir = specifies initial directory to start, must exist ShowOpen (method) call the dialog You can customize this anyway you see fit. One thought would be to skin the Dialog form or add properties for fonts, fore & back colors, etc. I included a test project but you must first compile the ocx to use it. The ocx is in the zip but PSC may remove it. Enjoy.
You have 12 billiard balls. One of them is odd in that is slightly off in weight from the others. The problem is to use a balance scale to determine which is the odd ball and whether it is light or heavy. This little program shows the solution graphically plus it details the logic involved. Have fun with this.
I got irked at the way the standard CommonDialog control responds to multiple file selection so I wrote my own. This one mimics the standard CDialog but has some extra features. Properties: Cancelled = true after showopen if user cancels DialogCaption = Caption of the dialog DialogX & DialogY = position of dialog DirectoriesOnly = browse for directories FileCount = Number of files returned after Showopen FileNameArray = Array of filenames returned Filter = filter as used in normal common dialog e.g. "All Files|*.*|Text Files|*.txt|Executables|*.exe" FilterIndex = Which of the above to start with e.g. 0 would refer to All Files, 1 to Text Files, etc InitDir = specifies initial directory to start, must exist ShowOpen (method) call the dialog You can customize this anyway you see fit. One thought would be to skin the Dialog form or add properties for fonts, fore & back colors, etc. I included a test project but you must first compile the ocx to use it. The ocx is in the zip but PSC may remove it. Enjoy.
You have 12 billiard balls. One of them is odd in that is slightly off in weight from the others. The problem is to use a balance scale to determine which is the odd ball and whether it is light or heavy. This little program shows the solution graphically plus it details the logic involved. Have fun with this.
I got irked at the way the standard CommonDialog control responds to multiple file selection so I wrote my own. This one mimics the standard CDialog but has some extra features. Properties: Cancelled = true after showopen if user cancels DialogCaption = Caption of the dialog DialogX & DialogY = position of dialog DirectoriesOnly = browse for directories FileCount = Number of files returned after Showopen FileNameArray = Array of filenames returned Filter = filter as used in normal common dialog e.g. "All Files|*.*|Text Files|*.txt|Executables|*.exe" FilterIndex = Which of the above to start with e.g. 0 would refer to All Files, 1 to Text Files, etc InitDir = specifies initial directory to start, must exist ShowOpen (method) call the dialog You can customize this anyway you see fit. One thought would be to skin the Dialog form or add properties for fonts, fore & back colors, etc. I included a test project but you must first compile the ocx to use it. The ocx is in the zip but PSC may remove it. Enjoy.
You have 12 billiard balls. One of them is odd in that is slightly off in weight from the others. The problem is to use a balance scale to determine which is the odd ball and whether it is light or heavy. This little program shows the solution graphically plus it details the logic involved. Have fun with this.
I got irked at the way the standard CommonDialog control responds to multiple file selection so I wrote my own. This one mimics the standard CDialog but has some extra features. Properties: Cancelled = true after showopen if user cancels DialogCaption = Caption of the dialog DialogX & DialogY = position of dialog DirectoriesOnly = browse for directories FileCount = Number of files returned after Showopen FileNameArray = Array of filenames returned Filter = filter as used in normal common dialog e.g. "All Files|*.*|Text Files|*.txt|Executables|*.exe" FilterIndex = Which of the above to start with e.g. 0 would refer to All Files, 1 to Text Files, etc InitDir = specifies initial directory to start, must exist ShowOpen (method) call the dialog You can customize this anyway you see fit. One thought would be to skin the Dialog form or add properties for fonts, fore & back colors, etc. I included a test project but you must first compile the ocx to use it. The ocx is in the zip but PSC may remove it. Enjoy.
You have 12 billiard balls. One of them is odd in that is slightly off in weight from the others. The problem is to use a balance scale to determine which is the odd ball and whether it is light or heavy. This little program shows the solution graphically plus it details the logic involved. Have fun with this.