Advertisement

Results for "Volume: 6_2008-2009"

6_2008-2009 #206014
Get Current Logged On Username

Retrieve the username of the person currently logged into windows.

6_2008-2009 #194741
Passing a control array

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:

6_2008-2009 #201575
Saving and Loading Data with Serialization -- cooooool

Save entire classes or structs at a time to an xml file, and then read them back.

6_2008-2009 #206013
Movable Borderless Custom Shaped Form in VB .NET with Inheritance

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.

6_2008-2009 #194742
Dragging a form by a control

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.

6_2008-2009 #194743
Converting long file names

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:

6_2008-2009 #204986
aspEdit.NET v0.9.0

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)

6_2008-2009 #198584
Simple Sockets

This is a sample chat application using the TServerSocket and TClientSocket components that come with Delphi 5.

6_2008-2009 #204826
Simple POP3 Console MailChecker C# class

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.

6_2008-2009 #204736
Handle Key Board in VB .Net

Handle and trap different Keys in VB .Net

6_2008-2009 #201279
MySQL Web Interface

Web based database(MySQL) management tool http://brutus.snu.ac.kr/~smkim/mysql by SooMin Kim

6_2008-2009 #202871
ASP.NET Database Login

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.

6_2008-2009 #199753
Open an URL in default browser with ONE LINE OF CODE!

This code opens the default web browser with the specified url..(Notice the url has to be a PCHar!)

6_2008-2009 #199754
Execute another Program/File with one line of code.

This code executes another file/program from within your Delphi application. Can be quite handy!

6_2008-2009 #201861
File Functions: Read from file on disk / Create file on disk

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.

6_2008-2009 #206053
Sending mail in ASP.NET

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!

6_2008-2009 #194744
Cool screen wipes

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

6_2008-2009 #201862
A Winsock File Transfer example for VB.NET (and it works! :) Clocked at 1Meg/second over 10mBit LAN

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.

6_2008-2009 #194745
Determine when an app launches with SHELL is done

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.

6_2008-2009 #199755
Get the desktop as a CANVAS (So you can draw on it!)

Want to draw on the desktop like a Canvas? You can now! Simply use the proecedre below!

Languages
Top Categories
Global Discovery