.net

Why does reflection not perform well in .NET?

I am interested to know the technical reasons: why does reflection not perform well in .NET? ...

Microsoft Visual C++ 2003, 2005-- Are They .Net or Unmanaged?

It's kind of confusing when it comes to Microsoft Visual C++. How to tell whether a Microsoft Visual C++ project is a .Net project, or a native C++ project? ...

ViewState, div tags

Hi, I have several Div tags on a page which are dynamic, i.e. depending on certain criteria they are either visible to the user or not. I want to add them to the page's view state so that upon postback they are not hidden again, how do I do this? ...

Silverlight: Wrapping a non-DependencyProperty in a DependencyProperty

Hi, I want to be able to add a Binding to some properties of a DataGridTextColumn (i.e. Width, Sorting order, etc.), however it seems that those properties are not DependencyPropertys, so they can't be bound to. Another answer suggested subclassing DataGridTextColumn to expose those properties as DependencyPropertys, however I can't see...

How is performance affected by an unused using statement

Visual Studio will automatically create using statements for you whenever you create a new page or project. Some of these you will never use. Visual Studio has the useful feature to "remove unused usings". I wonder if there is any negative effect on program performance if the using statements which are never accessed, remain mentioned ...

Transparent control over WM Player ActiveX component in .NET

I have a Windows media player activex component in my Form. On top of this WM player i have a picturebox with background color set to transparent. When i set an image for this picturebox , thought the image contains transparent areas it is displayed as black when the picturebox is above the WM player component. Where as if i place the P...

Argotic Syndication Framework v. System.ServiceModel.Syndication

I'm investigating the Argotic Syndication Framework, and I'm pretty impressed so far. However, a lot of the current implementation--at least for RSS and Atom--seem pretty comparable to System.ServiceModel.Syndication. Does anyone have any opinions as to one over the other? ...

Create header file from COM TLB

Given a managed COM object and an associated tlb file, I would like to access it from some unmanaged C++ code WITHOUT using the TLB/import command. But use a header file. Is there a way to extract a header file from a TLB? Thanks ...

Getting started with socket programming in C# - Best practices

I have seen many resources here on SO about Sockets. I believe none of them covered the details which I wanted to know. In my application, server does all the processing and send periodic updates to the clients. Intention of this post is to cover all the basic ideas required when developing a socket application and discuss the best pra...

Localizing Date Ranges

Does anyone know how to localize date ranges using C#? In particular, I want to generate "smart" date ranges, so that redundant information is eliminated. Here are some examples in US English August - Sept, 2009 August 2009 August 1 - 9, 2009 January 1 - March 3, 2009 December 6, 2009 - January 8, 2010 Form what I can tell the .NE...

.NET benchmarking frameworks

Are there any .NET frameworks for writing micro-benchmarks like Japex or this (both are for Java)? ...

Custom action on uninstall (clickonce) - in .NET

For a .NET application installed using ClickOnce, is there any way to run a custom action during the uninstall process. Specifically, I need to delete a few app related files (which I created on first run) and call a web service during the uninstall process. Any ideas? ...

Determining a SQL Server Identity Column Name in .NET

Hi, I'm trying to write some generic code in VB.NET that determines whether or not a SQL server database table contains an identity column and, if so, to return the name of that column. I'm working in Visual Basic 2008 Express and have created a SQL database, "MyDatabase" with 1 table called "MyTable". Within that table, I've got 3 col...

Access Java RMI from .NET

Hi, I have a existing java based system which uses RMI. I do not have access to change this system. I want to be able to call the RMI api methods directly from .NET. What is the best way to accomplish this? Free or lowish cost preferred if its a third party component. Thanks ...

Regex: How to get a group name

I have a .NET Regex which looks similar to: (?<Type1>AAA)|(?<Type2>BBB) I'm using the Matches method against a sample string e.g. "AAABBBAAA", and then iterating over the matches. My goal is to find the match types, using the regex match group, so for this regex it will be: Type1 Type2 Type1 I couldn't find any GetGroupName metho...

Setting tabindex

Hi, In wpf Textbox has TabIndex property to set the tab order, this is working fine when the controls are in the same context, In my case i have a listbox whose itemstyle has a text box and the style is assigned dynamically based on trigger. now how can i do the tabindexing so that when i tab index moves from textbox in first listboxite...

(.net) Having my userControl have its own icon on the toolbox

Hello. I made a control that inherits directly from ErrorProvider. I thought that applying it the ToolboxBitmap attribute would be enough to get my control to have the same icon on the toolbox as the original control has, but it doesn't. It's strange, as if I add the control to the form, it will appear just as it should, but it doesn't c...

C# Method Caller

Possible Duplicate: How can I find the method that called the current method? Hi, how can i determine the caller of a method from within the method? Eg: SomeNamespace.SomeClass.SomeMethod() { OtherClass(); } OtherClass() { // Here I would like to able to know that the caller is SomeNamespace.SomeClass.SomeMethod } Than...

Is there an implementation of org.apache.commons.lang.Validate for .Net ?

Is there an implementation of org.apache.commons.lang.Validate for .Net ? ...

Visual SourceSafe Setup

Hi All, Currently our .net project 3.5 is spread on three separate servers of presentation , business logic and state servers. Please recommend on how to setup this project under VSS 6.0 taking into consideration that we have multiple projects on dotnet and we have a series of development team working on them. Currently we have them as ...