.net

Pros and cons of appSettings vs applicationSettings (.NET app.config)

When developing a .NET Windows Forms Application we have the choice between those App.config tags to store our configuration values. Which one is better? <configuration> <!-- Choice 1 --> <appSettings> <add key="RequestTimeoutInMilliseconds" value="10000"/> </appSettings> <!-- Choice 2 --> <configSections> <sectionGr...

Hands on asp.NET learning recommendations

Duplicate: http://stackoverflow.com/questions/62251/where-can-i-find-good-asp-net-tutorialor-books-online http://stackoverflow.com/questions/282086/learning-c-aspnet-35-what-order-should-i-learn-in-what-to-skip http://stackoverflow.com/questions/50238/what-are-some-good-resources-for-learning-asp-net-aside-from-stackoverflow-of I ...

Performance Penalty (if any) in Using the 'var' Declaration in C# 3.0+

Is there any performance penalty in using the var declaration in c# 3.0+? Resharper is constantly nagging me to use it liberally, and I want to know if there is any downside to it. ...

.NET library to generate a video file from bitmap sequence

Is there any .NET libraries to generate video files (any type) from a given sequence of bitmap images? ...

Does anyone know of any performance benchmarks done between the various .Net Frameworks

What's the performance differences between the frameworks (for the same/equivalent code)? ...

Event for checkbox on gridview?

I have a checkbox column on my gridview in a Windows Application. I want an event as soon as somebody clicks on the checkbox. How do I do this? ...

Clarification needed: How does .NET runtime resolve assembly references from parent folder?

...

Is there a way to retrieve a C# app's current memory usage?

I am automating some profiling tasks and want to log heap space and generation sizes real-time. The profiling API seems awfully complicated for what I need, and it seems to listen in on individual allocations and collections, which isn't that important to me. Profiling tools are a great help of course, but I was looking for a more flex...

Need technology recommendation/suggestion

Hi there. We (my company) is trying to develop a solution (application) for document management. We have considered using MS Sharepoint Server 2007 or Sharepoint Services, but we need recommendation or suggestion for this. We are planning to use windows workflow fundation for various tasks like(task assignment, document approval, infor...

Configure DCOM Settings with native .NET?

Some time ago I found aout about the System.Directory namespace in .NET 3.5 that enables me to basically manage local as well as domain accounts easily with native .NET methods instead of using API calls and importing unmanaged DLLs. Now I need to configure DCOM settings for some legacy application from within an MSI setup. As far as I ...

How to document thrown exceptions in c#/.net

I am currently writing a small framework that will be used internally by other developers within the company. I want to provide good Intellisense information, but I am not sure how to document thrown exceptions. In the following example: public void MyMethod1() { MyMethod2(); // also may throw InvalidOperationException } pub...

When using .NET Remoting using Server Activated Objects, what are the tradeoffs between SingleCall and Singleton activation?

I am trying to discern the difference between SingleCall and Singleton activation methods when implementing a server to host an object using .NET Remoting. It would appear that SingleCall has the overhead of having to construct and clean up an object for each client-side call, whereas Singleton has the limitation of only being able to s...

.net application size in memory

What are the ways to reduce the amount of memory my applications take in RAM?..Because even 30kb application loads ~20Mb of "unneeded" dlls.Am i mistaking when i think that any .NET app takes at least 10Mb in working set of memory when we need a form with text in it? Couldn't find any explanation of this :( PS question is closed. But i...

How do you do drill down reporting in a Win Form [.Net] without 3rd party controls?

Looks like my only option is to create a mutatant child of the tree view and data grid view,but Im mostly an asp.net developer,and thus my lack of knowledge of all things windows. but Im sure there is an alternate easier solution, so before I go down that ugly path, does anyone know a way to create a drill down report in a winform applic...

Get SOAP Message before sending it to the WebService in .NET

I'm calling an external HTTPS webservice. In order to check what is wrong, the owner needs the SOAP request I'm sending. I have a web reference and the generated proxy class generated by VS 2008... Is there a way to see the SOAP message just before sending it? I'm thinking in some .net code... because the Sniffers I tried didn't "see...

Crystal Report run time

Hi, I have application in C# (.net 2), and I use Crystal Report 11. When I will distribute the application throughout installer, How can I install Crystal Report run time files? Is there an easy way other than install the whole Crystal Report Runtime (43 MB) Thanks, ...

How would you name these related Property, Class, Parameter and Field in .NET?

I often find I want to write code something like this in C#, but I am uncomfortable with the identifier names: public class Car { private Engine engine; public Engine Engine { get { return engine; } set { engine = value; } } public Car(Engine eng...

Sending Outlook meeting requests without Outlook?

I just wonder if it is possible to send Meeting Requests to people without having Outlook installed on the Server and using COM Interop (which I want to avoid on a server at all costs). We have Exchange 2003 in a Windows 2003 Domain and all users are domain Users. I guess I can send 'round iCal/vCal or something, but I wonder if there i...

ASP.NET - Accessing Master Page elements form the Content Page

Can the elements of the Master Page be accessed from the Content Page? Lets say I have MasterPage1 and ContentPage1 that inherits from the MasterPage1, and the MasterPage1 has a button: Button1. Can I change the property of that button from the content page, for example to make Button1 invisible, inactive etc? How can I accomplish this...

.Net Excel Add In Help

Hello, I am interested in creating a couple of add-ins for Office 2003 & 2007 for work and home. I see the project templates in VS2008 for creating the addins but I am un-clear as to what to do next. I also have had great difficulty finding direction online so far. I am not looking for cut and paste code but rather a finger pointing...