|
private void button2_MouseMove(object sender, System.Windows.Forms.MouseEventArgs e)<br />
{<br />
button1.PerformClick();<br />
}
|
|
|
|
|
Put the process in a separate method, and call the method from the event methods.
---
b { font-weight: normal; }
|
|
|
|
|
hi,
Can anyone tell me how can i send mails without using SMTP Server provided by .NET (without using SMTPServer.Send())
I want to send mails in a large number so i dont want to use the relay server of the IIS, as it is slow.
Can anyone tell me how i can bypass the SMTP Server and directly send mail to the internet.
It will be a great help,
Thanks
Sushant Duggal.
|
|
|
|
|
Sushant Duggal wrote: Can anyone tell me how i can bypass the SMTP Server and directly send mail to the internet.
You have to write your own SMTP server then (well mostly). Search on SourceForge, I think there is such a component.
|
|
|
|
|
can you please send me the link (if you know that)????
Sushant Duggal.
|
|
|
|
|
Just go to : http://sourceforge.net
and search for "SMTP Server"
|
|
|
|
|
Thanks friend,
I'll check that.. currently the site is under maintenance.
Thanks again
Sushant Duggal.
|
|
|
|
|
stancrm wrote: http://sourceforge.net
and search for "SMTP Server"
hi
Sourceforge provides different type of softwares .. but i want to know the code.
Please Help
Thanks,
Sushant Duggal.
|
|
|
|
|
Sushant Duggal wrote: Sourceforge provides different type of softwares .. but i want to know the code.
Sourceforge is entirely opensource software. you can find the code to download for any of the programs hosted on it.
|
|
|
|
|
To do this in RAW code, you would contact the mail server via a socket connention, you will have to authenticate. Then you send the email header which is simple, then you send the content. That's it.
Read up on SMTP protocol.
The program psuedo code
Socket s = new Socket(emailserver, port);
s.open(); // starts the session
s.send(userid_password); // signs you in
// next create your email header it starts with something like ehelo or helo
// Then tell it the type of mail you are sending Text, html etc.
// Then send it.
|
|
|
|
|
Hi,
Thanks for your reply.
I am doing this using TCPClient
<br />
<br />
client = new TcpClient(smtpServer, smtpPort);<br />
NetworkStream ns = client.GetStream();<br />
StreamReader stdIn = new StreamReader(ns);<br />
StreamWriter stdOut = new StreamWriter(ns);<br />
<br />
here the problem is my machine throughs an error that destination machine rejected the connection., and then i checked my machine and found that my machine's port 25 is not responding ... can you tell me the possible reason.
There is no firewall, SMTP Server is running,IIS is running,I have checked the norton settings, everything is fine.. i dont know you the port 25 is not responding
Please ehelp
Thanks
Sushant Duggal.
|
|
|
|
|
If I remember this correctly port 25 is the port of the email server, not necessarily your computer. If you can't even get the port open then the remote side isn't listening.
The three way handshake will always happen first.
Syn ---->
<----Syn Ack
Ack ---->
This indicates the port is opened.
Then you have to do the password stuff.
Once the socket is open you have two choices.
Microsofts own proprietary email protocol IMAP
or SMTP. SMTP is simple. You can run a ethereal trace at anytime to see the protocol.
|
|
|
|
|
there is a web browser on my application ( VS2003 ).I want to handle html links that are shown in web browser.
Is there any command, event, ... , that helps me to handel them?? like a falsh object that can send some arguman to C# , have web browser any facilities like this??
Thanks
Salmani
|
|
|
|
|
I don't know if the web browser can do that or if you can do something IN IT.
But I do know that there is 2 objects that can help you with that:
System.Net.WebRequest
System.Net.WebResponse.
Try to learn something about them.
Search in the CodeProject articles.
Good-Luck.
NaNg.
|
|
|
|
|
Hello.. ive been searching and still can't find the answer. This might be a bit trivial for some, but am really confused why this is not working.
I have a property grid, am using this to edit/display/manipulate a resource file actually. I've based my code on a C# sample resource Editor. Right now what am trying to do is to capture the double click event on the property grid. That is if a certain row has a double click event, i will retrieve the value on that row.
Does anybody knows ?
|
|
|
|
|
Hi, I have loaded a Word document in c# using the Word 9.0 object library. The doc contains numbered paragraphs.Now i have to navigate to a particular paragraph using only the list number(i.e. i want to goto paragraph with no. 2.3, 3.4 etc). Can any method in word object library do this? There's a find method but it only searches for text. I tried setting the format option for this method to true, but it doesn't work either. I need help ASAP
|
|
|
|
|
hI im using the Process Class to execute a Exe application in my program. The exe outputs a file but when I run the program the file isnt in the directory. So how do I get the output into a file?
code example would be helpful
thanks
Mike
|
|
|
|
|
You have to decide which of the outputs you want STDERROR, STANDARD etc.
Then you simply redirect the standard to a string and write it to a file.
Do a search for Process redirect.
|
|
|
|
|
I'm wondering if there is an algorithm out there that searches for multiple patterns in a string. I need it to also find out if each pattern is a certain distance from the pattern before it. Is there anything like this? I've been using the Boyer-Moore algorithm for a very efficient single exact pattern search, but I really need something that will search for multiple patterns x distance from the previous pattern.
Thanks,
Jon
|
|
|
|
|
Do i have to write all my attributes in a class diagram or can i write only the most important if i have very many attributes, and for methods the same question can i leave the less importants out from the class diagram?
thx! The problem is that this is for diploma, thats why i must know exactly!
-- modified at 20:07 Sunday 11th June, 2006
|
|
|
|
|
AFAIK there is no rule for this. Its a tradeoff between completeness and readibility that cannot be generalized. Furthermore its quite subjective which methods or attributes are less important. Somehow everything is important otherwise it could be left out I suggest you ask your professor to get a binding answer.
"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
www.troschuetz.de
|
|
|
|
|
┳┳┳┳┳┳┳┳
just do best
|
|
|
|
|
I am not aware of any one GDI/GDI+ call that can draw your special "line", but it should be fairly easy to write a routine (or class) for that purpose.
- It's easier to make than to correct a mistake.
|
|
|
|
|
try to use following codes on
form's paint event
int lft=180,rft=0;
//Bitmap bmp = new Bitmap(this.Width,this.Height);
Graphics g = this.CreateGraphics(); ;
Pen p = new Pen(Color.Black,2.5f );
for(int it=0;it < 8;it++)
{
rft=(lft+lft+20)/2;
g.DrawLine(p,new Point(lft,20),new Point(lft+20,20));
g.DrawLine(p,new Point(rft,20),new Point(rft,30));
lft=lft+20;
}
rahul
-- modified at 1:37 Monday 12th June, 2006
|
|
|
|
|
I have the following code in C++ that I'm trying to convert to C#.
C++ code:
typedef struct { unsigned no ; } IQHANDL ;
typedef IQHANDL * PIQHANDL ;
#define IQNDXTAIL ((PIQHANDL)(-2))
int IQAtInsert ( PIQHANDL coll, PIQHANDL elem, PIQHANDL ndx ) ;
myData[linenum].rc = IQAtInsert(myData[linenum].pInputString,
&myData[linenum].hWorkvar, IQNDXTAIL);
==================================================================
C# code:
[DllImport("iqappmgr.DLL", EntryPoint="IQAtInsert")]
public static extern int IQAtInsert (ref IQHANDL a,
ref IQHANDL b,
ref IQHANDL c);
//
// Define the IQHANDL structure
//
[ StructLayout(LayoutKind.Sequential) ]
public struct IQHANDL
{
public uint no;
}
IQHANDL IQNDXTAIL = new IQHANDL();
rc = IQAtInsert(ref inString, ref myString, ref IQNDXTAIL );
==================================================================
As you can see, I'm not really passing the -2 in C# correctly like we
do in C++. Can anyone help me define it correctly in C#?
Thanks!
Bill Richards
|
|
|
|