How do I put a breakpoint at every MessageBox in my application?
How do I put a breakpoint at every MessageBox in my application? ...
How do I put a breakpoint at every MessageBox in my application? ...
I'm creating simple image viewer, but I want to make a sorting of pictures by LastTimeWrite. I have an OpenFileDialog to load pics, when I choose the pic in the folder then ProcessDirectory() is called. private void ProcessDirectory() { FileTypes = new ArrayList(); FileTypes.Add("*.JPG"); File...
My question is about handling temporary files in a small .NET program. This program/utility just does the following with two URLs: Download each URL to a string (WebClient.DownloadString). Save each string to a temporary file. Call WinMerge (Process.Start) to diff the two files (in read-only mode for both files). I currently have the ...
I basically want to write a customer logger/tracer which also logs the class and method name of the method that calls the logger/tracer. This should be fast so that it does not affect the performance of the application, strongly typed and clean. Does anyone have good ideas? Here are the few I had but I worry about performance due to ref...
Assuming I have booted a 32-bit Windows Server with the /3GB switch, how can I make a .NET application use the additional address space? ...
I'm trying to write a class that will be in charge of persisting application options. Since the options need to be persisted the values that I'm sent must be serialisable. Initially I thought I've be able to write a method with a signature like this: Public Sub SaveOption(Of T As ISerializable)(ByVal id As String, ByVal value As T) ...
the following code should show either the port or servername not both i always get both no matter what ? <!--#if expr="${SERVER_PORT} = 80" --> <!--#echo var="SERVER_PORT"--> <!--#else --> <!--#echo var="SERVER_NAME"--> <!--#endif --> i have also tried the follwoing with no joy either !! <!--#if expr="${SERVER_PORT} = '8...
In this MSDN article, it says that In the .NET Framework version 2.0, this method uses the Equals and CompareTo methods of the Array to determine whether the Object specified by the value parameter exists. In the earlier versions of the .NET Framework, this determination was made by using the Equals and CompareTo methods of th...
Currently I'm using a System.Windows.Media.DrawingGroup to store some tiled images (ImageDrawing) inside the Children-DrawingCollection property. Well the problem is now, this method gets really slow if you display the entire DrawingGroup in an Image control, because my DrawingGroup can contain hundreds or even thousands of small images ...
We have a situation where I have a bunch of urls with query params that are used to bascially redirect to various sites, kind of like a short URL or index. Ex: www.mysite.com/abc?x=123 which redirects to www.google.com www.mysite.com/abc?x=456 which redirects to www.yahoo.com and so on... The issue is that there isn't an actual pag...
I am looking at taking on a new web development project and the customer has two big specifications the first is that they want it developed in .NET and the second is that they want to be able to change the look and feel of the page without having to recompile code. While I am new to ASP.NET I am familiar with the concept of Model View ...
I'm looking for a way to set up my own default property values for different types of controls in my C# .NET windows application. The default property values should 'override' the existing default values of the controls, but still be 'overridable' by setting the property values explicitly in the designer. This is to simplify the process...
I have a WPF-application with a MediaElement which I use to run a video. I don't want the video to autoplay when loaded, so I set the LoadedBehavior to Manual. <MediaElement LoadedBehavior="Manual" Source="foo.wmv" MediaOpened="videoElement_MediaOpened" /> However; I want the element to show the first fr...
I have been developing some components for our products at work, and one of them is based off the flow layout panel. What i would like to do is provide a custom designer for it, but without loosing the features provided by it's default designer (System.Windows.Forms.Design.FlowLayoutPanelDesigner) which is marked as internal. Using Ref...
i m writing a record to excel such as 1/6 but excel shows this as a date. how can i change excel cell type by c# ...
Many .NET functions use XmlWriter to output/generate xml. Outputting to a file/string/memory is a very operation: XmlWriter xw = XmlWriter.Create(PutYourStreamFileWriterEtcHere); xw.WriteStartElement("root"); ... Sometimes , you need to manipulate the resulting Xml and would therefore like to load it into a XmlDocument or might need a...
Hi guys I want to do some caching at the data access layer to help boost performance. I have decided that I will use the HTTPContext cache, with an abstraction layer on top so i can switch in and out other caching strategies later on if needed. Basically the cache should be variant, meaning that for each individual method it will cac...
Hello. I'm looking for a way to serialize a POCO that contains some read-only properties. In some Google and StackOverflow searches, I've seen the following suggestions: use DataContractSerializer; or use SoapFormatter or BinaryFormatter; or replace my readonly properties by read/write properties; My classes are very simple, they loo...
I'm trying to return attributes of columns from my DataContext. How can I pull out the ColumnAttribute meta data? public class MyDataContext : DataContext { public Table<User> User; public MyDataContext(string connection) : base(connection) { } } [Table(Name = "User")] public class User { [Column(IsPrimaryKey = true)] ...
In this question. we discovered that in .NET 1.1, Array.IndexOf(array, value) searched for an element with value.Equals(arrayElement) == true while .NET 2.0 changed it to search for an element with arrayElement.Equals(value) == true Obviously the potential difference between the two results arises from polymorphism, but is there an...