Advertisement

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

6_2008-2009 #202450
DHTML Tab Control Simulation

This simulates a tab control in pure DHTML, using cascading stylesheets and VBScript to do the job. Mind you the VBScript code can easily be changed to JavaScript. With this, you can develop your own web application without haveing to use an Active-X control.

6_2008-2009 #202451
SysTrayIcon

In .NET the notifyicon control simplifies the task of putting an icon in the system tray and creating a popup menu by using the contextmenu control. But when I tried to minimize a screen to the system tray and remove it from the taskbar, I realized that when the time came to show it again, the form would not show up. It would be invisible on my desktop. So instead of removing the icon from the taskbar I tried hiding the form and this worked very well. I am posting the code here for others who may find a very simple way of using the NotifyIcon Control. The code is very simple and clean. If you like it, vote for me. thanks!

6_2008-2009 #202460
Rich Text Box / Common Dialog Box Tutorial

Author: BEN GRAY Email: cbsg@interact.net.au This tutorial demonstrates how to use Rich Text Box control, and mostly, how to use the Common Dialog control. It covers all concepts of the common dialog control, including flags. Now you can turn off that annoying "Open as read only" check box. It is commented heaps on every line. Special Thanx to: Ian Ippolito, Webmaster Planet Source Code www.planet-source-code.com

6_2008-2009 #202465
Alternative FileCopy - Use to copy opened access databases or to copy a file and make a prog. bar

I made this code because I need to copy an access database with the file open (in use). But, visual basic FileCopy method and windows apis for this pourpose fails in this case with the "File Access Error". So, I made this function that copy the file in blocks. You can alter the block size so the copy can be faster or slower. Well, thats it. I hope that this code can be useful to anyone! Ah, the error handle was generated with Ax-Tools CodeSmart 2001, an excelent Add-In for any visual basic programmer! Recommended! :) www.axtools.com

6_2008-2009 #202510
PrinterSupport

The PrinterSupport.dll was created in order to simplify printing documents. Included features are; 1. Paragraphs 2. Rectangles 3. Circles 4. Pictures (picture object reference) 5. format text (i.e. bold, size, etc) 6. Justification (full, left, right and centre) The printing is done using millimeters so that replicating documents for programs is relatively straight forward. The non-printable area of the printer is also taken care of. Note: The printer orientation is not modified at all but can easily be added if need be. There is also no current method of selecting a printer which can also be added to the dll if required.

6_2008-2009 #202511
How do I prevent a form from being submitted, until all required fields are correct ?

How do I prevent a form from being submitted, until all required fields are correct ? Only one field is used in the example. Every time the user clicks the OK button, the onClick event fires. If it passes the test the form will submit, else the focus will be placed on the textbox, an alert will appear and the submit button will be disabled, which stops the submit process. The onMouseMove event is used to enable the button again. I just added the error handling code in case an error comes up. It is actually not necessary, you can just enable the button again. I use the onControlSelect event on the submit button, because sometimes after being disabled, the button looks like it is embedded in the page. The above event fixes it. The above can be applied to multiple textboxes, and multiple conditions and arguments can be used. It saves time and space as the validation is done on the current page, before the form is submitted. Otherwise the user has to go through the laborious task of clicking the back button on the posting page to be redirected to the previous page, and fix a simple mistake. I've had comments that the JavaScript return false statement is a better solution. Unfortunately the return false; statement doesn't seem to work when you are using frames. I hope you find this usefull !.

6_2008-2009 #202542
Hierarchical Data Grid in ASP

This sample is to show Hierarchical Data not using .NET or third party components. Include sample North Wind database that comes with Microsoft Access. Nice Interface with VBScript functions and Cascading Style Sheets to enhance presentation. The sample shows how to use ADO Data Shaping and SQL syntax. You can change the SQL string to suit your needs.

6_2008-2009 #202563
A Simple notepad with options such as character limitation, new, open and save!

This demonstrates some use of the common dialog and richttext box control. It is simple and i thoguht it wouldnt require comments. Enjoy!

6_2008-2009 #202594
Hier Menus From DataBase v2

I have always loved the HierMenus found at Web Reference(http://www.webreference.com/dhtml) but I wanted to be able to grab information from a database to fill the nodes. Well one weekend and a case of Mountain Dew later, a totally reusable HierMenu from DB to Menu system. There are some things you might notice: 1: Lack of More then useful comments. Reason: you will have to be familiar enough with Java, DHTML and ASP to be able to really understand this. 2: GetRows() was used so if you are going to have lots of null Parent Nodes you might what to consider using MoveFirst, MoveNext Methods. Reason: GetRows() is way faster. 3: HierMenus is a Product if you use it give credit were credit is due. I did not in any way create the HierMenus they were already made, all I did was find a way to provide Data from a DB to the menus. Please Vote For Me!

6_2008-2009 #202595
Hier Menus From DataBase

I have always loved the HierMenus found at Web Reference but I wanted to be able to grab information from a database to fill the nodes. Well one weekend and a case of Mountain Dew later, a totally reusable HierMenu from DB to Menu system. There are some things you might notice: 1: Lack of More then useful comments. Reason: you will have to be familiar enough with Java, DHTML and ASP to be able to really understand this. 2: GetRows() was used so if you are going to have lots of null Parent Nodes you might what to consider using MoveFirst, MoveNext Methods. Reason: GetRows() is way faster. 3: HierMenus is a Product if you use it give credit were credit is due. I did not in any way create the HierMenus they were already made, all I did was find a way to provide Data from a DB to the menus. Please Vote For Me!

6_2008-2009 #202626
New Search in Files

This will search inside files for a string. Useful if you need to save on disk a list of files. It can search in any kind of file, but if you try with compiled ones (exes, dll) or zipped ones, it will most likely not find what you're looking for...

6_2008-2009 #202635
Find and Replace in multiple files

Find and replace text strings in multiple files within a directory. This allows for wilcards. Please Vote if you like it! :)

6_2008-2009 #202637
Combine Text Files

I wrote this prgram to augment MRTG (Multi Router Traffic Grapher). Each night i generate new configuration files for all my routers, when that finishes this program combines all the files into one primary configuration file. Please Vote if you like it! :)

6_2008-2009 #202640
Multi Column Combo Box

I created this control because i couldnt find anything else that created a multi-colum combo(drop down) box. This control is driven off a database query and is fairly straight forward to use. Once you have extracted the zip file into a directory you can look at the file /structure.txt. This file explains the directory structure and where everything is located. I hope you enjoy the control, i know i have seen numerous requests for one. And remember; Please vote! Thank You :) Purpose: The purpose of this widget is: 1. provide a multi column drop down box to users 2. provide a combo box's that doesnt sit on the top of a web browser so menus can flow over the control 3. provide a combo box that can allow user input

6_2008-2009 #202641
Dynamic ASP Hierarchical Data Grid

I have been using this for some time now to draw my Hierarchical Data Grids in asp. Based on the intrest in Hierarchical Data Grids i decided to post it for other to benefit from. I used the same msdn artcle to base the sample on. The server side is written in vbscript and the client side functionality is written in javascript. To change the display all that is required is a valid SHAPE statement. The display is handled by a single function call drawHierTable(oRS, iLevel, sParent, itCounter, clrMainRow, clrAltRow)

6_2008-2009 #202642
ASP Tab Dialog Control

UPDATED 11/4/3002 -- This code is used to create a tab control similar to the tabbed dialog control in vb, it comes in very handy when you have alot of information to display but no room to put it. You simply add the tabbed dilaog and organize everything into sections. With a couple lines of code you can add a tabbed dialog control to anything you wish. The tab control can create static tabs(HTML) or DHTML!!! This has been written in vbscript for the server and javascript for functionality at the client. In addition, when navigating the mouse over the tabs the mouse over will change the backgound image to a selection. The style used was from Windows XP. 11/4/2003 - Updated all the graphics from jpg to gif with transparency. Added a selected tab option to the dynamic tabs. It will now be driven off the tab that is passed in the function call. Added the photoshop files for the graphics so you can change the colors and style to suit your site. I included a few samples of other colors. Last i cleaned up the jump page for the sample, it looked plain. :) Even though the contest is over, I would appreciate your taking the time to vote! Thanks Tom

6_2008-2009 #202663
CheckandReplace

My coworker programs Access databases that pull information from an Oracle database. The front-ends of these databases need modifications on a regular basis. Since all the front end master files are kept in a single folder on one computer, and all the clients have the frontends in the same location locally (to reduce network traffic), he asked me to come up with a way to automatically check the modification date of the client files against the master files to make sure the clients were all running the most recent frontends. This is my first submission to PSC, so be gentle! Please vote!!

6_2008-2009 #202698
LiveUpdate ** UPDATED **

This application update your application with a FTP site, (like Norton). The application compare the local and FTP date of the files and update only if FTP was more recent. No component, no OCX, just API You must See !!

6_2008-2009 #202792
clsFile / colFiles (File search and File properties API classes) FAST!!!

I use these two classes to encapsulate a whole host of file oriented API calls... allowing me treat files as objects in my code and with the speed that is gained by going through the API. The clsFile class wraps around a single file, and exposes a whole host of properties of a file (and the volume it is on) including: 16 bit equivalent path, parsed filename, size, attributes (readonly, system, archive, etc), dates (created, accessed, and modified) and volume properties: label, serial no., is a cdrom, fixed disk, remote, network path, unc info, etc. (see the screen shot for the full list). Besides being a read only property class, I have modified the .Attributes enum and the .DateLastModified properties to allow changes... so that when you change the properties on the class, the corresponding properties on the file are modified. Eventually, this class could also be modified to extend functions such as Rename, Delete, Copy and Move that would work through the Windows Shell. I have the code to do this, but never bothered patching it in since in my coding, I never ran into the situation where I needed to do these actions with the file object by itself. The colFiles class acts as a collection for the clsFile class. In addition to the methods you would expect from a collection, this class also encapsulates the API functions for file searching (including recursive directory searches). If you EVER intend to use a file search in your applications, going through the API is the ONLY way to achieve this in my opinion. You'll find many examples that try to use directory list boxes to perform file scans, but these examples will be painfully slow. The API, on the other hand, is extremely fast. As fast as the built in Find/Search screen in Windows Explorer. Plus... you are able to search through paths other than your mapped drives. This covers the entire Windows Explorer directory tree (network drives, namespace extensions, etc). Don't judge this class by the screen shots before knowing that in the screen shot example, I was searching across my network which consists of a slow 10Mb hub. You'll have to try it for yourself on your set up to see why I swear by these two classes when performing seek and file property operations. For updates to this or other cool vb code or controls, check my web page:                                                                                                          http://members.tripod.com/thefrogprince/                                                                                                          If you are not currently involved in the coding contest, I WOULD REALLY APPRECIATE YOU VOTING FOR MY CODE. Will only take a minute or two to make an account, and while it won't make me any money... =) it will encourage me to keep posting good quality code and controls like this one. (check out my other posts too). =)

6_2008-2009 #202808
Removing a registry entry

After you have read my tutorial on adding a registry entry no doubt now you will want to be able to remove it as well.

Languages
Top Categories
Global Discovery