|
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.
|
|
|
|
|
4yb@ka wrote: Any ideas how to do it?
Not this way.
As Christian has said there is an event you can subscribe for unhanded exceptions. Very cunningly they call it, UnhandledException. However, if you are trying to catch an exception from a button click it should be handled at the lowest possible level, not at the application level.
only two letters away from being an asset
|
|
|
|
|
Definitely I would handle it within the click event itself, that way it will definately catch the exception, as mark said you should always try to catch it at the lowest possible level, but never at the application level.
|
|
|
|
|
It's not for handle expected exceptions. It's need for log unhandled exceptions.
|
|
|
|
|
can anybody help me on how to get started with making a simulation software?
I want to make a 8085 simulator.
please tell me the following points
1.IS C# fully capable of doing it
2.what else do i need?
|
|
|
|
|
Hi
1. yes
2. some 10,000 lines of code; all the 8085 documentation you can get
Are you sure it is 8085 you want? that's a very old (and simple) CPU
Do you need logic simulation only? or has it to be cycle accurate too?
What kind of I/O will you need to handle? (CPU and memory is easy, I/O depends on functionality).
The hardest part is getting the condition flags (zero, overflow, ...) correct for each instruction.
Is performance relevant? Any idea what speed you want? Depending on previous answers, your slow-down will be
1000 or more.
And how do you plan to test your code?
Make sure you have sufficient programming experience and know the language well before you attempt this!
Luc Pattyn
Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
First of all Thank you very much! Your idea is helpful.
I've decided to do 8085 CPU because it is relatively simple.
If possible I will try to make it fully functional.
The user must be able to execute step by step and see the registers and active memory contents.
Performance is greatly relevant, and the speed also has to be good.
Can you please tell me Something about how to test the code?
Can I find helpful books and sites for this project?
thank you
|
|
|
|
|
Hi,
Dagmawi alemayehu wrote: I will try to make it fully functional
- all instructions?
- instruction timing?
- cycle accurate?
- what input/output devices?
- how is code entered?
Dagmawi alemayehu wrote: how to test the code?
- good architectural design
- test with actual programs (e.g. C-code + cross-compiler)
Dagmawi alemayehu wrote: helpful books and sites?
- don't know, except for manufacturers documentation
- I did dozens of simulators, running my own operating systems and applications
Luc Pattyn
Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
How you doing?
thank you very much once again.
You wrote an excellent article for the lean-and-mean competition;
I'm comp Engg student,I'm trying to do my final year project, that simulator is going to be my project.
I hope I would get more knowledge on it.
If you have time,Can you please give me some more information.
I'm designing the interface on C# windows application.I want to start from the instruction execution part by allowing the user to write the code and run it just like emu8086.
Can you help?
hope to hear from you soon.
|
|
|
|
|
Thanks.
I don't know emu8086, and I don't think it handles 8085.
Why do you choose 8085, it is terribly old; why not choose a microprocessor that is still in use?
I would consider one of the Microchip PICs for instance; say a 16F84.
Whatever you choose, make sure you have the development tools for it.
FYI: I've done 6502, all kinds of 6800 and 68000, some PICs, 8048, x86, NIOS2 and more.
The NIOS2 one was done in pure C# and ran one million instructions per second; it executed my own operating system and some multithreaded test applications.
Dagmawi alemayehu wrote: Can you help?
I give advice and answer specific questions. Generally I don't provide code.
Make sure you have answers to the questions I asked you before you commit.
Good luck with your project.
Luc Pattyn
Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|