|
i've try to do it but it not work i need a help with this plz
|
|
|
|
|
If you've tried to do it, and came accross a problem, then give more detail about what you tried and the problems you encountered.
Once you've given sufficient information, people will actually be able to help.
For example, if i asked:
"I have made some code to merge two databases, how can i separate them again?"
Nobody knows how I merged the two databases, or anything about the databases themselves. How on Earth are they going to be able to help?
My current favourite word is: Bauble!
-SK Genius
|
|
|
|
|
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
|
|
|
|
|
Hi All,
There is problem with SQlTransaction
I have datatable filled from txt file .
Now before insert I check if the Row Exists
so I use sqlDataReder.
But I want to add the SQlTransaction , I am getting problem
Thanks,
Navneet
Develop2Program & Program2Develop
|
|
|
|
|
SqlConnection dataConnection = new SqlConnection();
SqlCommand dataCommand = new SqlCommand();
dataConnection.Open();
dataCommand.Connection = dataConnection;
dataCommand.Transaction = dataConnection.BeginTransaction();
hope it will help
Becoming Programmer...
|
|
|
|
|
hi
how to find CD-RW Drive?
tanks
|
|
|
|
|
What I usually do is press every button on the front of the computer until one of those CD drive thingies pops out.
This can take a while as I usually end up pressing the "off" or "restart" buttons in the process.
Alternatively you could check out this which I googled in two hits with "c# find cd drive": Clicketty
You always pass failure on the way to success.
|
|
|
|
|
The resolutiion of the original image is much higher than that it'll be displayed in page coordinate.
It's possible to make it clear in page coordinate, any way?
Thanks very much.
|
|
|
|
|
how about Graphics.ScaleTransform (Single, Single)?
|
|
|
|
|
and ... Graphics.SmoothingMode = HighQuality ?
|
|
|
|
|
|
|
Hi All,
I have a TableLayoutPanel on a form and I want to let the user drag and drop objects on to it. I need to find out on which cell the dragged object has been dropped. is there any way to do it?
Thanks a lot
Aref
|
|
|
|
|
Hi there,
What I would do is to create inside each cell a full-docked control, like an empty label, then on the TableLayoutPanel DragDrop event I'd get the cell by the position of the control:
private void tableLayoutPanel1_DragDrop(object sender, DragEventArgs e)
{
Point p = tableLayoutPanel1.PointToClient(new Point(e.X, e.Y));
Control c = tableLayoutPanel1.GetChildAtPoint(p);
TableLayoutPanelCellPosition cellPos =
tableLayoutPanel1.GetCellPosition(c);
}
Try it, it's working.
The cell that gets the drop is reprisented by cellPos.Row and cellPos.Column
Hope that help.
Danny
|
|
|
|
|
Hello danny,
What is the relevance of creating a full docked control as you have explained. It will be great if you could spare some time to explain.
Thanks,
CPM
|
|
|
|
|
... because this code works only if there is some control at clicked position.
tableLayoutPanel1.GetChildAtPoint(p) ... would return null without the full docked control at the background.
modified 16-May-21 21:01pm.
|
|
|
|
|
Hello,
how can I create a littel process that listen to the
windows security when we enter the username and password?
I created a process that listen to all keyboard clicking
but it doesnt catch the security windows window (you know, when the
computer lock or something)
thanx.
|
|
|
|
|
If you can give me one, just one proof that this would be something beneficial to others for reasons that are NOT selfish then I'll help.
But I tell you, it's going to be VERY hard, because what you are trying to write is Spyware. Malware is not acceptable by good and decent devs.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
"There is no wealth like knowledge, no poverty like ignorance." Ali ibn Abi Talib
"Animadvertistine, ubicumque stes, fumum recta in faciem ferri?"
|
|
|
|
|
I'm really hoping that this is some kind of joke question. Because you really shouldn't have any reason to need this. And if you have a reason, then there is a much better alternative.
My current favourite word is: Bauble!
-SK Genius
|
|
|
|
|
There is absolutely no justifiable reason for needing to write this type of software.
|
|
|
|
|
O.K
really I'm not trying to get anyone password.
my reason is that I'm an administrator at my company
and we have a few computers with password for the employee
that we send to our customers but they have a kind of a window lock
when they enter a incorrect password and the windows lock it self
after 3 attempts .our employee swear us that they enter the password correct and we cant find the reason for all the locks.
it cost us a lot of money all those day the cant work beacuse the computer
lock it self. we want to find out if they entered the correct password
before the computer lock.
hope its a good reason.
thanx
|
|
|
|
|
Wouldn't you be able to tell from event log for the evident?
It's no good reason for that.
|
|
|
|
|
what event log can tell me?
i cant see there the incorrect password.
Even more, i don't need to see the password !!!
only the incorrect password , by that i can tell if they really
enter an incorrect password.
thank you.
|
|
|
|
|
I think it is the one under "Security" that you want.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
How about asking the question "Do you have the Caps Lock on?"
Alternatively image the computer with it's administrative login, then when you come to give the computer to customers load the original image back on.
There is no reason for needing to know other people's passwords.
The whole purpose of security is just that "security".
This means that nobody else knows your passwords and that way an accounting trail can be followed if needed and the appropriate people held responsible for their actions.
Also giving customers computers that your own employees have been using for email, documents etc is another security breach.
You always pass failure on the way to success.
|
|
|
|