Click here to Skip to main content
14,829,313 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questioncombo in datagridview Pin
aphei2-May-07 22:14
Memberaphei2-May-07 22:14 
AnswerRe: combo in datagridview Pin
Sonia Gupta2-May-07 22:57
MemberSonia Gupta2-May-07 22:57 
AnswerRe: combo in datagridview Pin
Rupesh Kumar Swami2-May-07 23:24
MemberRupesh Kumar Swami2-May-07 23:24 
AnswerRe: combo in datagridview Pin
RichFeldman3-May-07 8:10
MemberRichFeldman3-May-07 8:10 
GeneralRe: combo in datagridview Pin
aphei3-May-07 15:41
Memberaphei3-May-07 15:41 
Questionhow to link outlook through vb.net Pin
shalinikannan2-May-07 21:06
Membershalinikannan2-May-07 21:06 
AnswerRe: how to link outlook through vb.net Pin
Sonia Gupta2-May-07 21:10
MemberSonia Gupta2-May-07 21:10 
AnswerRe: how to link outlook through vb.net Pin
Rupesh Kumar Swami2-May-07 23:43
MemberRupesh Kumar Swami2-May-07 23:43 
hi,
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)

AnswerRe: how to link outlook through vb.net Pin
Dave Kreskowiak3-May-07 3:33
mveDave Kreskowiak3-May-07 3:33 
Questionconnect Vb To Ms Exel Pin
yoga budiman2-May-07 21:05
Memberyoga budiman2-May-07 21:05 
AnswerRe: connect Vb To Ms Exel Pin
Sonia Gupta2-May-07 21:13
MemberSonia Gupta2-May-07 21:13 
Questionhelp required about minimize and maximize window from through codig Pin
Suhail Shahab2-May-07 20:12
MemberSuhail Shahab2-May-07 20:12 
AnswerRe: help required about minimize and maximize window from through codig Pin
Christian Graus2-May-07 20:20
protectorChristian Graus2-May-07 20:20 
AnswerRe: help required about minimize and maximize window from through codig Pin
Chatura Dilan2-May-07 20:23
MemberChatura Dilan2-May-07 20:23 
GeneralRe: help required about minimize and maximize window from through codig Pin
Suhail Shahab6-May-07 21:01
MemberSuhail Shahab6-May-07 21:01 
QuestionOLEDB vs SQLClient Pin
Sujit Mandal2-May-07 20:09
MemberSujit Mandal2-May-07 20:09 
AnswerRe: OLEDB vs SQLClient Pin
Sonia Gupta2-May-07 20:12
MemberSonia Gupta2-May-07 20:12 
AnswerRe: OLEDB vs SQLClient Pin
Dave Kreskowiak3-May-07 3:30
mveDave Kreskowiak3-May-07 3:30 
QuestionAPI Functions Pin
Mkanchha2-May-07 19:09
MemberMkanchha2-May-07 19:09 
AnswerRe: API Functions Pin
Christian Graus2-May-07 19:15
protectorChristian Graus2-May-07 19:15 
AnswerRe: API Functions Pin
Nouman Bhatti2-May-07 19:18
MemberNouman Bhatti2-May-07 19:18 
AnswerRe: API Functions Pin
Tirthadip2-May-07 19:20
MemberTirthadip2-May-07 19:20 
Question.net framework Pin
Sonia Gupta2-May-07 18:09
MemberSonia Gupta2-May-07 18:09 
AnswerRe: .net framework Pin
Christian Graus2-May-07 18:18
protectorChristian Graus2-May-07 18:18 
GeneralRe: .net framework Pin
Sonia Gupta2-May-07 18:24
MemberSonia Gupta2-May-07 18:24 

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.