Results for "Category: Files/ File Controls/ Input/ Output"
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.
Validates whether a given hard/floppy/network drive is valid
Determines if a file exists Improved version--detects hidden files too!
Format Floppy Disk using API:Here is the code on How to Format Floppy Disk using API. Note -- This code can format your Hard Disk as well, so you should be careful!!!!
How do I launch a file in its associated program? The Shell statement unfortunately only supports launching an EXE file directly. If you want to be able to launch, i.e. Microsoft Word by calling a .DOC file only, you can make your VB application launch the associated program with the document using the following method:
VB4's commands for dealing with file names (such as KILL, MKDIR, and FILECOPY) support long file names without programmer interaction. A number of the Win95 API functions will return only the short name, and you'll notice a number of short file name entries if you're digging through the registration database. Therefore, occasionally you'll need to convert a short file name into a long file name. This function lets you pass a long file name with no ill effects. The file must exist for the conversion to succeed. Because this routine uses Dir$ and "walks" the path name to do its work, it will not impress you with its speed:
16 AND 32 bit functions to read/write ini files--very useful!
.INI read/write routines mfncGetFromIni-- Reads from an *.INI file strFileName (full path & file name) mfncWriteIni--Writes to an *.INI file called strFileName (full path & file name) sitush@aol.com
Complete access to INI files through a simple class module, which works with VB4 16,32 and VB5. This class module allows you to read/write INI values, delete values, delete sections and query whole sections through a simple inteface.
Prompting the User for a Directory in Win95. Windows' common dialogs are great if you want the user to select a file, but what if you want them to select a directory? Call the following function, which relies on Win32's new SHBrowseForFolder function:
You create a funtion that can open a file with just one line of code.
This code returns a true/false if a specified drive/directory/pathname exists. This is a small, fast routine.