Advertisement

Results for "Author: kamilche"

6_2008-2009 #195756
Drag n Drop Files from the Desktop

Displays which files were dragged from Windows Explorer (the desktop) to your form. Resolves shortcuts as well, so any shortcuts dropped on the form resolve into the actual file.

6_2008-2009 #195757
Load JPG, GIF, or BMP from Byte Array

Load a Picture object from an array of bytes in memory. Can load any type of picture a normal picture box can load - GIF, JPG, or BMP. Doesn't require the intermediate 'saving of the byte array as a file on the hard drive' step, or an actual picturebox, to blit.

6_2008-2009 #195758
Control Internet Explorer via SHDOCVW in VB

Control IE through VB! Use the WebBrowser control in VB, and automatically navigate to sites, click buttons, fill in text fields, and more. As an example, I've included the 'NeoPets Helper' I made for my young daughter. NeoPets is a gaming web site that lets you have virtual 'pets'. You play various NeoPets games to earn NeoPoints, so you can feed your pets. However, my daughter's NeoPets were always starving because she couldn't play their games well. :-( So, I made this program for her. Anyways! Don't look at it for the NeoPets tips, look at it for tips on how to control IE through VB! It shows you how to navigate to various sites, wait until they load, click buttons, do generic mouse clicks and drags, extract text from the web page, fill in text fields on the web page, do 'screen scraping', press keys, and more. Feel free to use this program however you wish - but DON'T give me any credit, I don't want to know what you use it for. :-D

6_2008-2009 #195759
VBCam 2000

A VB replacement for the old WebCam 2000 software, which no longer works under Windows 2000. It's a WebCam with a difference - it doesn't take the picture until a request comes in! This is good for lowering the hits on your CPU AND bandwidth, because it doesn't waste its time taking a picture and uploading it every 5 minutes like most WebCams do. It sits on port 2000, and when a request comes in, it grabs the picture via TWAIN, saves it as a JPG, and sends the picture to the person.

6_2008-2009 #195760
Stop Scrollbar from Blinking

Stop the infernal blinking of the scrollbar in VB6.

6_2008-2009 #195761
Drag form without titlebar

Drag a form that has no titlebar! Add the routine listed below, and call it in the 'MouseDown' event of the form (or a control on the form): MoveWindow Me.Hwnd

6_2008-2009 #195762
Resize Picture to Fit Picturebox

A one-liner that resizes a picture to fit the dimensions of a picturebox. No API calls.

6_2008-2009 #195763
Record a WAV using Audio Compression

Shows how to use the Multimedia control that comes with VB, to record a WAV file using audio compression. No API's necessary!

6_2008-2009 #195764
One-liner - determine whether a string is alphanumeric

This one-line function returns whether or not a string consists of only the characters A-Z, a-z, and 0-9.

6_2008-2009 #195765
BabySmash!

A simple program that plays notes and draws multicolored squares every time a baby smashes any key. Illustrates how to play notes and entire songs with the Beep API, how to force a window to the foreground even in Windows 2000, how to draw a random colored and sized rectangle, and how to 'appear' to disable the Windows key under Windows 2000 (where SystemParametersInfo doesn't work).

6_2008-2009 #195766
Simple Video Capture

A simple video capture program, in only 44 lines of code. Now includes a button to change video size, and a button to change video source. For a more complete implementation, go to Ray Mercer's site at www.shrinkwrapvb.com

6_2008-2009 #195767
Add Colored Text to RichTextbox

Adds the text to a textbox, checking for length overflow. First, it checks, and if the textbox exceeds 15,000 characters, it strips out all but the last 2000 characters to make room for the new text. It doesn't break in the middle of lines - it only deletes 'whole lines.' Then it adds the text to the end, using the color you specified (if any), and scrolls to the end of the textbox. I use it all the time, got tired of cutting/pasting out of old projects, thought I'd put it here on PSC.

6_2008-2009 #195768
Simple ADO DataCombo Example

Explains how to hook a 'lookup' combobox to a data field at runtime. Doesn't use the ADO control - uses pure recordset manipulation. Illustrates what the differences are between 'DataSource' 'RowSource', 'BoundColumn', 'DataField', and 'ListField'. M$ documentation is truly bad at explaining this topic.

6_2008-2009 #195769
Inheritance Without Containment

This example illustrates how to set up inheritance in VB, without using containment ('has-a') processing. The data structure is very flexible, as each class and object instance is basically a hash table (a dictionary in VB). It usess 'CallByName' to call the appropriate routine based on type, at runtime. Note that this could be made much more efficient and speedy by using a custom hash table class and enums instead of strings for properties, but I left that out to simplify this example.

6_2008-2009 #195770
AVI, MP3, WMA, Ogg, Midi, and more player!

This program allows you to play audio and video files in various formats, including MP3, Ogg, WAV, WMA, AVI, and more. It uses DirectShow, and doesn't require any DLL's or custom OCX's.

6_2008-2009 #195771
Container Speed Testing - Hash, Array, Direct, List, Dictionary, Collection, Recordset

There's many different ways to store data in VB. This application tests a few of them. You shouldn't blindly choose the method that has the highest numbers! You should choose a method based on the usage pattern of your data. For instance, even though the timings say 'clsDirect' is fastest, for my application, a combination of clsHash and clsList proved to work 50% faster. If you don't know which method is best, try them all - they all implement interface IContainer, and swapping out one for another is a simple one-line code change.

6_2008-2009 #195772
Simple Slider

A simple slider control with no tickmarks, that looks attractive at small sizes (no appearance bug like exists in VB6's control). In addition, clicking on the slider bar jumps the thumb directly to that point - there's no need to 'page up' and 'page down' continuously to get there.

6_2008-2009 #195773
Perpetucal

A Javascript perpetual calendar optimized for printing. It handles holidays, birthdays, and events with timing like 'The fourth Thursday in November' (Thanksgiving) and 'The last Monday in May' (Memorial day).

6_2008-2009 #195774
Save and Load Objects from XML Files

This example illustrates how to save objects to XML files, and load objects from XML files, via serialization.

6_2008-2009 #195775
DirectoryTreeview

There are no drivelist, dirlist, or filelist controls available in VB.net. This example shows how to use a treeview to display a list of folders to a user, and allow the user to select a file. Compatible with VB 2005.

Languages
Top Categories
Global Discovery