hex + decimal keycodes utility

406 byte By .paul. at 2007-12-5 11:59:07
heres a hex + decimal keycodes utility (see attachment)Public Class Form1 Private Sub Form1_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyUp Label3.Text = "key - " & e.KeyCode.ToString txtDecimal.Text = e.KeyCode txtHexadecimal....

Snapshot from webcam

692 byte By westconn1 at 2007-12-5 11:58:35
i started this project in interest of a thread for taking ID photosthe code, using AMCAP, has been put together from many sources including research in msdn, and several other forums and is not original by me, i had trouble to make my webcam work, or select which cam to use if more than 1 was at...

Split camal case function

412 byte By wild_bill at 2007-12-5 11:56:41
This function came in handy while I was automating some of my documentation, so I thought I would post it. It adds a space before any capital letters, so an input of "wildBill" would become "wild Bill". Private Function splitCamalCase(ByVal input As String) As String Return System.Tex...

Toolbar/ImageList

529 byte By Neato at 2007-12-5 11:55:38
I asked about this on the forums awhile back, and was given replies that these styles are the only way possible. Since I know alot of beginners and some intermediate visual programmers have questions about these two things, I decided to write a brief but in-depth example with three ways to imple...

Sorting a datatable for REALS!

2254 byte By silentthread at 2007-12-5 11:51:26
Sorting a datatable for REALS! Just like they said in the South Park show where Kenny goes to heaven with his playstation system. "This is for reals."Okay, folks here it is...I'm a fan of Response.Write, and the other day, I needed to response.write the contents of a datatable. Don't a...

VB6 - 31 Bit Encryption - To the Next Level

1783 byte By CVMichael at 2007-12-5 11:50:11
This is an improved version of my VB - 31 Bit Encryption function ( http://www.vbforums.com/showthread.php?t=231798)I had to put the code in a Class because there is some Initializing to do.This version is much better than the old one. The Seed value is calculated better, it is calculated from th...

Accessing Controls from Worker Threads

4961 byte By jmcilhinney at 2007-12-5 11:47:30
While it is legal to access a control from threads other than the one it was created on, it is simply not a good idea. From VS 2005 onwards it is not allowed while debugging by default. Any call that accesses a control's Handle on a thread that does not own that handle will either fail or...

[2005] Basic Line Control

5622 byte By dminder at 2007-12-5 11:46:22
For Lack of a better tool, I whipped this one together. I know I did not put all of the XML descriptions and Component details on it yet...That is all just fluff. Nice, easy control.Option Explicit OnOption Strict OnImports System.ComponentModelPublic Class LineControl#Region " Properties "...

VB6 - Count pages in a multipage .tif file or .pdf (no dependencies).

766 byte By Comintern at 2007-12-5 11:34:45
Just a quick and dirty routine I wrote for my current project instead of paying for someone else's .dll. This is so easy to do it should be a crime to charge for it, so I thought I would post it here. Technically, there are some changes that should be made (but in practice I haven't...

MidiNotes

937 byte By AlphaScorpious at 2007-12-5 11:31:00
After much searching here and on the web, it turned out that I'm not the only one who needed to be able to play individual midi notes. It also turned out that as far as .Net is concerned, there isn't that much info available.However, I managed to scrape up some bit and pieces and cobbl...

[2008] Accurate simulation of the solar system

563 byte By MaximilianMayrhofer at 2007-12-5 11:29:40
Hey all, after that very nice piece of code submitted in response to the orbiting button thread, I just finished the concept by creating a model of the solar system that is accurate, at least in terms of planetary motion. Size and distance from the sun are estimates at best.. The inclusion of e...

Validate Credentials Against User Record in Database

524 byte By jmcilhinney at 2007-12-5 11:16:58
Dim connection As New SqlConnection("connection")Dim command As New SqlCommand("SELECT COUNT(*) FROM User WHERE UserID = @UserID AND Password = @Password", _ connection)With command.Parameters .AddWithValue("@UserID", userID) .AddWithValue("@Password", password...

Changing the Background of an MDI Parent Form

1500 byte By jmcilhinney at 2007-12-5 11:11:30
I've posted a solution to this question many times already and it's come up again recently, so I figured a little CodeBank submission might be helpful. First, some background information:When you set the IsMdiContainer property of a form to True, the IDE adds an MdiClient control to y...

open / create & export data to Excel & stop Excel persists in the memory/task ma

10523 byte By rabid lemming at 2007-12-5 11:07:44
Hey All,I quite literally spent days trying to work out why when I exported data to excel I could not no matter what, remove the instance of excel form the task managerI tried every know method in every possible combination I could find on Google and ideas on these forums but it would not dieI d...

Generic DbProviderFactory Access

470 byte By vbdotnetboy at 2007-12-5 10:59:56
Core namespace classes and code:Namespace Core <Flags()> _ Public Enum ParameterUsage As Integer [Select] = 1 [Insert] = 2 [Update] = 4 [Delete] = 8 End EnumEnd NamespaceNamespace Core Public Interface IFetchDataObject Function InitializeObjec...

Using a Font not installed on the Computer

2802 byte By Lasering at 2007-12-5 10:59:46
Hi!!It may have happen to you a time where u needed to use a font that is not (or normally is not) installed in the target computer. You can install it, but installing fonts slows down the system and may need restart. So I went looking (well kleinma may have helped a little) and found this link...

Expose Spybot Search & Destroy Hidden TeaCup

317 byte By Fazi at 2007-12-5 10:56:42
Hai,i am using SpyBot S&D for last 3 Years. Today i found a hidden window that has a TeaCup image with Back Ground Transprent which i have never seen them using it. If you are running Spybot S&D and you have enabled the TeaTimer Tool, you can see that window using the attached code.:D...

[VB6] - Alarm Clock

891 byte By Jaquio at 2007-12-5 10:53:40
Here is an Alarm Clock I made awhile back. My alarm clock wasn't loud enough to wake me up for work so I decided to code my own and blast it through the speakers in the morning, lol.Everything on it can have its own color the alarm clock looks something like this,----|15:32:00|----(Note it...

[2008] [2005] VBInstaller - An installer made in Visual Basic!

1054 byte By RibbonFan at 2007-12-5 10:51:56
Many people have asked how to create an Installer in VB. So I have created VBInstaller. The installer actually extracts files from a Cabinet File, and then places them in a seperate folder. It then installs them to your system.How does it work?It works by reading a series of text files, it then...

[VB6] Sim-Chat - Advance Avatar Instant Messenger

1887 byte By psychotomus at 2007-12-5 10:48:49
What is Sim-Chat?Sim-Chat will be a new messenger that has been in development since 7/24/07 in Visual Basic 6 and will take the internet by suprise. Not only will it have all the basics of a normal instant messenger, but it will also have features such as Avatar Chats, Battle Chats, using Direc...

CPU Usage In Tray

209 byte By Edgemeal at 2007-12-5 10:44:58
Displays single or dual core CPU usage in the Windows system tray area.<br/>Made for WinXP. <br/>Users tell me it works in Vista 32/64 too, but you may have to launch it with "Run as Administrator".

Garage Sale Helper

155 byte By James Bearss at 2007-12-5 10:39:43
Hi, this is one of my favorite programs that I've made. It was designed as a garage sale helper, but can also work with a small shop...<br/>60446

Convert Ordinal Date to Georgian Date Format

1167 byte By ChrisR873 at 2007-12-5 10:31:00
Note: I'm posting this as finished working code. I was looking for how to do this throughout the forum and web but had difficulties finding what I needed and all the code that was posted here was complicated or more difficult then needed. Moderator please move to correct section if improper...

[FAQ] Why Cant I Send Headers?

2357 byte By penagate at 2007-12-5 10:22:36
BackgroundHeaders are one-line HTTP directives that are sent before the body of the response. The headers tell the user agent how to handle the response body, and give it any extra information that might be required. The most important functions of headers are to communicate the MIME content typ...

copying vbcode from posts

561 byte By westconn1 at 2007-12-5 10:21:14
if you get annoyed at the line numbering in the vbcode boxes when copying to paste elsewhereSub Main()Dim myarr() As Stringmyarr = Split(Clipboard.GetText, vbNewLine)For i = UBound(myarr) To 0 Step -1 If IsNumeric(myarr(i)) Then myarr(i) = ""NextClipboard.ClearClipboard.SetText Replace(Join(m...

VB - Give Your App An XP Theme (With Embedded Manifest File)

2407 byte By 03myersd at 2007-12-5 10:19:31
I have seen a lot of threads about asking how to give an app an XP theme. There have been almost as many asking how to embed the manifest file so that they don't have to send two files. There is even a similar one here in the code bank. But this one does not require you to install any other...

[2005] Left And Right Movements Using Mouse

184 byte By knxrb at 2007-12-5 10:16:24
I've done a sample project which allows the user to make a picture box move left and right using the mouse. <br/>It's not fantastic but hey I was bored!<br/>--<br/>knxrb

Basic Animation using ZOrder

6061 byte By metalmidget at 2007-12-5 10:15:46
This is a basic tutorial to show you one method of simple animation using pictureboxes and ZOrder. This tutorial was written for VB6, but don't stop reading if you use something else, as it could probably be adapted to VB.Net or even other languages without too much difficulty. Along with t...

Create Sql server DataBase by vb6

937 byte By gehad at 2007-12-5 10:15:13
this my first thread this Simple code use for create sql server database , you can enter any name to the textbox in this code ....the controls Textbox 1 , Button referencesMicrosoft Activx Data object 2.0' in general section Dim cnn As ADODB.ConnectionDim rst As ADODB.Recordsetin comman...

Move System Tray, Start Button etc.

223 byte By Fazi at 2007-12-5 10:12:09
Move System Tray, Start Button etc along the Taskbar using a Timer.<br/>Tested with Windows XP.<br/>Note- little update (removing an unnecessary if condition and few comments have been added) has been made to the code.

[2005] Displaying another softwares window inside your form (or another containe

3316 byte By Atheist at 2007-12-5 10:05:23
This code sets the parent of another window handle to any container on your form (or the form itself). You can launch a new process and stick it inside your form, or you can do it with an existing process.This example shows how to take an existing notepad process and parent set it as a child to...

Form Print Component

1979 byte By Merrion at 2007-12-5 10:04:43
Article describing how it works on Codeproject ( http://www.codeproject.com/useritems/MCLFormPrintControl.asp)The attached component is designed to be dropped on a windows form and it extends the controls on that form (i.e. it provides a set of new properties for the control in a manner similar t...

VB.Net(2005) WinAPI NamedPipe working example

1372 byte By 5applerush at 2007-12-5 10:03:41
I've been reading up on WinAPI NamedPipes over the last month, and was lucky enough to find to find a nice example in VB.Net on the Microsoft Knowledge Base. The sample code they offered compiled and provided round trip communication between two processes, however, the values sent back fro...

AlphaImage Control - PNG Compatible [VB6]

1302 byte By LaVolpe at 2007-12-5 10:01:31
A usercontrol, imitating VB's image control, that allows you to load PNGs and other image formats just by selecting the image. Several properties allow fine tuning the image, to include gray scaling, rotation, mirroring and more. Compatible with Win95 and up. It is highly recommended for...

How to: Create a setup.exe package that will only download VB runtimes if necces

9859 byte By VaxoP at 2007-12-5 9:59:04
Dont you hate having to distribute a 1.5mb setup exe because of the minority of people that do not have the visual basic 6 runtimes installed? I know for me, personally, it is extremely frustrating to know that my exe is 60kb, but my setup.exe is 1.5mb because it includes the runtimes.Finally,...

[Function] Check if number is a multiple

513 byte By dclamp at 2007-12-5 9:53:00
This function, given a number, multiple, will tell you if it can be divided evenly into it.function is_multiple($number, $multiple) { $num = $number / $multiple; $res = strstr($num, '.'); if ($res == false) { $return = true; } else { $return = false;...

VB6 - Fade picture

248 byte By CVMichael at 2007-12-5 9:51:21
This is a sample application on how to fade a picture to a specified color<br/>I tried to make the code as fast as possible, but I'm not very good with speed optimizations...<br/>It works much faster if you run this program compiled.

[VB.NET] Extract Pages and Split Pdf Files Using iTextSharp

10689 byte By stanav at 2007-12-5 9:35:19
Recently, a VB forums member posted a thread asking for the code to extract a certain page from a source pdf file... So I wrote some code to do this for that member. And since splitting a pdf file involving pretty much the same steps, I went ahead and wrote these too... Hope it'll help some...

FirGUI

235 byte By Bobalandi at 2007-12-5 9:30:52
Well, this is my first c++ win32 gui... It has the vc++ 6 workspaces and source, along with the exe if any one trusts me... I will be updating it as I go along... Learning... Weeeeee... Please help with code, etc... I commented mine...

VB6 very simple WHOIS app

1985 byte By foxter at 2007-12-5 9:10:55
Just posting it in case if anyone needs it. Please do post replies if you have any suggestions:Option Explicit'drop 2 text boxes, a command button, and a winsock control on your formPrivate sWinsockCommand As StringPrivate sDataIn As StringPrivate sDataBuff As StringPrivate Sub Command1_Cli...

Gaussian Random Number Distribution

5961 byte By zaza at 2007-12-5 9:10:22
By popular request, the code to generate random numbers in a Gaussian distribution for VB.Net. Usage:GaussNumDist(Mean, Standard Deviation, Sample Size)This will populate GaussNumArray() with the sample of numbers, whose distribution will have the mean and standard deviation specified.Code:Impor...

Form change event component

332 byte By Merrion at 2007-12-5 9:01:13
This component allows you to monitor all the controls on your form and to detect when the value of any of them are changed. The demo program alters the user interface to shwo which fields have been changed but you could also use it to decide if a record needs to be saved etc...All comments / de...

Time Zone Class

3015 byte By VBDT at 2007-12-5 8:59:27
Last updated: 09/24/2007Some times I update the component and post the updated date and the assembly version number so it is recommended to check it once a while.As all we know .Nets (up to framework 2) Time Zone class is not much of use since it only gives as objects that are associate with the...

Dynamically load forms

2692 byte By BillyBoyPR at 2007-12-5 8:56:32
Hi guys::wave: I am opening a new thread but actually it is to post a solution to a problem that I have been working with for the past two days and finally found a solution.I have seen this same problem asked in various threads in this forum and in others I have beeen searching. After a bunch of...

[VB2005] FolderBrowseDialog with expanded RootFolder selection

539 byte By kebo at 2007-12-5 8:54:10
This is a simple class that basically wraps the FolderBrowseDialog and includes access to a bunch more RootFolders. The class creates a Private instance of the FolderBrowseDialog and exposes the follow properties and methods...SelectedPathRootFolderDescriptionShowNewFolderButtonShowDialogDispose...

Fast Code Generators for VB6

4664 byte By nepalbinod at 2007-12-5 8:50:27
Hi friends,During my programming hours, I found so many things that consumed a lot of time but it did not include any skills. So, for fast and rapid development, I have created some functions that I use as code generators. They include codes which are basically used on all of the forms and I t...

[VB 2005] Scrolling Text - Right To Left

762 byte By knxrb at 2007-12-5 8:47:26
Created some scrolling text, can be used for news bulletins, announcements etc.You need:Label - name: label1Timer - name: timscroll - interval: 10 - enabled: true Private Sub timscroll_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles timscroll.Tick If Label1.Left =...

[VB 2005] Slide In/Out Side Menu

1502 byte By knxrb at 2007-12-5 8:47:24
I've created a slide in slide out menu for an application. This one comes from left of screen. If you want the menu on the right then changes the '.width 'for '.left' and change the '+' and '-' signs.You need: Panel - name: pnlmenu - dock: left - widt...

[2005] Generic Singleton Form (Maintaining Only One Instance of a Form)

3589 byte By jmcilhinney at 2007-12-5 8:43:15
Often times you want to ensure that you only have one instance of a particular type of form. This is probably most common with MDI child forms, where you only want to have one instance of a child form even if the user tries to open it more than once from a button or menu item. I've often...

Encryption & Decryption

1904 byte By Vanasha at 2007-12-5 8:36:47
Hello everyone, I have been lurking over the forums for some time now, not posting. I have decided to make my own contribution. I don't know if anyone else has done this before or whatever, and I don't know how strong it is..Public Function EncryptF(ByVal Password As String, ByVal...