Click here to Skip to main content
15,906,947 members
Home / Discussions / C#
   

C#

 
GeneralRe: Building a .NET User Control base Class Pin
TigerNinja_5-Feb-03 8:28
TigerNinja_5-Feb-03 8:28 
GeneralRe: Building a .NET User Control base Class Pin
leppie5-Feb-03 9:07
leppie5-Feb-03 9:07 
GeneralRe: Building a .NET User Control base Class Pin
FruitBatInShades5-Feb-03 10:43
FruitBatInShades5-Feb-03 10:43 
GeneralDeserialization problem Pin
Roman Shchugarev5-Feb-03 1:43
Roman Shchugarev5-Feb-03 1:43 
GeneralRe: Deserialization problem Pin
marcossl5-Feb-03 7:02
marcossl5-Feb-03 7:02 
GeneralRe: Deserialization problem Pin
Roman Shchugarev5-Feb-03 19:41
Roman Shchugarev5-Feb-03 19:41 
GeneralSplitters and WinForms Pin
Braulio Dez4-Feb-03 21:08
Braulio Dez4-Feb-03 21:08 
GeneralRe: Splitters and WinForms Pin
Furty4-Feb-03 23:04
Furty4-Feb-03 23:04 
GeneralRe: Splitters and WinForms Pin
Braulio Dez4-Feb-03 23:26
Braulio Dez4-Feb-03 23:26 
QuestionHow to load .resx file Pin
chito4-Feb-03 20:54
chito4-Feb-03 20:54 
GeneralWeb Browser Pin
chrisrowe4-Feb-03 18:44
chrisrowe4-Feb-03 18:44 
GeneralDynamic calls to Dll Pin
Ranjani Rajanikanth4-Feb-03 17:58
Ranjani Rajanikanth4-Feb-03 17:58 
GeneralAutogenerating collections Pin
Domenic Denicola4-Feb-03 16:36
Domenic Denicola4-Feb-03 16:36 
GeneralRe: Autogenerating collections Pin
Chris Austin4-Feb-03 17:04
Chris Austin4-Feb-03 17:04 
QuestionHow to convert a graphics object into Image object Pin
clarkwuzhe4-Feb-03 11:08
clarkwuzhe4-Feb-03 11:08 
AnswerRe: How to convert a graphics object into Image object Pin
Tomas Petricek4-Feb-03 12:05
Tomas Petricek4-Feb-03 12:05 
Generalopening a .msg file in c# Pin
ajma4-Feb-03 8:31
ajma4-Feb-03 8:31 
GeneralRe: opening a .msg file in c# Pin
shakilmailbox27-Feb-09 22:39
shakilmailbox27-Feb-09 22:39 
in vb.net convert it into telerik.convertor.com
don't forget to include import files & variables
Imports System.Web
Imports Microsoft.Office.Interop
Imports Microsoft.Office.Interop.Outlook.OlItemType
Imports Microsoft.Office.Interop.Outlook
Imports System.Data.SqlClient
Imports System.IO.Directory

variables are
Public sqlclient As String
Dim strApplicationPath As String = System.AppDomain.CurrentDomain.BaseDirectory()
Dim appOutLook As New Outlook.Application
Dim ObjShared As New clsShared
Dim dt As New DataTable
Dim sql As String

For Each b As Object In items

Dim k As Outlook.MailItem
k = TryCast(b, Outlook.MailItem)
Dim s1 As String
s1 = TypeName(b)

If ((k.Subject.ToLower.Contains(failureNotice.ToLower)) Or (k.Subject.ToLower.Contains("failure notice"))) Then
If k.Attachments.Count > 0 Then
Dim Atmt As Outlook.Attachment
For Each Atmt In k.Attachments
'code that save .msg file into Existing Folder
If Atmt.FileName.Contains(".msg") Then
Atmt.SaveAsFile(strApplicationPath + "\" + Atmt.FileName)

Dim Msg As Outlook.MailItem
Msg = appOutLook.CreateItemFromTemplate(strApplicationPath + "\" + Atmt.FileName)

'code that save data into server
Dim strTo1 As String
Dim strSubject1 As String
Dim strDate1 As String

strTo1 = Msg.To.ToString
strSubject1 = Msg.Subject.ToString
strDate1 = Msg.SentOn.ToString("dd-MMM-yyyy")

Msg.Close(Outlook.OlInspectorClose.olDiscard)
End If
Next
End If
End If
Next


Regards,
Mohammad Shakil

Mohammad Shakil
Software Engg.
Kurla,Mumbai,India
GeneralConnecting To Network Share Pin
Aisha4-Feb-03 7:13
Aisha4-Feb-03 7:13 
GeneralDelayed QueryInterface error Exception!!! Pin
EdgarBM4-Feb-03 1:42
EdgarBM4-Feb-03 1:42 
GeneralRe: Delayed QueryInterface error Exception!!! Pin
John Fisher4-Feb-03 8:08
John Fisher4-Feb-03 8:08 
GeneralRe: Delayed QueryInterface error Exception!!! Pin
EdgarBM9-Feb-03 21:47
EdgarBM9-Feb-03 21:47 
GeneralRe: Delayed QueryInterface error Exception!!! Pin
leppie10-Feb-03 7:23
leppie10-Feb-03 7:23 
GeneralRe: Delayed QueryInterface error Exception!!! Pin
leppie4-Feb-03 8:33
leppie4-Feb-03 8:33 
GeneralRe: Delayed QueryInterface error Exception!!! Pin
EdgarBM9-Feb-03 21:49
EdgarBM9-Feb-03 21:49 

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.