Click here to Skip to main content
15,896,201 members
Home / Discussions / C#
   

C#

 
QuestionHow to set keyboard hook in C# ? Pin
Yanshof23-Dec-07 0:15
Yanshof23-Dec-07 0:15 
AnswerRe: How to set keyboard hook in C# ? Pin
Anthony Mushrow23-Dec-07 0:29
professionalAnthony Mushrow23-Dec-07 0:29 
AnswerRe: How to set keyboard hook in C# ? Pin
Giorgi Dalakishvili23-Dec-07 8:08
mentorGiorgi Dalakishvili23-Dec-07 8:08 
QuestionHow can i controll an email through C# Pin
MissEng23-Dec-07 0:04
MissEng23-Dec-07 0:04 
GeneralRe: How can i controll an email through C# Pin
Christian Graus23-Dec-07 11:22
protectorChristian Graus23-Dec-07 11:22 
GeneralRe: How can i controll an email through C# Pin
MissEng23-Dec-07 12:47
MissEng23-Dec-07 12:47 
GeneralRe: How can i controll an email through C# Pin
Anthony Mushrow23-Dec-07 13:31
professionalAnthony Mushrow23-Dec-07 13:31 
GeneralRe: How can i controll an email through C# Pin
MissEng23-Dec-07 13:47
MissEng23-Dec-07 13:47 
ok this is my first time to try to ask about help

this is my code i used to do

//Server code
private void button4_Click(object sender, EventArgs e)
{

TcpClient clientSocket = new TcpClient("10.40.145.212",110);
NetworkStream NetStrm = clientSocket.GetStream();
StreamReader RdStrm= new StreamReader(NetStrm);
tbStatus.Text += RdStrm.ReadLine();
sendPOP3cmd("USER "+ "Panel@wireless.com" + "\r\n",NetStrm);
sendPOP3cmd("PASS "+ "panel"+ "\r\n",NetStrm);
string Data = sendPOP3cmd("STAT\r\n",NetStrm);
string[] BreakDown = Data.Split(" ".ToCharArray());
int messageCount = Convert.ToInt32(BreakDown[1]);
for (int i=1;i<= messageCount;i++)
{
StringBuilder message = new StringBuilder("");
Data = "RETR " + Convert.ToString(i) + "\r\n";
byte[] szData=
System.Text.Encoding.ASCII.GetBytes(Data.ToCharArray());
NetStrm.Write(szData,0,szData.Length);
string szTemp = RdStrm.ReadLine();
while(szTemp!=".")
{
message.Append(szTemp);
tbStatus.Text += szTemp+"\r\n";
szTemp = RdStrm.ReadLine();
}
if (message.ToString().IndexOf("free money")>0)
{
sendPOP3cmd("DELE " + Convert.ToString(i) +
"\r\n",NetStrm);
}
}
clientSocket.Close();

//searchFor(ID)

//searchFor (xxx);//put the ID you have read in here);
}

private void searchFor()
{
throw new Exception("The method or operation is not implemented.");
}
public string sendPOP3cmd(string cmd,NetworkStream NetStrm)
{
byte[] szData;
string returnedData = "";
StreamReader RdStrm= new StreamReader(NetStrm);
szData =
System.Text.Encoding.ASCII.GetBytes(cmd.ToCharArray());
NetStrm.Write(szData,0,szData.Length);
returnedData = RdStrm.ReadLine();
tbStatus.Text += cmd + "\r\n" + returnedData + "\r\n";
return returnedData;
}

first i have to click on the button to connect to the server through local network, but when i display the emails all of the emails display but i need the latest one only.

another thing is how to cut the email i get into parts for example the name and the email address that i can take the email address then search the Data base i have created

thanx alot
GeneralSQlTransaction and SQlDatareader! Pin
Navneet Hegde22-Dec-07 23:45
Navneet Hegde22-Dec-07 23:45 
GeneralRe: SQlTransaction and SQlDatareader! Pin
Xmen Real 23-Dec-07 15:01
professional Xmen Real 23-Dec-07 15:01 
GeneralFind CD-RW Drive Pin
mina_raha9622-Dec-07 22:54
mina_raha9622-Dec-07 22:54 
GeneralRe: Find CD-RW Drive Pin
GuyThiebaut22-Dec-07 23:59
professionalGuyThiebaut22-Dec-07 23:59 
GeneralGDI+ when transforming from world coordiate to page coordinate, the image appears vague Pin
followait22-Dec-07 22:02
followait22-Dec-07 22:02 
GeneralRe: GDI+ when transforming from world coordiate to page coordinate, the image appears vague Pin
Yaohui Lee22-Dec-07 23:42
Yaohui Lee22-Dec-07 23:42 
GeneralRe: GDI+ when transforming from world coordiate to page coordinate, the image appears vague Pin
Yaohui Lee22-Dec-07 23:47
Yaohui Lee22-Dec-07 23:47 
GeneralRe: GDI+ when transforming from world coordiate to page coordinate, the image appears vague Pin
followait23-Dec-07 2:38
followait23-Dec-07 2:38 
GeneralRe: GDI+ when transforming from world coordiate to page coordinate, the image appears vague Pin
followait23-Dec-07 5:51
followait23-Dec-07 5:51 
GeneralTableLayoutPanel and Getting a Cell by Mouse position Pin
arefkarimi22-Dec-07 21:10
arefkarimi22-Dec-07 21:10 
GeneralRe: TableLayoutPanel and Getting a Cell by Mouse position Pin
DannyAdler22-Dec-07 22:19
DannyAdler22-Dec-07 22:19 
GeneralRe: TableLayoutPanel and Getting a Cell by Mouse position Pin
Member 185714613-Dec-09 13:56
Member 185714613-Dec-09 13:56 
GeneralRe: TableLayoutPanel and Getting a Cell by Mouse position Pin
User 92714226-May-10 5:57
User 92714226-May-10 5:57 
Generalkey logger for windows Pin
eleateam22-Dec-07 20:58
eleateam22-Dec-07 20:58 
GeneralRe: key logger for windows Pin
Mustafa Ismail Mustafa22-Dec-07 21:09
Mustafa Ismail Mustafa22-Dec-07 21:09 
GeneralRe: key logger for windows Pin
Anthony Mushrow23-Dec-07 0:20
professionalAnthony Mushrow23-Dec-07 0:20 
GeneralRe: key logger for windows Pin
Scott Dorman23-Dec-07 1:38
professionalScott Dorman23-Dec-07 1:38 

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.