Advertisement

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

7_2009-2012 #235128
DataTreeView

Introduction At the time of this writing, the standard Windows Forms .NET TreeView control doesn't support the concept of databinding like the ASP.NET TreeView control. So, we are left writing our own solutions. This solution provides a standardized way to use databinding with the Windows Forms .NET TreeView control. This functionality will enable you to quickly develop user-friendly ways to create and view complex data information. It includes the Databinding as well as the following Design Patterns: Facade, Proxy, Singleton. It also includes custom 'Rule' classes to give the developer at design time the ability to derive primary key and foreign key data points. This is essential to adjusting the underlying Dataset when changes to the TreeView occur. Updates are also performed on a Asynchronous separate thread. The last item I'd like to mention is that this class does support two table DataSets, a Primary key table and a Foreign key table. Requirements The following were the initial requirements: Databind a DataSet to the TreeView and save results back to a Microsoft Access database. Design the solution to make it easy to reuse the class in different solutions. Encapsulate as much of the binding logic inside the custom solution and hide it from the UI developers. UI developers should have to write next to nothing for code to keep the TreeView in sync with the DataSet underneath it. Provide a sample for deleting nodes in the TreeView (via right click context menu) and have that deletion automatically reflected in the DataSet. Provide a sample for editing nodes in the TreeView (via right click context menu) and have the .Text property change automatically reflected in the DataSet. Provide a sample for inserting nodes in the TreeView (via right click context menu) and have the new node automatically reflected in the DataSet. Support drag and drop of TreeNode branches within the same TreeView and have the relationships automatically reflected in the DataSet. If the following columns are in the DataTable: Checked, ForeColor, BackColor, ImageIndex, or SelectedImageIndex, incorporate the following node properties when the TreeNode is created. If the any of these columns are missing, simply implement the default value for the TreeNode. Support drag and drop of TreeNode branches across multiple TreeView controls and have the relationships automatically reflected in the target DataSet as well as the source DataSet. Provide a sample for accepting and rejecting changes made to the same TreeView control giving the user the ability to undo their changes. Automatically commit changes to the source and target DataSet when a TreeNode branch is dropped on the target TreeView.

7_2009-2012 #235143
Dynamic Form Field Capture

This code will caputre all fields in an HTML form and create a template for a VBScript function that passes the fields to a stored procedure.

7_2009-2012 #235188
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

7_2009-2012 #235291
File Crypting Tool

Crypting program created for encrypt/decrypt files. It is very fast, and best for images (JPEG, BMP, GIF...), but you can use it for crypt-decrypt video or other files... No special encription metod was used, (just reversing some bynary data), so it is not good for textual files, use it only for binary files! - e. g. if you want to protect your images from viewing by other people :-) To encrypt/decrypt files, you have to choose one or more files, or folder where files you want to process exists. Only selected files (when check-box is selected) will be processed. When you choose some files or folders, all files in list-box are selected automaticaly. If you want to exclude a file from encrypt/decrypt process, uncheck it. By clicking on Start button, process starts. If a file is previously encrypted with this tool, it will be decrypted. A file that is not previously encrypted with this tool, will be encrypted.

7_2009-2012 #235300
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.

7_2009-2012 #235301
Simple and flexible gradient progress bar. Lots of features.

This is a very simple and easy to use progress bar with loads of features. It has either solid or gradient colors (for solid just make both colors the same). It has all the properties and methods you'd expect from a progress bar. You can change the all of colors, turn the percentage text on/off, increment the value by a given amount etc. You can set the direction of the gradient in any way you want: Horizontal (shown), Verticle (my favorite), Forward-Diagonal, & Backward-Diagonal. There are a few more features as well and the example highlights them all. The upside to this progress bar over all the others out there, at least for me, is that it is a class object. It paints everything in a panel and looks just like a real progress bar control because of it. The reason I decided to do this as a class object is because it compiles with your program so you don't have to redistribute a DLL file, and you can use it anywhere in your program where a panel is placed. This is by far my favorite progressbar control out there. And I made it, so that makes it even cooler for me. Enjoy, and please comment and vote.

7_2009-2012 #235326
Scan all Folders or Dir and put (create) the list into HTML or PDF file (Update)

Example how scan a Directory's and the relevant sub-directorie's, and create the list of file's in a HTML or PDF file that contains the list of folder's (link) with clickable links! Note: Clickable links not implemented in PDF File!

7_2009-2012 #235369
GridEx

Extends DataGrid Functionalities (AutoSearch, AutoSize and MultiStyle)

7_2009-2012 #235395
A listbox example

This code will show you how to 1: add to a listbox control, 2: Delete from a listbox 3: Check an item exists before adding or deleting. Hope you like, feedback always welcome.

7_2009-2012 #235400
Floppy Disk Format

This code is a demonstation on how to format a floppy with out using format.com and with out calling the SHFormatDrive API. This code allows you to format a floppy without a popup window. Currently it is set for 1.44mb only, but all the code is there if you want to play around with 702kb and 2.88mb. From what i understand this code only works on NT based systems.

7_2009-2012 #235414
CopySelf

Copy itself to a location specified.

7_2009-2012 #235435
Build big test files 30-Mar-2012

Ever have the need for a big test file? Now you can build one or more 1gb in size with the option to combine them into one very large file. === 30-Mar-2012 Updated documentation. Added modTrimStr.bas module.

7_2009-2012 #235502
Huge and Unicode file functions

come from Vietnamese, this unit will help you work with *HUGE* and *Unicode* files... Demo n Source included. Really cool, vote me :)

7_2009-2012 #235513
File Exists PLUS

Determine if a file exists and retrieve information about size, creation/modifed/access dates and file attributes, this could also be modified to retrieve version information as well. UPDATE: In Response to Solo's statement you can now also retrieve file version info and other information such as company name, file description, default language, etc.

7_2009-2012 #235515
INI to XML Class and Edit utility

I have seen several INI to XML conversion submissions on PSC, but they all seemed to lack some functionality, so I decided to write this. With this class you can convert INI files to compatible XML files and a create a new file. You can also create, delete and edit sections and keys as you wish. I think the editor is pretty easy to use, but have included a Word document that describes how to perform certain tasks. Please let me know what you think, bugs found, or any ideas for improvement.

7_2009-2012 #235517
Setting and getting file attributes w/o affecting other attributes - Updated

These two simple wrappers can be used for setting and retrieving individual or selected file attributes without affecting the other attributes of the file. For example, to set the Archive bit of a file you should not just set its attributes to vbArchive (32), as this will turn off any other attributes currently set. Normally you would need to get the file attributes, add the desired attribute to the current attributes, then set them again. These wrappers just hide the details of this process. Update thanks to redbird77. +++++++++++++++++++++++++++++++++++++++++++++++++++ With the GetAttrib wrapper you can easily test the current state of an attribute. You simply specify the attribute(s) and the function will return True if the specified attribute(s) is set to on. You can specify more than one attribute and True will be returned only if all specified attributes are turned on. +++++++++++++++++++++++++++++++++++++++++++++++++++ The SetAttrib wrapper simplifies the setting of an attribute to on or off, and will be set as desired irrespective of its current state. You can set more than one attibute at a time (eg. SetAttrib(sFile, vbReadOnly Or vbHidden) will set these attributes to on, no matter if they are on or off, without affecting other attributes that may be set. +++++++++++++++++++++++++++++++++++++++++++++++++++ My first version of the SetAttrib function used 'Xor' to turn attributes off, but thanks to redbird77, I have updated it to 'Not' which has eliminated a limitation of my version. The bottom line is that you can set a files attribute(s) to on or off without needing to know the current state of the specified attributes, while not affecting other attributes that may be set.

7_2009-2012 #235518
The Question of Existence

I have come across several different solutions for testing for a file's existance, from Dir to opening the file, testing for error, then closing the file again. I remembered an article/comment by Bruce McKinney that influenced my solution to this problem and thought I would share it.

7_2009-2012 #235520
FileTime Changer

This small application helps you to change the last access date and time and file created date and time. Has been helpful at times.

7_2009-2012 #235533
Help files

Make simple help files to support you're apps

7_2009-2012 #235546
Jz Friendly Text File Ops (Final Enhanced 1.2)

Friendly OCX for Text Files I-O Operations! OpenFile, Getline, PutLine, InsertLine, AddLine, RemoveLine, Backup, Restore, Update, Save As, TotalLines, and unique Event for all Errors; No file size limits; No APIs; No Classes; its easy to treat as many files as need - merely drag one for each file. Two Projects: The Activex and a Sample EXE. v1.2.00:- All commands return T/F, new commands 'OpenHole' and 'CloseHole', functions Exists, BakExists and NewExists.

Languages
Top Categories
Global Discovery