Click here to Skip to main content
15,923,226 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questioncombo in datagridview Pin
aphei2-May-07 22:14
aphei2-May-07 22:14 
AnswerRe: combo in datagridview Pin
Sonia Gupta2-May-07 22:57
Sonia Gupta2-May-07 22:57 
AnswerRe: combo in datagridview Pin
Rupesh Kumar Swami2-May-07 23:24
Rupesh Kumar Swami2-May-07 23:24 
AnswerRe: combo in datagridview Pin
RichFeldman3-May-07 8:10
RichFeldman3-May-07 8:10 
GeneralRe: combo in datagridview Pin
aphei3-May-07 15:41
aphei3-May-07 15:41 
Questionhow to link outlook through vb.net Pin
shalinikannan2-May-07 21:06
shalinikannan2-May-07 21:06 
AnswerRe: how to link outlook through vb.net Pin
Sonia Gupta2-May-07 21:10
Sonia Gupta2-May-07 21:10 
AnswerRe: how to link outlook through vb.net Pin
Rupesh Kumar Swami2-May-07 23:43
Rupesh 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
yoga budiman2-May-07 21:05 
AnswerRe: connect Vb To Ms Exel Pin
Sonia Gupta2-May-07 21:13
Sonia Gupta2-May-07 21:13 
Questionhelp required about minimize and maximize window from through codig Pin
Suhail Shahab2-May-07 20:12
Suhail 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
Chatura Dilan2-May-07 20:23 
GeneralRe: help required about minimize and maximize window from through codig Pin
Suhail Shahab6-May-07 21:01
Suhail Shahab6-May-07 21:01 
QuestionOLEDB vs SQLClient Pin
Sujit Mandal2-May-07 20:09
Sujit Mandal2-May-07 20:09 
AnswerRe: OLEDB vs SQLClient Pin
Sonia Gupta2-May-07 20:12
Sonia 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
Mkanchha2-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
Nouman Bhatti2-May-07 19:18 
AnswerRe: API Functions Pin
Tirthadip2-May-07 19:20
Tirthadip2-May-07 19:20 
Question.net framework Pin
Sonia Gupta2-May-07 18:09
Sonia 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
Sonia 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.