.net

What sort of Business Applications do you build with .NET, Java, PHP or Ruby?

Yesterday I asked a question about COBOL guy moving to modern platforms and I got some great answers. I was thinking about what kind of applications get built with java or .net? I know for sure that most corporate portals, blogs, discussion forms, surveys, tracking who registered which course, progress of your e-learning and stuff like ...

Reading Values from Textboxes in a .Net Deployment Project

I have a custom installer class that fires OnAfterInstall, how can I read values that were entered by the user in the pervious installation screens? The values are entered in textboxes. Also how can I force the installation to fail in my custom installer class and display an appropriate message to the user regarding the failure? ...

Difference between Root Namespace and Assembly Name

What's the difference between the two..?? ...

Checking network status in C#

How do I check that I have an open network connection and can contact a specific ip address in c#? I have seen example in VB.Net but they all use the 'My' structure. Thank you. ...

Video editing capablities

Hi All I am building a desktop application ( .NET) for which basic video editing capabilities like adding music ,captions ,editing etc is required. Are there any open source options or third party libraries any one can recommend Thanks in advance Anon ...

How best to communicate between AppDomains?

I have an application that needs to send a moderately high volume of messages between a number of AppDomains. I know that I could implement this using remoting, but I have also noticed that there are cross-domain delegates. Has anyone looked at this kind of problem? ...

Tab Index in Windows Forms

In my current application I have a form that requires the user to enter TONS of data. There are about 30 Textboxes and it happens that during development new ones get introduced or old ones get kicked out. One Requirement by my customer is that they are all navigable through pressing Tab, and so I'm currently at the mercy of the TabInde...

Starteam will not check-in a new file added to a project.

I am using Visual Studio 2005 and StarTeam 2008 (cross-platform client and VS integration). At some point, I added an 'App.config' to a project. I notice now that this file will not check-in. The 'StarTeam Pending Checkins' window in VS reports the file 'Not in View'. Selecting it for check in and clicking 'Check In Files' causes a dia...

Workspace problem once the user name has been changed in TFS Source Control

For some reason the system admin changed my user name from XxXx to XxXx1 in the source control system. Then the problems started. I had to delete all local files and re-download them from source control just to open the project. And after I had rebooted the computer, I can't do much to my files. Whenever I try to undo a checkout I get t...

How can I have a foreign text in subject line?

Hi, I have an xml web service which I use at work to make a request to. This request, an xml document, includes information such as recipients, subject, body, etc (as a newsletter would contain). I have an ASP.NET form to enter the above information to, to form the Xml document, and I can type foreign characters (non latin - Japanese, ...

How to mark a class Deprecated?

How to mark a class deprecated? I do not want to use a class anymore in my project, but do not want to delete it beforea period of 2 weeks. ...

Outsourcing Classes by Supporting Unit Tests

I've got an application which developed by employing TDD as methodology (not strictly but mostly). Now I want to outsource some parts of the application because I don't have enough time to develop it. I'm planning use websites such as "Rent A Coder", "elancer" etc. I don't want to give out my code to anyone else, so I'm planning to giv...

nhibernate class implementation based on value.

I'm creating a blog library using nHibernate and I have a BlogEntry class that has a CreatedBy property of type User (User is an abstract class). The two concrete implementations of the User class are RegisteredUser and UnknownUser. I'd like nHibernate to instantiate UnknownUser class if the value in the CreatedBy field is null. If it i...

Custom Attributes and Exceptions in .net

Hi, while writing a custom attribute in C# i was wondering if there are any guidelines or best practices regarding exceptions in attributes. Should the attribute check the given parameters for validity? Or is this the task of the user of the property? In a simple test I did the exception was not thrown until i used GetCustomAttributes ...

Looping through a datatable and remove row

I have populated a Datatable, from 2 different servers. I am able to make adjustments where my length>0, what I want to do is remove the rows that does not hit. Here is a summary of what I have DataRow[] dr = payments.dtPayments.Select(myselect); if (dr.Length > 0) { for (int a = 0; a < dr.Length; a++) { if (thisOption ==...

Transforming flat file to XML using XSLT-like technology

I'm designing a system which is receiving data from a number of partners in the form of CSV files. The files may differ in the number and ordering of columns. For the most part, I will want to choose a subset of the columns, maybe reorder them, and hand them off to a parser. I would obviously prefer to be able to transform the incoming d...

Anonymous Types - Are there any distingushing characteristics?

Is there anything to use, to determine if a type is actually a anonymous type? For example an interface, etc? The goal is to create something like the following... //defined like... public static T Get<T>(this IAnonymous obj, string prop) { return (T)obj.GetType().GetProperty(prop).GetValue(obj, null); } //... //And then used like...

Windows 2000 and Windows 2003 RC2 encryption/decryption using windows Crypto API?

Our app encrypts a value using RC2 in C++ code and I wrote a decryption routine in .NET The problem is that it works fine on our dev server, which is Windows 2003 but fails on the Windows 2000 one. It's running the same code and I checked everything else and it seems there are differences in the way the 2 encrypt. Has anyone had any ...

Multi-lingual projects in Visual Studio

Would anyone know if there are plans or extensions to Visual Studio to allow for multi-lingual projects? While the .NET platform is truly polyglot, Visual Studio project are stubbornly monoglot which means that all the work that goes into tooling C# and VB is unusable from newer languages like F# and IronPython. PEX is an example of a ...

Get the combobox text in C#

I filled up a combobox with the values from an Enum. Now a combobox is text right? So I'm using a getter and a setter. I'm having problems reading the text. Here's the code: public BookType type { get { return (BookType)Enum.Parse(typeof(BookType), this.typeComboBox.Text); } set { this.typeComboBox...