Results for "Category: Files/ File Controls/ Input/ Output"
This function can do following things ... [1] Show default system confirmation Prompt to move File to Recycle Bin [2] Move directly the selected File to Recycle Bin without any Prompt [3] Show default system confirmation Prompt to remove File forever. [4] Delete File forever without any prompt. (Same lile Kill function)
This is a GUI for UPX, it is very simple but efficient. I made it for my needs. If you like it vote.
SWF Forage, a parser/extractor and a compiler of swf file. I found similar codes on psc but I wish to do it in a more clear and faster way. Extracting compiled flash(.exe) back to swf file. It is easy to do compile a swf file to a standalone exe without a separate palyer, but it depends on what version Flash you made the swf, because new features with new Flash. If new features used in swf, older player maybe play it correctly. So a workaround solution is to use the latest player:) And I included a small play game as resource and automatically extracted it to "Marshi Maro.exe" since psc will automatically remove any file with PE headers, no matter what you name the file. And I make these two functions into a class for handy usage. I used Copymemory for a better performance. Please feel free to leave any comments, bugs or suggestions are welcome! Next version will feature in automatically list IE cached swf files for users to select. Maybe I will develop a much more robust version in really parsing the frames of a swf file to gifs. Some basic function classes are found on psc, but the core swf storage class is written by me. I strictly follow the coding standard so that I hope you can learn abou it without too much difficult. Sorry for lack of detail code comments, but I think that the method is really simple.
Smart Storage is something like a file packager, you can add any file(s) of any format to the storage file(AddUpdateItem function) and remove them(DeleteItem function), of course. Now it comes into two separate version: with/without compression. You can choose zlib/huffman or no compression for each file. It uses index(file) technique for a better performance, thus it has VaccumStorage() function. And, the most inportant part is that it uses serialized section(chunk) technique to handle the CRC & compression of large file. And this project is originally aimed to be the storage part of Carles P.V's Thumbnailer 1.0 (image thumbnailer-viewer with GDI+)(http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=59677&lngWId=1), thus it includes the PictureFromByteStream() function to directly return a picture object from a byte array! Beside that, there are: GetItemText() function for direct return of plain text content; GetItemPicture() function for direct return of picture object according to the index; SaveItemToFile() function to save the content to disk file according to the index. Some of the codes are not written by me, such as cHuffman, cCRC. They are from psc, now they are back for you guys:) The zlib dll is generated at runtime of sample test since psc will remove all PE file. It is easy for you to remove the zlib dependancy, that's why I only enclosed it in the sample project. And I make all these functions into a class for handy usage. I also use Copymemory for a better performance. Please feel free to leave any comments, bugs or suggestions are welcome! Usage: 1.Simply open the sample storage, then click listed files, content displayed, doubleclick to save. 2.Select DB File->Create->Open->Select Item File, add it... Sorry for lack of code comments, but I think that the method is really simple. #update 5: added ReadItemContentChunk(), chunk by chunk to read a file, rather than read the whole file at once. added Version support. Improved OpenStorage result. Now with full DIBs support, from an image to store in storage, then from storage back to be an image! #update 6: fixed bug in ReadItemContentChunk() due to changed with serialized section chunk.
Smart Storage with 2 compressions(zip/huffman) Smart Storage is something like a file packager, you can add any file(s) of any format to the storage file(AddUpdateItem function) and remove them(DeleteItem function), of course. It uses index(file) technique for a better performance, thus it has VaccumStorage() function. And this project is originally aimed to be the storage part of Carles P.V's Thumbnailer 1.0 (image thumbnailer-viewer with GDI+)(http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=59677&lngWId=1), thus it includes the PictureFromByteStream() function to directly return a picture object from a byte array! Beside that, there are: GetItemText() function for direct return of plain text content; GetItemPicture() function for direct return of picture object according to the index; SaveItemToFile() function to save the content to disk file according to the index. Some of the codes are not written by me, such as cHuffman, cCRC. They are from psc, now they are back for you guys:) The zlib dll is generated at runtime of sample test since psc will remove all PE file. It is easy for you to remove the zlib dependancy, that's why I only enclosed it in the sample project. And I make all these functions into a class for handy usage. I also use Copymemory for a better performance. Please feel free to leave any comments, bugs or suggestions are welcome! Usage: 1.Simply open the sample storage, then click listed files, content displayed, doubleclick to save. 2.Select DB File->Create->Open->Select Item File, add it... Sorry for lack of code comments, but I think that the method is really simple. #update 1: now with compression and better sample, fixed some bugs and improve error handling #update 2: added huffman compression, CRC, GetItemText()/GetItemPicture() functions, fixed bugs in VaccumStorage. #update 3: added support for byte array(such as DIBs)/text etc. And ItemData for extract info. #update 4: added FilterItems() function for quick searcing. please visit a new version: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=59797&lngWId=1 with updates: #update 5: added ReadItemContentChunk(), chunk by chunk to read a file, rather than read the whole file at once. added Version support. Improved OpenStorage result. Now with full DIBs support, from an image to store in storage, then from storage back to be an image! #update 6: fixed bug in ReadItemContentChunk() due to changed with serialized section chunk.
Automatically add controls to the form at runtime, (by code, programmatically) and react to their events
Allows you to open a VB6 Project, View all forms in it, View all Controls on any given form, and preview the form at runtime. A good example on file and String Handling, and Dynamic Control creation.
This is my first try at creating windows controls. It is an Information bar (Similar to the one used on IE in the new Windows XP SP2). This is a new way, that Microsoft seems to be trying, of showing messages to the user that is not as intrusive as the me message box. Code improvements are welcome. Please leave any options, comments, suggestions rant, etc. ------------------------------------------------ Update: I added support for animation and automatic close out thru the use of properties and custom Showing and Hiding methods.
This example will create simple context menus without using contextmenu control.
Use this class to display the browse for folder dialog box. Browse for a specific kind of object (Folders, Printers, Computers, etc). Implementation of the FolderNameEditor class, FolderBrowser class, FolderBrowserStyles enum and FolderBrowserFolder enum.
[Updated 2005/11/14] This code will create a tab control similar to what you would expect from a Windows application. It allows you to organise your page or pages into tabs and for the user to select the tab to show the information neatly. Otherwise you are limited to having a very long page or separate pages which you need to build a nice navigation control (like this one). By copying 1 folder of files to your site and adding a few lines of code to your page, you can have this control up and running in no time. The result is a professional looking, and familiar Windows style tabbed interface. You can also optionally add icons to each tab and set many interface settings. Includes extensive demos and help file. Tested under IE, Mozilla and Firefox.
Do you need to enter image paths into a form? Using images in a web application? Or just need a tool to see which images you have on the server? Well here's a tool that can help you! This tool is similar to the Select Image Source of Dreamweaver or Browse for Image of other applications. It gives you a Windows Explorer-type interface to browse, preview and then select images. There are scripts that allow you to list all the images in a folder. Using JavaScript, this script allows you to select an image and update a form field. Features: - Windows Explorer-type Interface - File Explorer - browse directories - Preview Images before selecting - Support for GIF, PNG, JPG, and JPEG formats - Returns filename with website root path - Full Commented with documentation
If you would prefer not to fool around with the Windows Registry, you can save a user's options in a random access file instead. Random access files are fast (much faster than database files) and allow you to organize the user uptions as database-like records that may be accessed separately from one another. You can overwrite a single record without affecting or even needing to read the others. This code also shows how to give the user a right-click option to change the size of or hide the toolbar. Finally, it shows an optional splash screen. If your users hate splash screens (most do), but your graphic artist insists that you include one, give the user the option of shutting it off. Note: You need the icons included in this zip file for this code to run right.
A very COOL color pick dialog with a color dropper like Photoshop and Frontpage XP
A pure ASP method to generate dynamic images, without any components and very fast indeed. This example prevents automatic form submission by robots. If your web site is being overwhelmed with spam, automatic registrations or automatic forum submissions etc. then this script can solve this problem by inserting pictures in your HTML form that only a human can recognize. Download to read full article...
This is version 2 of my directory sizer. This has been brought on by the comments left for the previous submission. Its idea is simple but is useful where by it lists sizes of directories in a Treeview. In this version I fixed a little bug with duplicate keys and have also made the directories sorted by space used.
Suffering with the problem of lack of disk space I knew there must be a directory on my hard disk that contained a lot of information, this is why I wrote this application. Its simple in what it does but can provide useful information about your hard disk space. It allows you to select a drive and then by using a tree control lets you navigate through it displaying hard disk usage for each folder it sees..
Subclassing the .NET Treeview, Listbox and Combobox controls - Here are two completly functional sample Visual Basic .NET projects which demonstrate the rather simple but extremely powerful technique of subclassing the TreeView, ComboBox, or ListBox, such that you can store additional custom information behind (or inside) each individual Tree Node, Listbox Item or Combobox Item as you desire. There is no logical limit to the amount of additional information which can be stored alongside each individual node or item.
This code shows how to insert Combobox ,Link Button, DateTimePicker and Button in Datagrid.The code also shows how to save data from the dataGrid to database.
Monitor all your disks activity. ---- One double bargraph - Read/Write - for each local disk -- hideable - Autostartable with Windows session -- I've use (and corrected) the excellent source from Ed Wilk (links inside code) to generate the icone image from calculated bitmap. -- Sorry, all comments are written in french, but variable names are english