Advertisement

Results for "Category: Files/ File Controls/ Input/ Output"

C_Volume2 #85171
Context Menu Example

This code is just an example of how to use context menus in Windows Forms, using VB.NET. Hope this helps...

C_Volume2 #85177
FORM RESIZE

resize all the controls proportionaly with the resize of the form

C_Volume2 #85182
Move a Fom/Control ONLY using the MouseMove Event, Nothing Else!

Ive, done it, hehhee

C_Volume2 #85274
DropDown Button Drive Control

Updated code as suggested see comments section.(12/8/04) The next generation of Drive Control. Now offers standard main button that you control as a regular button, Still has drive ready on hover, use only the space that a regular button would use and has resizable button features. This version allows the 4 standard flatstyles of a regular button including the system flatstyle for those of you who use Xp Style. The drop down drive control automatically closes in 10 seconds, when a drive or the close drive buttons are selected. I would like to take a moment to thank those of you who took the time to vote and make suggestions on the first ButtonBar control which inspired me to take the control to a higher level. This control was made by Myself and John Harald Apeland as co-programmer. Enjoy the control, votes and or suggestions for improvements are always welcome.

C_Volume2 #85276
DriveBar

Replace the drive combobox with a button bar control. Has green drive ready indicator or red not ready when mouse hovers drive button. Also on hover it displays drive info. Added the ability to rotate the bar control. This is accomplished by clicking the control on the form and open the properties window under appearances there is an option for vertical when true this sets the bar vertically on the form. the screenshot shows the DriveBar both ways. Please vote if you like this control. Special thanks to John Herald for the advice on the control. You probably will have to add a reference to Microsoft Scripting Runtime Libray which is located on the reference Com Tab as listed above. Then build the program before trying it.

C_Volume2 #85282
a Control - How to write simple control ( ownerdraw ) sample

This sample will teach you how to write your own controls. In this case blinking label control. This control is writen from begining. All ownerdraw. I hope it will help someone to learn how to override methods and write their own controls. Vote if you like it.

C_Volume2 #85283
A "DataGrid" -extended-: FullRowSelect + Disabled Cell editing.

1 part of code: I want to show you how you can set FullRowSelest in DataGrid + disable cell(textbox) editing. 2 part of code: How you can use DataGridColumnStyles to show fields in DataGrid that only you want to be viewable/avaiable. 3 part of code: How to make your own DataGridColumnStyles. This project is all documented ( on englis ). *****If you like it, please vote..

C_Volume2 #85286
rsButton

Simple but useful (i hope) button control Updated : - disabled state drawing - support for keys : Enter = Click Space = DropDown Correct focus rectangle drawing with TAB key

C_Volume2 #85287
ScheduleGrid

A web based grid that allows a user to schedule actions against a resource on a time base by simply clicking and dragging. A tooltip is displayed that shows the user what the time is where the mouse currently hovers. This control allows you to set up multiple actions, a start and end time of the grid, and time intervals for each cell in the grid. Time intervals are numbers that can divide into sixty; i.e. 1, 2, 3, 5, 10, 12, 15, 20, 30 and 60.

C_Volume2 #85289
GridEx

Extends DataGrid Functionalities (AutoSearch, AutoSize and MultiStyle)

C_Volume2 #85297
Progress Bar Example

This hummorus application explains how to use the Progress Bar Controls. This program is based on a spoof for people that have massivly oversized harddrives. This code was written in VB .Net (2002) but the logic can be used in most versions of Visual Basic.

C_Volume2 #85310
Key Pad (FULL)

Use this code to create a control that simulates a keypad. It wasn't very hard but I didn't see one on the site and thought I'd contribute something...... *NEW* a complete sample.....built in vs.net 2k3 I don't have access to 2k2...sorry. I'm

C_Volume2 #85390
RichieRich - RichTextBox that automatically colors specified words

This code contains a modified RichTextBox control that allows you to specify words that you would like it to color when they are appended or typed into the RTB. The program also maintains cursor position as well as lets you specify the color for each word you load into the dictionary.

Java_Volume1 #85485
An e-Book Reader, like Adobe Arcobat Reader

A 30 minutes e-book reading program to replace Adobe Acrobat Reader. This is a simple one. Thanks to J. Kelly Jr. for his GREAT File Binder submission.

Java_Volume1 #85516
HTTP File Download using Winsock

This is an example of how to use the Winsock control to download a file from an Web Server(HTTP Server). It is real simple to do, but it took me a few hours to figure out. I hope everyone likes it. I decided to do this, because I haven't seen much like it on Planet Source Code. I've updated it, fixing a couple bugs.

Java_Volume1 #85575
A Directory Lister

The code is essentially a catalging program with a variety of output formats. The source code is continually updated and a compiled version is available at http://www.octa4.net.au/tonywaite/vb/vb.html Let me know what you think?

Java_Volume1 #85581
Memory Mapped File Wrapper Class

A Memory Mapped File resides in virtual memory from the moment it is opened until it is closed. This makes access to it very fast, in fact read and write merely consist of data moves in memory. All parts of the file are accessible by means of a zero based offset and the length of the data chunks you can transfer is only limited by the file size itself. The system will swap out and in pages of virtual memory as necessary. Only when you close the file the data are "lazily" written to disc, and the Physical Write Operations are limited to the altered memory pages. When you open an MMF you are required to supply an estimate of how large the file is gonna be. Any reasonable estimate will be fine, however, you cannot exceed this estimate, ie you can't extend a file while it is open, but you can truncate the file size to the actual size used when you close it. You can extend an existing file by giving the appropriate estimate when you open it and truncating it to the larger size when closing. MMFs are byte oriented and that requires a bit of understanding the data types which VB uses and how they are represented physically. The class contains tools however to handle the different aspects.

Java_Volume1 #85607
Get Shortcut's Target

After looking all over on PSC i was unable to find Short, Simple and Clean code to get the target path of a window's shortcut (.lnk) file, so here is an easier way.

Java_Volume1 #85616
File Lock

This code is based on the Windows 95, Windows 98, and Windows 98 Second Edition glitch in file viewing. Be very careful with this tool for if you lock the folder that contains the program, the program will not run. For example if this program is in your C:\Program Files\Lock\ folder and you lock Program Files the program will not run. There a few safety features. First you need to create a shortcut to the EXE (when you compile it or just rem the line in the frmLoad Form_Load section that checks for the Command$). Create a shortcut to the EXE and give it a command line of shortcut. (If you edit the properties of the shortcut file and find the location of the program. at the end of that add "shortcut" without quotes). Next your mouse needs to be in the upper left hand corner of the screen at co-ordinates 0,0. I would suggest giving the shortcut a "hot key" or using the keyboard to open it. Without the command line "shortcut" and the mouse being in the upper left hand corner of the screen the password box will not appear. Now the initial password (default) is "maxx" without the quotes. Once in the program you can change the password. You can always delete the string from the registry and the password will default back to maxx. The file/folder locking feature is due to windows 98se and belows glitch. DOS can read characters windows can not. So by going in dos and using an ALT code to rename a file/folder it will rename it. However windows will not be able to read the alt code and will give the file/folder an underscore. You will not be able to open/explore or delete the locked folder/file. In my program I use the alt code of alt+0254 or chr$(254). If for some reason you mess up a file or folder and the program can not rename it or if you locked the program itself you can manually fix it. Either load a dos prompt or restart in dos. The command used to rename files in DOS is REN or RENAME. The format for ren or rename is the same and goes as follows. REN (Source Path and File Name) (New File Name) for example: REN C:\Clever.txt Smart.txt this will rename the file Clever to Smart. To get rid of the lock you will need to use alt plus the number-pad. Lets say clever was locked. You would need to do this REN C:\Clever(hold alt and press 0254).txt Clever.txt When you hold alt and press 0254 it will insert a box, that is the alt code. When you hit enter the file/folder should be renamed and everything should be okay.

Java_Volume1 #85623
AutoFileCopy

I made Auto File Copy to do a auto backup of a folder and subfolders twice a day to me USB drive, and only copy the new and modified files. All setting is stored in the registry. At 16:55 you can backup 5 GIG’s and only copy the files that have changes. Enjoy and please leave comments and a vote if you like it. Thanks to the two submissions that I borrowed code from (mentioned in code) The zip has been replaced with corrected code.

Languages
Top Categories
Global Discovery