Results for "Category: Files/ File Controls/ Input/ Output"
This Code uses the Microsoft XML Parser to Read an XML Source and Put it into a treeview. Ut Can Accept A path to An XML File EX:"C:\MYxml.XML" A string EX:"''" or a URL to an XML File Ex:"Http://www.MySite.Com/Myxml.XML"
Binary compare two files and save the differences to file. you need to 2 files with equal length, one original and one patched. please register syntools.dll in your windows system with regsvr32.exe. syntools.dll provides standard common dialog functions like file dialogs for open and save, color picker window, file exists function and more... you can download syntools.dll source right here at your mother of source codes. just follow the url below: http://www.planet-source-code.com/xq/ASP/txtCodeId.21368/lngWId.1/qx/vb/scripts/ShowCode.htm feel free to email me if you have any questions or suggestions. mailto: synaptor@hotmail.com
This 1 line of code will Open any file with their correct default program. EX: opens .Doc file with winword and .Zip file with WinZip..Or any file with their default program..
This Code will delete the Program Right After it close..
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: 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
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! :)