Click here to Skip to main content
15,905,874 members
Home / Discussions / C#
   

C#

 
Questionundo-redo for listview Pin
mm3107-Apr-07 3:01
mm3107-Apr-07 3:01 
AnswerRe: undo-redo for listview Pin
Scott Dorman7-Apr-07 3:12
professionalScott Dorman7-Apr-07 3:12 
QuestionHow to output Unicode-characters in console? Pin
Zhendalf7-Apr-07 2:44
Zhendalf7-Apr-07 2:44 
QuestionInstalling Sql Server Express Database on Setting up Application Pin
xbiplav7-Apr-07 1:57
xbiplav7-Apr-07 1:57 
AnswerRe: Installing Sql Server Express Database on Setting up Application Pin
Nader Elshehabi7-Apr-07 2:25
Nader Elshehabi7-Apr-07 2:25 
QuestionVisual Align selection component Pin
MacCybex7-Apr-07 1:50
MacCybex7-Apr-07 1:50 
QuestionHow to set focus on control that is in content panel Pin
jaganil7-Apr-07 1:25
jaganil7-Apr-07 1:25 
AnswerRe: How to set focus on control that is in content panel Pin
kubben7-Apr-07 4:54
kubben7-Apr-07 4:54 
Questionhow to Get returned value from other application(s) ? Pin
hdv2126-Apr-07 23:54
hdv2126-Apr-07 23:54 
AnswerRe: how to Get returned value from other application(s) ? Pin
Colin Angus Mackay7-Apr-07 0:27
Colin Angus Mackay7-Apr-07 0:27 
GeneralRe: how to Get returned value from other application(s) ? [modified] Pin
electriac7-Apr-07 0:38
electriac7-Apr-07 0:38 
GeneralRe: how to Get returned value from other application(s) ? Pin
Martin#7-Apr-07 2:17
Martin#7-Apr-07 2:17 
GeneralRe: how to Get returned value from other application(s) ? Pin
electriac7-Apr-07 2:23
electriac7-Apr-07 2:23 
GeneralRe: how to Get returned value from other application(s) ? Pin
Martin#7-Apr-07 8:56
Martin#7-Apr-07 8:56 
GeneralRe: how to Get returned value from other application(s) ? Pin
electriac7-Apr-07 10:05
electriac7-Apr-07 10:05 
GeneralRe: how to Get returned value from other application(s) ? Pin
Martin#8-Apr-07 8:04
Martin#8-Apr-07 8:04 
GeneralRe: how to Get returned value from other application(s) ? [modified] Pin
electriac8-Apr-07 11:48
electriac8-Apr-07 11:48 
GeneralRe: how to Get returned value from other application(s) ? Pin
Martin#9-Apr-07 19:57
Martin#9-Apr-07 19:57 
GeneralRe: how to Get returned value from other application(s) ? Pin
hdv2127-Apr-07 5:59
hdv2127-Apr-07 5:59 
GeneralRe: how to Get returned value from other application(s) ? Pin
electriac7-Apr-07 6:09
electriac7-Apr-07 6:09 
Questionhow to playback avi stream with directShow? Pin
hdv2126-Apr-07 23:05
hdv2126-Apr-07 23:05 
Questionsimple email program.. Pin
Prashanth KP6-Apr-07 23:00
Prashanth KP6-Apr-07 23:00 
hi.. i wrote a simple mailing program.. it seems to work at times and fails sometimes.. please help.. whenever it fails it throws an SmtpException.. but it works most of the times.. the code is this..

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Text.RegularExpressions;
using System.Windows.Forms;
using System.Net;
using System.Net.Mail;


namespace hope
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

public void button1_Click(object sender, EventArgs e)
{
string sender1;
string recip;
string messg;
string subject = "Hope this reaches!!!";

sender1 = textBox1.Text.ToString();
recip = textBox2.Text.ToString();
messg = textBox3.Text.ToString();
sendmail(sender1, recip, messg, subject);
label1.Text = recip;
}


public static void sendmail(string sendr, string rec, string msg, string sub)
{
//create the mail message
MailMessage mail = new MailMessage();

//set the addresses
mail.From = new MailAddress(sendr);
mail.To.Add(rec);
//set the content
mail.Subject = sub;
mail.Body = msg;

//send the message
SmtpClient smtp = new SmtpClient("localhost");
smtp.Port = 465;

//try
//{
smtp.Send(mail);
//}
//catch (Smtp
}
}
}

please let me knw people..
AnswerRe: simple email program.. Pin
Pualee7-Apr-07 7:14
Pualee7-Apr-07 7:14 
Questionusing DirectX Video class in a C#.NET application Pin
xesion6-Apr-07 21:41
xesion6-Apr-07 21:41 
AnswerRe: using DirectX Video class in a C#.NET application Pin
xesion6-Apr-07 21:54
xesion6-Apr-07 21:54 

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.