|
[^]
Standards are great! Everybody should have one!
|
|
|
|
|
Thanks for your reply sir,
Any more idea to show real time processing...?
Regards
Pankaj Joshi
If you want to shape your dreams into reality, please wake-up...
|
|
|
|
|
I'm not sure what you mean by real-time processing; Windows isn't a real-time operating system.
I'm guessing you mean showing progress of an operation while it's executing. Backgroundworkers are the typical way of doing this; they allow you to do some processing while offering the oppertunity to report back to the UI thread via the ReportProgress method. The cross-thread errors you're getting are a result of trying to update user controls on a thread other than the UI thread. You can read about this in most books on .net. In most cases backgroundworkers are the way to go to solve that problem.
Standards are great! Everybody should have one!
|
|
|
|
|
i am working with vs 2005 and i want to call a c# class and methods from Java using JNI. kindly help with some example
|
|
|
|
|
This is more of a Java programming question than a C# one. There is a JNI tutorial here
"You're very clever, young man, very clever," said the old lady. "But it's turtles all the way down!"
|
|
|
|
|
even if it's the wrong forum..
I don't think JNI is the right choice as JNI calls simple C function and C# is even if its name has only one additional letter quite a bit different. You would have to initialize your .NET Runtime on your own (mscoree etc.). I have some doubts that this is the solution you're looking for.
But you might want to check out JNBridgePro!
|
|
|
|
|
|
Hi, I designed a windows applciation by reading mail id's from text file and sending mails. But after sending more than 900 mails i am getting this error.
Exception Occured System.Net.Mail.SmtpException: Failure sending mail. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
Can any one help reg this error...
I used the code as follows
MailAddress SendFrom = new MailAddress(txtFromAddr.Text);
SmtpClient objSmtpClient = new SmtpClient();
objSmtpClient.Host = "mail.domain.com";
objSmtpClient.Credentials = new System.Net.NetworkCredential("uname", "pwd");
while (!strdata.EndOfStream)
{
_mailId = Convert.ToString(strdata.ReadLine());
if (_mailId != "")
{
MailAddress SendTo = new MailAddress(_mailId);
MailMessage objMailMessage = new MailMessage(SendFrom, SendTo);
objMailMessage.Subject = Convert.ToString(txtSubject.Text);
objMailMessage.Body = Convert.ToString(webBrowser1.DocumentText);
objMailMessage.IsBodyHtml = true;
objSmtpClient.Send(objMailMessage);
}
}
G. Satish
|
|
|
|
|
Satish - Developer wrote: after sending more than 900 mails
This may be your problem. I rather imagine your ISP wwill have terminated the SMTP connection after you sending so many emails. You should check with them about their bulk email policy.
"You're very clever, young man, very clever," said the old lady. "But it's turtles all the way down!"
|
|
|
|
|
Can u explain reg this... where i have to check for this...
|
|
|
|
|
You'll need to check with whoever runs the SMTP server that you are using to send your email. Many ISPs have rules about the number of emails you can send at a time to prevent spamming. I assume you have the permission of the people you are emailing?
"You're very clever, young man, very clever," said the old lady. "But it's turtles all the way down!"
|
|
|
|
|
When i run the Email application, automatically the to-address is repeating.
ie.
TO: satish.g@techgene.com; kiran@techgene.com; madhu@techgene.com;
the above line is for one mail.
And for next mail
TO: satish.g@techgene.com; kiran@techgene.com; madhu@techgene.com; suchi@techgene.com
like this for mail to mail.. the toaddress is repeating.
But when i debug this, there is no loops to get this, and also when sending mail
there is only one id in to-address?
any idea ? what's the reason by coming like this?
there is no loop to come like this.
u can see the code in above posting
|
|
|
|
|
Satish - Developer wrote: objMailMessage.Body =
Hi,
in objMailMessage.To set only one ID. and all other ID set in objMailMessage.Cc
Try it.
Thanks,
Sun Rays
Rate this post if you like answer.
My Articles
|
|
|
|
|
Hi, Please see the code below.
I am reading mailid's from text file. In each line there is only one mailID.
so "_mailid" contains only 1 id.
now can u suggest how to put cc
MailAddress SendFrom = new MailAddress(txtFromAddr.Text);
SmtpClient objSmtpClient = new SmtpClient();
objSmtpClient.Host = "mail.domain.com";
objSmtpClient.Credentials = new System.Net.NetworkCredential("uname", "pwd");
while (!strdata.EndOfStream)
{
_mailId = Convert.ToString(strdata.ReadLine());
if (_mailId != "")
{
MailAddress SendTo = new MailAddress(_mailId);
MailMessage objMailMessage = new MailMessage(SendFrom, SendTo);
objMailMessage.Subject = Convert.ToString(txtSubject.Text);
objMailMessage.Body = Convert.ToString(webBrowser1.DocumentText);
objMailMessage.IsBodyHtml = true;
objSmtpClient.Send(objMailMessage);
}
}
|
|
|
|
|
Hi,
Satish - Developer wrote: MailAddress SendFrom = new MailAddress(txtFromAddr.Text);
without doing this. Just create mailmessage object.
MailMessage objMailMessage = new MailMessage();<br />
objMailMessage.To = "toUser's email ID";<br />
objMailMessage.Subject = Convert.ToString(txtSubject.Text);<br />
objMailMessage.Body = Convert.ToString(webBrowser1.DocumentText);<br />
objMailMessage.IsBodyHtml = true;<br />
<br />
SmtpClient objSmtpClient = new SmtpClient();<br />
objSmtpClient.Host = "mail.domain.com";<br />
objSmtpClient.Credentials = new System.Net.NetworkCredential("uname", "pwd");<br />
<br />
objSmtpClient.Send(objMailMessage);<br />
Just try this. If you are getting error then u must have to chekc for smtp setting of server.
Thanks,
Sun Rays
Rate this post if you like answer.
My Articles
|
|
|
|
|
is your PORT number correct...?
spaps
|
|
|
|
|
hi all,
I have a windows application in which i am using a webbrowser control. i write a html file which includes playing different types of media files like audio, video and flash files.
I embedded media player for video and audio files and for flash the flash player. when i execute quicktime files(video) its not playing in the media player.
i need to play the quicktime formats also in the media player if i give the URL.
is it possible?
Thanks in advance.
Regards
Anuradha
|
|
|
|
|
quite innovative try to play that quick time format file in media player normally .....if its not able to play it then a message will appear regarding installation of files for media player if it works fine then u can do it
its me sid
|
|
|
|
|
hi,
thanks for your reply. probably i did not put myself correctly. the quicktime format files are not played in media player.
how can i play quick time formats using embed tag (i mean what type of object has to be embeded to play quicktime files)?.
Thanks in advance.
Regards
Anuradha
|
|
|
|
|
Hi,
My aim is to show a graphical grid on the window's form for alignments of labels ............n it must be show/hide type if any one knows how to do this please do let me know ...................regards
sindhu tiwari
Dont loose ur Heart
Beat untill ur enemy dies
|
|
|
|
|
Try TableLayoutPanel...
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
i never said a data grid i am asking abt the grid which u can see in designing softwares horizontal and parallel lines i hope its clear now
its me sid
|
|
|
|
|
for your kind info it's not a Data Grid, it's like a table which u can see while designing ur windows form and can place controls accordingly.
Do have a look at that...
that may work for u or may not,
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
I have .NET framework 2.0 installed on my machine. But I don't have VS2005. I am using VS2003. Is there anyway to access the .NET 2.0 libraries using VS2003 ?
|
|
|
|
|
AKAIK, you can only write code against v1.1 of the framework in VS2003.
You need to either upgrade to VS2005, or use a 3rd party IDE like SharpDevelop.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|