|
|
Bar chart not displayed mozilla but displayed in firefox while implemented dynamically in c#
|
|
|
|
|
mathewaugustine wrote: Bar chart not displayed mozilla but displayed in firefox
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
|
The error is on the second line of your code. You missed a semi colon. Oh, wait, you didn't give us any code. Did you want help, or not ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Dearest Developers,
i can send programmatically(C#) insecure smtp mail. but when i try to send secure mail. the above error thrown.but if i use gmail(smtp.gmail.com) i can send mail.but when i use our secure smtp mail server(mail.nibssolutions.net)it does not send.
how i fix it.
plz help me.
thanks in advance
Code:
MailAddress SendFrom = new MailAddress("test@nibssolutions.net");
MailAddress SendTo = new MailAddress("rudro_aiub@yahoo.com");
MailMessage myMessage = new MailMessage(SendFrom, SendTo);
myMessage.Subject = "Subject";
myMessage.Body = "Body";
//SmtpClient _smtpClient = new SmtpClient("mail.nibssolutions.net",25);
SmtpClient _smtpClient = new SmtpClient("mail.nibssolutions.net", 587);
_smtpClient.EnableSsl = true;
_smtpClient.Credentials = new System.Net.NetworkCredential("test@nibssolutions.net", "*********");
_smtpClient.Send(myMessage);
MessageBox.Show("Mail Sent...");
|
|
|
|
|
You need to work out what your mail server needs to send secure mail, and provide it.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Graus,
Thanks for ur reply.But mails are sending from ms outlook 2007. but i can not send mail programmatically.
Any idea to ignore certificate problem for sending mail.is it need to add any code in my program?
Thanks in advance
Shafik
|
|
|
|
|
The only mail setting I know that you're not setting is 'UseDefaultCredentials'. Is the username/password your code provides, the same one that Outlook is using ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Dear Graus,
Than u very much i just block the line //_smtpClient.EnableSsl = true;
now it works fine.or if i use _smtpClient.UseDefaultCredentials = false;
it also works fine.
thanks u a lot.
Shafik
|
|
|
|
|
np. I suspect you want to use the useDefaultCredentials to false, for it to send as ssl.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi All
I have to crop the images from picture box .
before that i loaded the images in the picture box its showing only the half of the images ..how to using Scroll bar in the picture box...and how to crop the portion ...
regards
~~~~~~~~~~~~~Raju~~~~~~~~~~~~~
|
|
|
|
|
You need to start again. First, you don't want to use a picture box. You want to draw the image yourself, in your paint handler. Then you want to use mouse events to define a crop area. Then you want to create a new bitmap that contains the cropped area. I suspect you will need to do a bit of research and learning before you can do all that.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
thanks for your replay ...
please make some clear ...why i dont use picture box ..??
~~~~~~~~~~~~~Raju~~~~~~~~~~~~~
|
|
|
|
|
rajugis wrote: why i dont use picture box ..??
The point of that control is to allow limited viewing of images for people too inexperienced to write some basic code. One you want to do anything more than show the image, the control will get in the way, it will not help at all.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi
I'm currently working on a project using C# Windows Forms. I need to add some animation on the form and I found WPF can do animation very easily. I'm very new to WPF. I searched on google and found some tutorial. Now I can add a WPF user control library to a windows form and the animation works fine but I need to control the animation, eg. When the user control library got focus, the animation starts? How can I do this??
Help please!
Thanks
|
|
|
|
|
I don't know if that's possible. Perhaps you should ask in the WPF forum. I am certain it will not 'just work', if it's possible at all, it will be a fair bit of work to do. I know yo ucan write a WPF app and put some winforms controls in it, but not vice versa.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I'm writing an Outlook add-on but some of the things I need to do to the Outlook window are only allowed to be done by the process that owns the window. Is it possible for me to execute a line of code from Outlook's process?
Have you tried the Krypton Toolkit? http://www.componentfactory.com/free-windows-forms-controls.php
|
|
|
|
|
Correct me if I'm wrong, but aren't Outlook add-ins always loaded into Outlook's process space?
Adam Maras | Software Developer
Microsoft Certified Professional Developer
|
|
|
|
|
The addon is loaded somewhat separately from Outlook's main process.
Have you tried the Krypton Toolkit? http://www.componentfactory.com/free-windows-forms-controls.php
|
|
|
|
|
Not unless Outlook provides an interface allowing you to do so.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi!
So if place try/catch block in Main() function
try{
Application.Init ();
MainWindow win = new MainWindow ();
win.Show ();
Application.Run ();
}
catch(Exception baseExc){...}
and then throw exception in button click event, this exception will not be catched! Any ideas how to do it?
|
|
|
|
|
the real question is what exactly are you trying to achieve with throwing an exception in a button click event??
|
|
|
|
|
If you're trying to write code to handle any unhandled exception cleanly, then there's an event you can connect up in your init code, which will fire for any unhandled exception in your app.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Yes, I know. But I couldn't find it. All send to Application.ThreadException but it is for WinForms. It's also not AppDomain.CurrentDomain.UnhandledException. But I find it - GLib.ExceptionManager.UnhandledException.
|
|
|
|