Click here to Skip to main content
15,892,674 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to close an application completely Pin
Dave Kreskowiak2-May-07 4:03
mveDave Kreskowiak2-May-07 4:03 
GeneralRe: How to close an application completely Pin
nahitan2-May-07 4:07
nahitan2-May-07 4:07 
GeneralRe: How to close an application completely Pin
Dave Kreskowiak2-May-07 4:47
mveDave Kreskowiak2-May-07 4:47 
QuestionNeed Help with Outlook [modified] Pin
Jats_4ru2-May-07 3:08
Jats_4ru2-May-07 3:08 
AnswerRe: Need Help with Outlook Pin
RichardBerry2-May-07 3:40
RichardBerry2-May-07 3:40 
GeneralRe: Need Help with Outlook Pin
Jats_4ru2-May-07 4:23
Jats_4ru2-May-07 4:23 
GeneralRe: Need Help with Outlook Pin
Jats_4ru2-May-07 4:31
Jats_4ru2-May-07 4:31 
AnswerRe: Need Help with Outlook Pin
Rupesh Kumar Swami2-May-07 4:10
Rupesh Kumar Swami2-May-07 4:10 
hi jats use following code

pass required argument to following function


Function MailComponent(ByVal mailTo As String, ByVal cc As String, ByVal Bcc As String, ByVal subject As String,byval bodyofMessage as string)

Dim str, body As String
str = ""


If bodyofMessage Is Nothing Then
body = bodyofMessage
End If

If cc Is Nothing Then
cc = ""
End If
If Bcc Is Nothing Then
Bcc = ""
End If
If subject Is Nothing Then
subject = ""
End If


'string builder used for concatination
Dim MsgBuilder As New System.Text.StringBuilder
MsgBuilder.Append("mailto:" & mailTo)
If Not cc.Trim = "" Then
MsgBuilder.Append("&cc=" & cc)
End If
If Not Bcc.Trim = "" Then
MsgBuilder.Append("&bcc=" & Bcc)
End If
If Not subject.Trim = "" Then
MsgBuilder.Append("&subject=" & subject)
End If
If Not Body.Trim = "" Then
MsgBuilder.Append("&body=" & Body)
End If
If Not Attachment.Trim = "" Then
MsgBuilder.Append("&Attach=" & Attachment)
End If
'Debug.WriteLine(MsgBuilder.ToString)
ExecuteFile(MsgBuilder.ToString)
End Function

Function ExecuteFile(ByVal FileName As String) As Boolean
Dim myProcess As New Process
myProcess.StartInfo.FileName = FileName
myProcess.StartInfo.UseShellExecute = True
myProcess.StartInfo.RedirectStandardOutput = False
myProcess.Start()
myProcess.Dispose()
End Function


hope this helps


Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)

GeneralRe: Need Help with Outlook Pin
Jats_4ru2-May-07 4:32
Jats_4ru2-May-07 4:32 
QuestionHow to keep the sessions using web request Pin
vurugonda2-May-07 3:00
vurugonda2-May-07 3:00 
QuestionHow do you overwrite bytes in a certain position in a file Pin
RichardBerry2-May-07 2:42
RichardBerry2-May-07 2:42 
AnswerRe: How do you overwrite bytes in a certain position in a file Pin
Dave Kreskowiak2-May-07 3:45
mveDave Kreskowiak2-May-07 3:45 
AnswerRe: How do you overwrite bytes in a certain position in a file Pin
ChandraRam2-May-07 4:27
ChandraRam2-May-07 4:27 
GeneralRe: How do you overwrite bytes in a certain position in a file Pin
RichardBerry2-May-07 4:51
RichardBerry2-May-07 4:51 
GeneralRe: How do you overwrite bytes in a certain position in a file Pin
ChandraRam2-May-07 7:37
ChandraRam2-May-07 7:37 
QuestionHow to call a function from c++ dll in VB Pin
sandeepkavade2-May-07 2:41
sandeepkavade2-May-07 2:41 
AnswerRe: How to call a function from c++ dll in VB Pin
Dave Kreskowiak2-May-07 3:41
mveDave Kreskowiak2-May-07 3:41 
QuestionHow do you rename a file - Without opening and save as Pin
RichardBerry2-May-07 2:41
RichardBerry2-May-07 2:41 
AnswerRe: How do you rename a file - Without opening and save as Pin
kubben2-May-07 3:08
kubben2-May-07 3:08 
GeneralRe: How do you rename a file - Without opening and save as Pin
RichardBerry2-May-07 3:25
RichardBerry2-May-07 3:25 
QuestionUsing API in VBscript Pin
Navneet Hegde2-May-07 2:21
Navneet Hegde2-May-07 2:21 
AnswerRe: Using API in VBscript Pin
Dave Kreskowiak2-May-07 3:38
mveDave Kreskowiak2-May-07 3:38 
GeneralRe: Using API in VBscript Pin
CPallini2-May-07 4:29
mveCPallini2-May-07 4:29 
GeneralRe: Using API in VBscript Pin
Dave Kreskowiak2-May-07 4:50
mveDave Kreskowiak2-May-07 4:50 
GeneralRe: Using API in VBscript Pin
CPallini2-May-07 5:08
mveCPallini2-May-07 5:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.