Click here to Skip to main content
14,774,693 members
Home » Discussions » Visual Basic
   

Visual Basic

 
AnswerRe: How to close an application completely Pin
Dave Kreskowiak2-May-07 5:03
mveDave Kreskowiak2-May-07 5:03 
GeneralRe: How to close an application completely Pin
nahitan2-May-07 5:07
Membernahitan2-May-07 5:07 
GeneralRe: How to close an application completely Pin
Dave Kreskowiak2-May-07 5:47
mveDave Kreskowiak2-May-07 5:47 
QuestionNeed Help with Outlook [modified] Pin
Jats_4ru2-May-07 4:08
MemberJats_4ru2-May-07 4:08 
AnswerRe: Need Help with Outlook Pin
RichardBerry2-May-07 4:40
MemberRichardBerry2-May-07 4:40 
GeneralRe: Need Help with Outlook Pin
Jats_4ru2-May-07 5:23
MemberJats_4ru2-May-07 5:23 
GeneralRe: Need Help with Outlook Pin
Jats_4ru2-May-07 5:31
MemberJats_4ru2-May-07 5:31 
AnswerRe: Need Help with Outlook Pin
Rupesh Kumar Swami2-May-07 5:10
MemberRupesh Kumar Swami2-May-07 5: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 5:32
MemberJats_4ru2-May-07 5:32 
QuestionHow to keep the sessions using web request Pin
vurugonda2-May-07 4:00
Membervurugonda2-May-07 4:00 
QuestionHow do you overwrite bytes in a certain position in a file Pin
RichardBerry2-May-07 3:42
MemberRichardBerry2-May-07 3:42 
AnswerRe: How do you overwrite bytes in a certain position in a file Pin
Dave Kreskowiak2-May-07 4:45
mveDave Kreskowiak2-May-07 4:45 
AnswerRe: How do you overwrite bytes in a certain position in a file Pin
ChandraRam2-May-07 5:27
MemberChandraRam2-May-07 5:27 
GeneralRe: How do you overwrite bytes in a certain position in a file Pin
RichardBerry2-May-07 5:51
MemberRichardBerry2-May-07 5:51 
GeneralRe: How do you overwrite bytes in a certain position in a file Pin
ChandraRam2-May-07 8:37
MemberChandraRam2-May-07 8:37 
QuestionHow to call a function from c++ dll in VB Pin
sandeepkavade2-May-07 3:41
Membersandeepkavade2-May-07 3:41 
AnswerRe: How to call a function from c++ dll in VB Pin
Dave Kreskowiak2-May-07 4:41
mveDave Kreskowiak2-May-07 4:41 
QuestionHow do you rename a file - Without opening and save as Pin
RichardBerry2-May-07 3:41
MemberRichardBerry2-May-07 3:41 
AnswerRe: How do you rename a file - Without opening and save as Pin
kubben2-May-07 4:08
Memberkubben2-May-07 4:08 
GeneralRe: How do you rename a file - Without opening and save as Pin
RichardBerry2-May-07 4:25
MemberRichardBerry2-May-07 4:25 
QuestionUsing API in VBscript Pin
Navneet Hegde2-May-07 3:21
MemberNavneet Hegde2-May-07 3:21 
AnswerRe: Using API in VBscript Pin
Dave Kreskowiak2-May-07 4:38
mveDave Kreskowiak2-May-07 4:38 
GeneralRe: Using API in VBscript Pin
CPallini2-May-07 5:29
mveCPallini2-May-07 5:29 
GeneralRe: Using API in VBscript Pin
Dave Kreskowiak2-May-07 5:50
mveDave Kreskowiak2-May-07 5:50 
GeneralRe: Using API in VBscript Pin
CPallini2-May-07 6:08
mveCPallini2-May-07 6: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.