.net

What is the best way to draw objects and deal with them?.

Hi, I want to draw on my PictureBox and then deal with those drawings that i created. is it a good way to store their points in an array and deal with this array??. Or the better way is to make them objects and deal with these objects?.And if so could you please put me on the head of way to make that??. Thank you my really teachers. ...

Registering a service on the .net service bus

How can I programmatically be able to create a feed and add entries on the .NET Service bus reistry? I have a set of asmx and wcf services which I would want to be discoverable using the service registry capability of the .Net Servcie bus. Has anybody tried this one? ...

How to write or generate an XML file

How to write or generate an XML file using C# to get the result below? <?xml version="1.0" encoding="UTF-8"?> <pages> <page name="Page Name 1" url="/page-1/" /> <page name="Page Name 2" url="/page-2/" /> <page name="Page Name 3" url="/page-3/" /> <page name="Page Name 4" url="/page-4/" /> </pages> ...

One tool to help you write better .Net code?

If you had to choose one tool, other than Visual Studio, that helps you write better code, which would it be? ReSharper, nDepend, nUnit, other? ...

How can I change a Web Sevice URL with out recompiling?

We have an web app that is talking to Netsuite via Netsuite's web services. We setup the Web Service via VS 2005's Add Web Reference wizard which generates all the proxy code. Netsuite have sandbox accounts that allow testing (a different web reference URL). Ideally we want to hop back and forth between the live service and the test ser...

ReportViewer vs CrystalReport .NET

Hi, I am looking for some comparisons between CrystalReport and ReportViewer. Pros and Cons, and why I should use one over the other. Has anyone stumbled upon such an article? Or have some experience with both? Thanks. ...

What can I use on .NET CF as a replacement for HttpUtility.UrlEncode

I need to move .NET code to the Compact Framework. That code uses HttpUtility.UrlEncode to encode query parameters, but System.Web isn't available on CF. What can I use instead? ...

How can I monitor the winforms TextBox.SelectionStart property for changes?

I have a multiline text box, and I'd like to display the user's current line number and column number in a label below the text box. It looks like I can get the line number and column number using the SelectionStart property, GetLineFromCharIndex method, and GetFirstCharIndexOfCurrentLine method. However, I can't see any event that gets ...

Postgres to SQL Server

I'm attempting to retool myself more towards .NET (coming from an opensource background) and am looking at learning Microsoft SQL Server to complement my skills in C#. How easy would it be to transfer my skills from Postgres to Microsoft SQL Server? Furthermore would a book on SQL Server 2005 (Database Essentials - Step by Step, Microsof...

Why does the database access time change?

For one of my applications, I'm running SQL Server 2005, and I'm running it on localhost. When I'm accessing it though the application it takes it 1-10 seconds to start showing data if I'm accessing it on localhost. However, when I move away from localhost and access it from another computer on the network, the access time is around one ...

Dynamic Data Web Application give me error?

İ try to work Ado.net Entity Framework with dynamic Data web Application But My solution run wthout error But Click gridview items create me : Server Error in '/' Application. The method 'Skip' is only supported for sorted input in LINQ to Entities. The method 'OrderBy' must be called before the method 'Skip'. ...

Hosting remoting singleton in IIS, clients can block the server.

We have a remoted singleton object hosted in IIS which is servicing multiple clients. During development we noticed that if one client is stopped in the debugger all other connected clients will stop receiving messages from the server. Messages are delivered via event call backs, the server will create it's own threads to send messages...

Optimizing Lookups: Dictionary key lookups vs. Array index lookups

I'm writing a 7 card poker hand evaluator as one of my pet projects. While trying to optimize its speed (I like the challenge), I was shocked to find that the performance of Dictionary key lookups was quite slow compared to array index lookups. For example, I ran this sample code that enumerates over all 52 choose 7 = 133,784,560 possib...

How to change columns data in Dynamic Data Web Application?

Possible Duplicate: Dynamic Data Entities ID Column visible false? There are Two kind of template in asp.net 3.5 1) Dynamic Data Web App. 2) Dynamic Data Web App. Entities My SQL database has got Customer Table ; Columns : ID, Name,Surname vs. if you use first one(Dynamic Data Web App); you can not see ID column(Customer Ta...

.Net dependency injection on debug build using nant

Hi All, I have a relatively small app that Im building using vb.net 2.0, and nant. Its a app that calls out to an external exe to produce some output files, then processes those output files afterwards. I have built an interface to the exe, which I have created a stub implementation and the real implementation, what I would like to be ...

Good XMPP/Jabber client library for .NET 3.5 (or 4.0)

What are some good (or the best!) XMPP/Jabber client libraries for .NET 3.5 or 4.0 development? I have seen a few decent libraries out there, but most of the good ones seem to be built for Framework 2.0. (If a Framework 2.0 library is still the best, I'm ok with that. I'm just looking for the best libraries for a new project built on ...

Auto-populating a DataTable column

How do you fill out a particular column of a DataTable (say, a uniqueidentifier) on creation of a row so that you can always assume that column is going to have a useful value? I've got this column bound to a property on an object of mine with NullValue = Guid.NewGuid() but it requires FormattingEnabled and so I suspect that this i...

In Memory OleDbConnection to Excel File

I would like to open an OleDbConnection to an Excel file that's in memory as a FileStream. Does anyone know if this is possible and how to accomplish it? Big picture I would like to pass the file bytes into a .NET CLR Stored Procedure and extract the data. Perhaps there's a better way to do this that I've not considered. Thanks in ad...

Get installed applications in a system.

How to get the applications installed in the system using c# code? ...

How do you implement continuous integration for .NET projects?

My company currently use CruiseControl.NET, which I find quite a pain on the neck to configure. What CI solution do you use? ...