Results for "Category: Files/ File Controls/ Input/ Output"
This assembly uses the TreeView control to present a powerful alternative to the old VB6 dirList and driveList controls. Code was taken from the MS web site; it took me ages to find this and thought you might find it as useful as I did.
I've made a tiny dato field control. It has a textbox and a little button next to it. The little button pops up a calendar, so you can pick your date with the mouse. It works fine. But it's a little annoying that I have to show the popup form before I can move it. It gives a little flicker that way. It would be great if anyone could solve this.
This will show you how to control any element of any form.
This code is just an example of how to use context menus in Windows Forms, using VB.NET. Hope this helps...
resize all the controls proportionaly with the resize of the form
Ive, done it, hehhee
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.
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.
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.
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..
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
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.
Extends DataGrid Functionalities (AutoSearch, AutoSize and MultiStyle)
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.
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
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.
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.
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.
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?
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.