Advertisement

Results for "Category: Miscellaneous"

7_2009-2012 #220137
Multiple Command Line Arguments (switches) Example

This example shows how to implement multiple command line arguments or switches. The arguments passed to the application are shown in a listbox on the screen. Help is provided on how to run the program with arguments in VB. Use arguments ion the form "-h -c-t" (without the quotes)

7_2009-2012 #220138
Acces control thru variable

Be able to access multiple controls which require the same task with minimal code. Basically I wanted to be able to access controls without having to write numerous bits and peices to reach multiple controls with multiple forms and could not find what I needed so I decided to post. Here you are creating 2 control arrays with labels and all the code will demonstrate is randomly changeing the color of a randomly selected label. This is my first post so if a bit lame hope you at least find it usefull.

7_2009-2012 #220139
PsuedoTypeahead for Combo/List box using text box

To allow a user to typeahead to a specific item in a list/combo box allowing a little more flexability.

7_2009-2012 #220154
Various API

Shows use of BitBlt, GetDesktopDC, etc... Various Other Graphical API calls, by creating a small screensaver app. in which a fly crawls across your working desktop.

7_2009-2012 #220156
Learn How To Use A Listbox!!

Learn how to use a listbox the correct way! and please leave comments and vote!

7_2009-2012 #220183
Overlord

I have seen alot of code disabling the "X" on the form to prevent uses closing the form, i.e. in the middle of data processing, this is a little "work around" i have been using...no magic..(o: or heavy API calls

7_2009-2012 #220186
Auto resize flexgrid column widths

Automatically resize the columns in any flex grid to give a nice, professional appearance. Public sub automatically resizes MS Flex Grid columns to match the width of the text, no matter the size of the grid or the number of columns. Reads first n number of rows of data, and adjusts column size to match the widest cell of text. Will even expand columns proportionately if they aren't wide enough to fill out the entire width of the grid. Configurable constraints allow you to designate 1) Any flex grid to resize 2) Maximum column width 3) the maximum number of rows in depth to look for the widest cell of text.

7_2009-2012 #220197
A (Flex)Grid printing class, version 2

This class makes it easy to print a formatted grid on the printer, a PictureBox or a Form. You can set the font for the "normal" cols, the header cols and the footer cols, set the col alignment, the grid line thicknesses, the col widths, margins and other things. It also supports column and row merging. With a simple multi-page support ! This submission also includes a function (in a separate module) to "import" a MSFlexGrid allowing you to print such a grid quite easy. Now it also includes such code for DBGrids and ListViews ! This code doesn't base on the MSFlexGrid or any other OCX !

7_2009-2012 #220213
Calculate Checksum (CRC32 and CRC16)

Yesterday, I was lookin' for some code to compute a CRC32 checksum value but could not find any fast working code here. So I made this class file that allows you to calculate real CRC32 checksums. I also needed *FAST* code so this uses assembler code that you can use without actually knowing any assembler. This code is able to compute 56 MB/s on a P3 600Mhz!!

7_2009-2012 #220215
Huffman Compression/Decompression

This is a Compression/Decompression routine using Huffman Encoding/Decoding, and works best on normal text files. The code is *highly* optimized, and to show how fast this is I can mention another code sample found here on planetsourcecode (from August 1st 2000) which also uses Huffman Encoding. That code took 127 seconds to compress a 1.8mb textfile, but with my code this takes less than 1 second!! (that's an approvement of 12700%!!). That other code was worth 7 excellent points, how many is this worth? ;)

7_2009-2012 #220223
Easy way to reset IIS

An easy way to restart IIS

7_2009-2012 #220243
SolidWorks Viewer/Plotter

Batch viewing/ and plotting of Solidworks files. This is also extended to view word, excel, txt and picture files. Many more features is added in future. Take care,yall...

7_2009-2012 #220248
DATE/TIME COMMANDS

TIME/DATE Commands

7_2009-2012 #220250
I Don't Think So Buddy!

Keeps the form the same size no matter what, while your form can still look good with the MIN/MAX buttons....Makes a cool effect when those buttons are Pressed

7_2009-2012 #220259
ASP.NET PopUp Window Message

Create a PopUp Window to use like a MessageBox to use on the Web instead of response.write or populating a Label etc.

7_2009-2012 #220261
Center Text in the Windows Titlebar

This code will read the active titlebar height and font parameters. The Caption of the window is then centered with the date and time. I looked long and hard to try to do this. Most PC's don't use a proportional font for the titlebar and thus the amount of characters displayed depend on the size of the character (i.e. "WWWWWWWWWW" is wider than "llllllllll" in most non-proportional fonts). I found some info on the web and modified it to allow the caption to be centered in the area between the titlebar bitmap and the 3 controlboxes. The Titlebar size and the titlebar font & size can be different from machine to machine. These settings affect how much data can be displayed in the caption of the window, as does the screen resolution. I had originally tried constants based on the form width, but these were not 100%. Try changing the form size and the active title bar settings to see it in operation.

7_2009-2012 #220265
Grid Highlight

This code is in response to a question from armbararan, who wanted to highlight the navigation of the flex grid. I threw this together from some of my other projects as a quick example to allow highlighting of gridrow and gridcol in the msflexgrid.

7_2009-2012 #220267
XP CommandButton with Picture

Another Method of putting a picture in a command button with style set to normal (to preserve XP skin-ability). This is in response to a posting by Abílio Rodrigues "A Command Button with Icon (XP)" at http://www.planet-source-code.com/vb/scripts/showcode.asp?txtCodeId=57116&lngWId=1. I tried to post it as a comment on his posting, but received an email saying it did not work. So, it's easier to just upload it as a zip. This works for XP, but might work in other OS's.

7_2009-2012 #220290
Resource Loader

This class (or DLL) is used to load resources from resource-only DLL. You can load common picture formats (BMP, ICO, CUR, JPEG, GIF) directly to VB (through picture object). You can load also strings, HTML (as string or to file) and play WAVEs. All other resources can be saved to file on disk and loaded then (including those that can be loaded directly to VB. This file includes compiled DLL, class, example project and example resource DLL, created in VC++ 6.0.

7_2009-2012 #220291
Print Picturebox's Contents

Print the entire contents of a picturebox including all the control's contained in the picturebox.

Languages
Top Categories
Global Discovery