Results for "Category: Files/ File Controls/ Input/ Output"
This will mod PE headers of compiled EXEs to change their icons.
Get the system directory with 1 line of code and no API.
A small module to set the status message on PJL printers (HP's etc).
VOTE FOR ME PLEASE! SIMPLE CODE to use with resource files. With one line of code, you will load text strings and images from a resource file WITH NO API CALLS.
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.
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!
Author: BEN GRAY Email: [email protected] 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
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
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.
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 !.
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.
This demonstrates some use of the common dialog and richttext box control. It is simple and i thoguht it wouldnt require comments. Enjoy!
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!
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!
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...
Find and replace text strings in multiple files within a directory. This allows for wilcards. Please Vote if you like it! :)
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! :)
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
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)
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