.net

Why does Visual Studio fail to update method signatures?

<rant> In development, the biggest time sink seems to be Visual Studio. Solving issues with it eats up half of my development time and I'm left implementing with half the alloted time! </rant> Back to the question. I've got a couple of custom controls developed in ASP.NET: RaiseEventControl, HandlerControl. They reside on a Parent For...

WPF Blurry Images - Bitmap Class

I am using the following sample at http://blogs.msdn.com/dwayneneed/archive/2007/10/05/blurry-bitmaps.aspx within VB.NET. The code is shown below. I am having a problem when my application loads the CPU is pegging 50-70%. I have determined that the problem is with the Bitmap class. The OnLayoutUpdated() method is calling the Invalida...

How do you use the CopyIntoItems method of the SharePoint Copy web service?

I am attempting to load document files into a document library in SharePoint using the CopyIntoItems method of the SharePoint Copy web service. The code below executes and returns 0 (success). Also, the CopyResult[] array returns 1 value with a "Success" result. However, I cannot find the document anywhere in the library. I have two qu...

Is it possible to create a common database class in VB.NET?

We have 3 databases providers we use to connect to our databases: DB2, MS SQL, and Interbase. I would like to create a single generic database wrapper class that can be used to talk to all three just by passing in the correct connection string, username, password, and the provider desired. I don't want to have to add references and imp...

Where can I learn more about TransportSecurityWithMessageCredential in Silverlight 3

I read here about the new security options in Silverlight 3 and I was hoping someone could give me a link to more information on the TransportSecurityWithMessageCredential option in Silverlight 3. Thanks ...

Trying to change the Border Color of a label

I'm working in VB, VS2008, winforms. I've got some labels to create, and I'm using the BorderStyle = FixedSingle. Is there any way to change the color of this border? It is always defaulting to black. ...

Telerik Open Access ORM - Should I pay for my ORM?

Is there anyone out there that has used the Telerik product and had good experiences with it, especially if you have also tried other ORM's? Are there specific advantages to Telerik's product that warrant the price tag? Why would I choose it over something free like nHibernate? EDIT: Telerik says they are "Reflection-Free." Is there a...

Current state of Mono on Linux?

I'm a long time user of the .NET Framework on Windows platforms, but I do a lot of programming on Linux as well. I'd like to take advantage of Mono for some particular projects, but the last time I tried (maybe 2 years ago?), Mono was simply not up to the task. As well, it was particularly difficult to get really good information on the ...

Is there a widely used library of patterns & interfaces for .NET 3.5?

I'd like to avoid coding my own version of IFactory, ILog, IRepository and other common interfaces & implementations in my projects but find that commonly used libraries containing these tend to be focused on a particular concrete subsystem (one ORM, one IoC container, one logger). I've come across a some that seem more abstract (NCommon...

MemoryStream vs an array of bytes.

Hi; While using a MemoryStream, I find myself often copying (hence duplicating) data to a temporary array of bytes. I think it's a little bit of a waste of ressource, because MemoryStream dosen't let you directly access the underlying byte array. In this situation, what's the real advantage of a MemoryStream? I have read somewhere tha...

Class library modification / migration

I have 3 class libraries. A BBL, a DAL, and a DATA (about 15 datasets). Currently 4 [major] applications utilize the functionality in these DLL's. I'm rewriting one of those applications and I need to (1) Use some of the existing functionality in the libraries (2) Change some of it (3) Add new functionality (4) Add new datasets. I'm bac...

EDI Library

What library have you guys used to create and parse X12 documents? ...

How would you only draw certain ListView Items while in Virtual Mode?

C#: How would you only draw certain ListView Items while in Virtual Mode? I am trying to create a filter-like feature to use in listview so that if the user selects an imageindex from 0-5, it will loop through the listview items and only make it so that the items in question with the correct image index will be displayed and the other ...

XAML in Database - Getting Very Meta

How would you go about making an application that can edit it's own look and feel? Can tweak its own XAML files? then reload them. I'm thinking a notepad-like text editor, not a visual designer. All the event/code would be bound right after display from an "iron" scripting language. ...

How to generate a fax and send it in code.

I have a business requirement to generate a fax and send it to the recipient. I know the recipients name and fax number and there is a PDF that will be attached. This process will run daily and consist of 100 records to process each time. I was under the impression that this could be done by sending an email to the fax machine and a q...

Can resharper break your code?

As a young(ish) developer in a solo shop I have come to greatly appreciate Resharper as a learning tool and mini-QA. That being said, can Resharper break your code in some cases(possibly edge)? For example(see below), R# continually suggests that my --> this. is redundant and catch is redundant There are other examples as well but ...

Could this tile blitter get any faster?

When I make a tile-based map editor in C#, I tend to iterate over the X,Y axes and call Graphics.DrawImage() to blit a single tile in place, from a tileset Bitmap onto a map Bitmap. This process takes several seconds to complete, so I only do it once when loading a new map or changing its tileset. Any edits from there on are relatively f...

Linq with hierarchy in the data base. How do I pass on the keys?

Hi all, Here is the scene. Agents -> Organization -> Schools Agents -> Persons -> Educators So each of the 5 tables exist in the data base. The AgentId (GUID -> uniqueidentifier) is generated in the Agents table and I need it to be passed on to Organization -> Schools or Persons -> Educators. But Linq to SQL does not reconize that, an...

Referential identity in persistence frameworks

With our current persistence framework properties on a child entity that point to it's parent always point to the same instance. For example, given the following entity classes public class Order { public int OrderId{get;set;} public EntityCollection<LineItem> Items{get;} } public class LineItem { public Order Order{ get;se...

Is C# compiler open source?

Is C# compiler open source? ...