SAMPLES - CLASS MODULES    


* NOTE : If you have problems downloading these files, try holding the <SHIFT> key and left-click on the URL of the file.  If that doesn't work, right-click on the URL of the file and select "Save Target As..." or "Save Link As..."

    Name:   Description:   Required:
cApp.vb  
This class module is designed to give you all the functionality available to you via the "App" object in Visual Basci 5/6. Simply add this module to your project and call the "App" object just like you used to in VB5 and VB6.

  Nothing

cCDONTS.vb  
This class module allows you to easily send Emails via the CDONT's COM object. The "SendEmail" method uses the parameters passed to it to send a simple Email (doesn't support attachments). The "SendEmailEx" and "SendEmailAdv" both use the properties of this class to send a more complex Emails (supports multiple attachments seperated by PIPE "|" ). All the "SendEmail*" methods support 1 FROM address, and multiple TO/CC/BCC addresses seperated by semi-colon ";".

  CDONTS.DLL

   - and -

  (IIS 4.0+ or
  Exchange 5.5+)

cCDO_NET.vb  
This class module allows you to easily send Email via the "System.Web.Mail" namespace.

This class module is just like the "cCDONTS.vb" class module, but it has no dependencies.

  Nothing

cDownload.vb  
This class module makes it easy to download files and track the download progress in real time using native .NET CLR functions.

  Nothing

cDownload1.vb  
This class module makes it easy to download files using the MSXML 2.0 (MSXML.DLL) library (which is distributed with every version of Internet Explorer equal to or later than 4.0).

  MSXML.DLL

cEmail.vb  
This class module makes it easy to send Emails via the specified SMTP server.

  Nothing

cError.vb  
This class module makes it easy to trap, report, and debug errors as they occur in debug mode, or after your project is compiled.  You have the option of logging your error to file, logging your error to the system event log, logging your error to the Debug/Output window, showing your error information in a MsgBox, and/or sending an Email with the error information.  You only need 1 line of code to setup this error object, then 1 line of code in your "On Error GoTo" error trap, or "Try...Catch" error trap.  The rest is done for you.

cEmail.vb
cEventLog.vb

cEventLog.vb  
This class module makes it easy to log information to your computer's event log, or the event log of any specified computer on your network (assumeing you have privilages to do so).

  Nothing

cOLEDB.vb  
This class module makes it easy to access any OLE DB compliant data source given the correct connection string.  It uses the System.Data.OleDb namespace.

  Nothing

cODBC.vb  
The cODBC.vb class module is the same as the cOLEDB.vb class module, only it uses the System.Data.Odbc namespace instead of the System.Data.OleDb namespace.  ODBC can give you access to a variety of data sources (including text files, MS Excel files, and pre-defined DSN connections).  ODBC also allows you to use the traditional "ADO method" of executing a parameterised SQL query using question marks to indicate where parameters should be (as apposed to the new .NET style of named parameters using the @ symbol plus the parameter's name).

  Nothing

cSqlClient.vb  
The cSqlClient.vb class module is the same as the cOLEDB.vb class module, only it uses the System.Data.SqlClient namespace instead of the System.Data.OleDb namespace... so it is optomized for MS SQL Server and will perform better.  If you are using any data source other than MS SQL Server, use "cODBC.vb" or "cOLEDB.vb".  Otherwise, you should use "cSqlClient.vb".

  Nothing

cStdOle.vb  
This class module makes it easy to convert back and forth between the OLE Pictures, Fonts, and Colors used in Visual Basic 5/6 and the Pictures, Fonts, and Colors used in VB.NET. You can keep using the old style Pictures, Fonts, and Colors if you include the file "STDOLE2.TLB" as a reference to your project, but using this class module makes it so you don't have to include that file as a dependency / reference.

NOTE: If the VB.NET development environment gives you an error while trying to open this file, simply select it in the "Solution Explorer", right click on it, and select "View Code". You can also type "cStdOle.ConvertFrom_OleColor" somewhere in your project and right click on that and select "Go To Definition".

  Nothing