Results for "Volume: ASP_Volume2"
Retrieve the username of the person currently logged into windows.
Working with control arrays in VB3 was frustrating, but with VB4 you can pass a control array as an argument to a function. Simply specify the parameter type as Variant:
Save entire classes or structs at a time to an xml file, and then read them back.
Example shows how to create a movable custom defined form in VB .NET using inheritance. Custom shaped forms are created though use of Images and Transparency settings on the form. .NET features used in example: inherit, inheritance, overrides, shadow, protected, process.start (Opening URLs in explorer), region arrays, cursor / mouse position, no control timers, images, drawings image (replacement for paintpicture) and many more. Include heavy commenting and explanation throughout source. This example to a bit of time to do so please vote highly if you like the example.
This code is reusable and small enough to paste into whatever you're doing and instantly have a form that has no need for a title bar.
VB4's commands for dealing with file names (such as KILL, MKDIR, and FILECOPY) support long file names without programmer interaction. A number of the Win95 API functions will return only the short name, and you'll notice a number of short file name entries if you're digging through the registration database. Therefore, occasionally you'll need to convert a short file name into a long file name. This function lets you pass a long file name with no ill effects. The file must exist for the conversion to succeed. Because this routine uses Dir$ and "walks" the path name to do its work, it will not impress you with its speed:
aspEdit.NET is the successor of my popular aspEdit. This is a Online Website-Editor. You can (over the internet) create/delete directories, create/edit/delete files and a lot of other stuff. There are no server-side components needed. For using this code you've to create a new IIS-application, otherwise it won't work (with the current configuration)
This is a sample chat application using the TServerSocket and TClientSocket components that come with Delphi 5.
This example below is a very simple class that connect to you're isp provider and looks for mail. This class shows how to use the TCPClient class, how to create a new Thread , how to capture events (AsyncCallBack) from recieving data on the socket.
Handle and trap different Keys in VB .Net
Web based database(MySQL) management tool http://brutus.snu.ac.kr/~smkim/mysql by SooMin Kim
This is for all you ASP programmers out there looking for a way to validate users against a SQL database and are used to the old ADO RecordSource.EOF way like myself. You must change to represent your database.
This code opens the default web browser with the specified url..(Notice the url has to be a PCHar!)
This code executes another file/program from within your Delphi application. Can be quite handy!
This code simply writes to a file on the disk, or reads the contents of an existing file on the disk into a text box.
Sends mail in ASP.NET using VB.NET. I will post another sample of how to send attachments and other more advanced features later. Please vote!
You can achieve some cool form wipes with judicious use of the Move method. For example, to draw a curtain from right to left use this routine. It is also possible to wipe a form from bottom to top, and from both sides to the middle, using similar routines
This code (the first of its kind in the VB.NET section of PSC) will allow you to quickly and easily send a file over dialup, LAN or BroadBand. Works fine, and all the programs that i tested it on (from 20k to 200Meg worked fine after the transfer!) If you have a brief knowlage of file manipulation, this should be pretty simple to understand.
In VB3, you call GetModuleUsage() to determine when an app you started with the Shell command was complete. However, this call does not work correctly in the 32-bit arena of Windows NT and Windows 95. To overcome this obstacle, use a routine in both 16- and 32- bit environments that will tell you when a program has finished, even if it does not create a window. The IsInst() routine uses the TaskFirst and TaskNext functions defined in the TOOLHELP.DLL to see if the instance handle returned by the Shell function is still valid. When IsInst() returns False, the command has finished.
Want to draw on the desktop like a Canvas? You can now! Simply use the proecedre below!