Click here to Skip to main content
15,899,024 members
Home / Discussions / C#
   

C#

 
AnswerRe: List with ListChanged and ListChanging events - asking for code review and suggestions (long source code included) Pin
Guffa16-Apr-06 3:45
Guffa16-Apr-06 3:45 
GeneralRe: List with ListChanged and ListChanging events - asking for code review and suggestions (long source code included) Pin
Patrick Klug16-Apr-06 6:10
Patrick Klug16-Apr-06 6:10 
QuestionTreeView Pin
babamara16-Apr-06 2:05
babamara16-Apr-06 2:05 
AnswerRe: TreeView Pin
Judah Gabriel Himango16-Apr-06 6:15
sponsorJudah Gabriel Himango16-Apr-06 6:15 
Questionhow to set Password on Access database ? Pin
hdv21216-Apr-06 1:55
hdv21216-Apr-06 1:55 
GeneralRe: how to set Password on Access database ? Pin
Guffa16-Apr-06 2:16
Guffa16-Apr-06 2:16 
GeneralRe: how to set Password on Access database ? Pin
hdv21216-Apr-06 3:42
hdv21216-Apr-06 3:42 
QuestionHow to receive result of sending the letter in MS Outlook? Pin
Vasya - dragon16-Apr-06 0:47
Vasya - dragon16-Apr-06 0:47 
Good afternoon.
1. In my program i send the letter through MS Outlook 2003. And so how to make so that it (Outlook) return in my program result of sending of the letter or I can not so I send:
<br />
// Create the Outlook application by using inline initialization.<br />
Outlook.Application  = new Outlook.Application();<br />
<br />
//Create the new message by using the simplest approach.<br />
Outlook.MailItem oMsg = (Outlook.MailItem)oApp.CreateItem(Outlook.OlItemType.olMailItem);<br />
<br />
//Add a recipient.<br />
Outlook.Recipient oRecip = (Outlook.Recipient)oMsg.Recipients.Add(CBTo.SelectedItem.ToString());<br />
oRecip.Resolve();<br />
<br />
//Set the basic properties.<br />
oMsg.Subject = "Letter";<br />
oMsg.Body = "";<br />
                <br />
//Add an attachment.<br />
string sSource = currentPATH + @"\Attachment.zip";<br />
String sDisplayName = "MyFirstAttachment";<br />
int iPosition = (int)oMsg.Body.Length + 1;<br />
int iAttachType = (int)Outlook.OlAttachmentType.olByValue;  <br />
Outlook.Attachment oAttach = oMsg.Attachments.Add(sSource,iAttachType,iPosition,sDisplayName);<br />
<br />
//Send the message.<br />
oMsg.Save();<br />
oMsg.Send();<br />


And so method Send simply sends the letter and if that show warning window Outlook, that the letter is not sent, and the program easy at this time works further... And it is necessary that it reacted to result! Method Send returns void. Can be other method?

2. How it is possible define a default box in MS Outlook through which letters by default send? Thanks.
Questionreading from zi[ file Pin
CoolASL15-Apr-06 23:56
CoolASL15-Apr-06 23:56 
AnswerRe: reading from zi[ file Pin
Vasya - dragon16-Apr-06 0:53
Vasya - dragon16-Apr-06 0:53 
QuestionXmlDocument.SelectSingleNode Pin
Ali Beirami15-Apr-06 23:41
Ali Beirami15-Apr-06 23:41 
AnswerRe: XmlDocument.SelectSingleNode Pin
Judah Gabriel Himango16-Apr-06 6:18
sponsorJudah Gabriel Himango16-Apr-06 6:18 
Questionhow to set Password on Access database ? Pin
hdv21215-Apr-06 22:58
hdv21215-Apr-06 22:58 
AnswerRe: how to set Password on Access database ? Pin
Guffa15-Apr-06 23:16
Guffa15-Apr-06 23:16 
GeneralRe: how to set Password on Access database ? Pin
hdv21215-Apr-06 23:27
hdv21215-Apr-06 23:27 
AnswerRe: how to set Password on Access database ? Pin
S Douglas15-Apr-06 23:59
professionalS Douglas15-Apr-06 23:59 
QuestionDeployment Pin
pankajgarg1215-Apr-06 22:28
pankajgarg1215-Apr-06 22:28 
AnswerRe: Deployment Pin
Ed.Poore15-Apr-06 23:15
Ed.Poore15-Apr-06 23:15 
Questionc# bluetooth device discovery PinPopular
celikada15-Apr-06 20:18
celikada15-Apr-06 20:18 
QuestionHow to export 3D Max object to Open GL C# ??!! Pin
suroor45315-Apr-06 17:50
suroor45315-Apr-06 17:50 
AnswerRe: How to export 3D Max object to Open GL C# ??!! Pin
Judah Gabriel Himango16-Apr-06 6:13
sponsorJudah Gabriel Himango16-Apr-06 6:13 
GeneralRe: How to export 3D Max object to Open GL C# ??!! Pin
can-inlife11-Apr-10 7:56
can-inlife11-Apr-10 7:56 
Questionquestion about no titlebar and resizable form Pin
abstar15-Apr-06 13:11
abstar15-Apr-06 13:11 
AnswerRe: question about no titlebar and resizable form Pin
jhaga15-Apr-06 13:39
professionaljhaga15-Apr-06 13:39 
Questionimage uploading Pin
TAREQ F ABUZUHRI15-Apr-06 9:43
TAREQ F ABUZUHRI15-Apr-06 9:43 

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.