|
I am using the method publish(Exception ex)
throgh the static member "ExceptionManager" actully i am writing-----> ExceptionManger.publish(ex)
i wondered where i could find the file that hold all the information (Messages) about those Exceptions?
shuold i have to create it?
I dont wont to write those exceptions into my configuration file.
i want to write it into event Log something.
is it possible?
how can i do it?
Thanks in advanced
Dudi
Be Good...
Dudi
|
|
|
|
|
By default, the Exception is logged into the event log when you call ExceptionManager.Publish . So, if that's all you need to happen, you don't need to alter your application's config file.
See the documentation that ships with the EMAB if you need more information about extending the application block with custom publishers.
Charlie
if(!curlies){ return; }
|
|
|
|
|
How can i get the index of a doubleclicked item in the listbox?
|
|
|
|
|
Write an event handler for the DoubleClick event of the ListBox and there retrieve the value of its SelectedItem property.
www.troschuetz.de
|
|
|
|
|
Hi,
I'm trying to implement a textbox and a combobox in a menuitem. When the menuItem is shown, I want to have a textbox and a comboBox.
I already tried to construct a derived MenuItem and to override the onPaint, but got somehow stuck. I think I saw something like this on the net, but cann't find it again...
Any ideas/suggestions?
Dennis
|
|
|
|
|
Hello,
I have a panel object on my form in which I draw something. How can I save and then restore what I draw on that panel?
Thanks in advance for any suggestion...
Best regards,
Cristina
|
|
|
|
|
You can draw everything via a GraphicsPath or perhaps there is some other way? Would be nice to know of the alternatives
top secret xacc-ide 0.0.1
|
|
|
|
|
I wanted to know how can I save what I draw. It crossed my mind serializing the graphic context but I don't know how to mark it as serializable. Or I thought may be I can save it like a bitmap file, but I don't know how to refere to it (what exactly to save)...
If you have any suggestions... please... I'd appreciate it!
Cristina
|
|
|
|
|
Instead of painting everything in your OnPaint override for your Panel , move your drawing code to a method that takes a Graphics parameter. From the OnPaint override, pass the PaintEventArgs.Graphics property to that method. To save it to a file, create a new Bitmap and get a Graphics object from that (like Graphics.FromImage , for example). Then pass that Graphics object to your method. When the method returns, dispose your Graphics object, save the Bitmap , and dispose the Bitmap . For the OnPaint override, don't dispose anything since it will take care of it for you.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Hi
I want to know the difference between Directory and DirectoryInfo as well as the difference between File and FileInfo.
Thanks..
|
|
|
|
|
The main difference is that Directory exposes static methods and DirectoryInfo provides instance methods for creating, moving, and enumerating through directories and subdirectories.
Read the documentation for this classes, there you find all information necessary
www.troschuetz.de
|
|
|
|
|
How do I open html files or any other file that opens up in normal ie using a simple form. I want to be able to press spacebar and it would open up the next file in the directore using my form. But files are dcr(director) files and onlu open up in ie.
Thanks
|
|
|
|
|
Right-click on the VS.NET toolbox and click Customize. Select the COM tab and find the Microsoft Web Browser component. Add it and click OK. Then drag and drop it from the toolbox to your form. Now you've got an instance of the Internet Explorer WebBrowser control. You can open files using WebBrowser.Navigate2 , for example. There's other ways, though, just as there's other ways to add the WebBrowser component to your project.
Search CodeProject for "WebBrowser" for more examples and articles using the search textbox below the logo toward the top of the page.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
|
Is there a way to run a console application in the background with out that black console screan popping up on execution?
|
|
|
|
|
Process action = new Process();
ProcessStartInfo si = new ProcessStartInfo(Program);
si.CreateNoWindow = true;
si.RedirectStandardError = true;
si.RedirectStandardOutput = true;
si.UseShellExecute = false;
top secret xacc-ide 0.0.1
|
|
|
|
|
When i compiled it with that code it just gave me and error about
ProcessStartInfo si = new ProcessStartInfo(Program); < looking for variable
|
|
|
|
|
Well, you have to tell it what "Program"...
Of course, leppie could have misinterpreted your initial question. Given the context of the forum and without additional qualification in the original posting, it reads as if you are asking: I am launching a console application from within another application, but how do I ensure that the Console window does not appear?
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
The Second EuroCPian Event will be in Brussels on the 4th of September
Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way!
|
|
|
|
|
Welcome to the "Point-and-Click" programmer age.
I think that dude just didn't enable a feature in the compiler that allows
mind reading behaviour. Add the "/Cmr" option. It's a wonderful option that allows basically any code with undefined variables to compile without a problem, by just asking a telepathic question to the dumb a** programmer cutting and pasting something out of a internet forum.
|
|
|
|
|
Hello!
I want to learn how to work with IRC and make a IRC Client (very easy one) so I searched alittle and I only found a C# IRC Bot on c-sharpcorner:
http://www.c-sharpcorner.com//Network/IrcBotPH.asp
I downloaded the source code and got the two classes used. But how do I test this? There is no project in the sorce code only two .cs files. When I open them I can't run them. Can someone help me with what I need to do to make it run?
Create a project, add the two .cs files and then create an object of the IRCBot class?
Thanks in advance!
~~~~~~~~~~~~~~
Martin Lundberg
Student, Sweden
I have to thank every member of the Code Project for making it such a great place for a beginner to learn!
|
|
|
|
|
Either put them in a new project or use the C# command-line compiler to compiler them both. Type csc.exe /? on the command line (if %WINDIR%\Microsoft.NET\Framework\v<version> is in your PATH environment variable). Read the .NET Framework SDK for more information.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
If you are searching for a .NET IRC library, then check this: http://thresher.sourceforge.net/
|
|
|
|
|
here is a good one
aeruIRC[^]
/\ |_ E X E GG
|
|
|
|
|
Dear sir
+. I'm using Tapi3.1 and C#.Net for developing simple Phone Application
+. My simple Phone can playback, record, detect DTMF, detect Disconnected, ...
but it can't detect silence.
+. I don't no. What should i do
+. Which modem support silence detection
+. Please help me
|
|
|
|
|