Results for "Category: Files/ File Controls/ Input/ Output"
This module contains a method which autosizes the columns of a datagrid to the length of the longest text in that column. The datagrid must have a dataset or datatable assigned to it already.
This is an inherited implemtation of a flat combo box for .Net which is sadly missing from the framework. The code works by overriding the WndProc proc and redrawing the control as flat. It also supports coloring of the drop down button and arrow. Enjoy and don't forget to vote!
Folder Monitor is a class written in Visual Basic 6.0 that monitors changes made to files in a specified directory (folder) or directories (folders) and its subdirectories (subfolders). It uses the Windows API functions WaitForMultipleObjects, FindFirstChangeNotification, FindNextChangeNotification, and FindCloseChangeNotification.
There are many methods you can use to return certain parts of a fully qualified path to a file. Here is the SHORTEST and FASTEST way to 1) return just the path, 2) return just the filename, and 3) change the extension of a filename. The code is so short that it is probably faster to keep it inline than to create additional functions. (I've done so here to better illustrate the parameters.
This project demonstrates how to extract large and small icons associated with files into an imagelist and displaying them in a listview with the filenames. The SHGetFileInfo function of the shell32.dll library is used, which makes the job much easier than before. The ImageList_Draw function in comctl32.dll is used to draw the icon in a picture box,from where it is placed into the image list. Other submissions on PSC do an OK job on large icons, but the small icons are a mess. Not here! Credits to Peter Meier for his DelRecent posting.
The System.Web.Mail namespace works on servers without CDO installed, this is a complete SMTP client, that supports MIME attachments.
You can save information about your books in it ! A nice example of database program.Included a kool sub-routine that creates shadow ! A Must Download ! ! !
Project includes a very simple Class Module to talk to Excel with a demo project showing how to export the contents of a ListView to a workbook, and then create a pivot table from it along with page setup. The class module is pretty basic but I hope it helps some with ideas of how they can now add Export to Excel options to some of their projects. NOTE: The end user must have at least Excel 97 installed for this to work. KEYWORDS: EXCEL OBJECT CLASS WORKSHEET WORKBOOK PIVOT TABLE
This code will show you how to do basic parallel port programming. This particular example shows you how to light up LED's that are plugged into the parallel port.
This gives an alternating line color on tables, it also allows a realtime highlighting.
This little program teaches you how to create a file, open in, then put the data from the file into controls. This is great for beginners
This will check if a dam*n file exists the easy and "right" way! Plz vote for this code if you like it!
Copies files from one location to another using file system object and also tests a users logon name to determine where to move files from and too on a network. Program moves the user profile and grabs files from the PC (favorites etc) ready for the user to set up the profile from scratch if profile is corrupt. Also backs up the profile to the users storage area. Please comment and rate it
This is a console menu foundation class. This allows you to create menus in seconds! Methods include: AddMenu(int ID, char *Name); AddItem(int ID, char *Name, void (*Function)()); Draw(); Run(); ...
Create file extension for your application.
A VB clone of Windows My Computer, A file browser that shows the files Icon, or and icon of what type it is, It shows you how you can have a file directory in a image list, rather than the built in boring one.
This is an example of a real time date checker / date picker / open other window form. With lots of parameters passing examples Using a mix of asp, vbscript, and java.
' This function is for use when parsing(splitting) a data string that ' has a comma delimiter. The normal VB Split function does not take into ' consideration of a comma embedded within a Fields' data string and ' will parse the information incorrectly. ' ' This function takes into consideration the a data field may contain ' a comma and parses the data as entire string. The data string being defined ' as the data between the two Double-Quote marks. This function also ' prunes the leading and trailing double quote marks
Example of the File System Object
Ever have an old program that you backed up the .FRMs\FRXs to, and suddenly notice that you need the pictures that where on that form. I bet its the worse feeling in the world, right up there with getting dumped. But wait! There is a light! FRX Restore will take that old dirty FRX File and turn it back into there old picture files! Pick and choose what pictures get extracted from the FRX data.