Microsoft's Visual Basic.......

These tips and tricks were collected from Internet and various software magazines. Here I tried my best to write the source from where I got these tips and tricks, however sometimes I won't able to give the source name.
If you'd like to submit a tip to Tarun's Desktop, please send it electronically to awara_dost@yahoo.com. Please include a clear explanation of what the technique does and why it's useful, and please indicate if it's for VBA, VBS, VB4 16- or 32- bit, VB5 or VB6.


1. SEND MAIL FROM VB5
If Microsoft Outlook is installed, you have an easy way to send e-mail from VB5. To use this technique with VB3, remove the With construct and fully qualify each object property reference :

Dim olapp As Object
Dim oitem As Object

Set olapp = CreateObject("Outlook.Application")
Set oitem = olapp.CreateItem(0)
With oitem
&nsp; .Subject = "VBPJ RULES"
&nsp; .To = "MONTEZUMA; other Names;"
&nsp; .Body = "This message was sent from VB5"
&nsp; .Send
End With

Source : Visual Basic Programmer's Journal, August 1998
submitted there by - Jim Griffith, Montezuma, Georgia.
Thanks to him



Last Update: January 24th, 1999
It's Awara Dost Creations.
Site Developed by Tarun Joshi