.net

QR Code generation in ASP.NET MVC

Is there a .NET API that generates QR Codes such as this one? I'd like to display these on pages that I expect my users to print out. ...

Play Sound Channels

hi i am creating an audio editor. i want to play audio(wave) channels(R or L) separate. how i can do this. ...

Under what circumstance System.Collections.ArrayList.Add throws IndexOutOfRangeException?

We are experiencing weird bug at production environment we cannot debug nor inject logging code. I am trying to figure this up but following stack trace confuse me. System.IndexOutOfRangeException: Index was outside the bounds of the array. at System.Collections.ArrayList.Add(Object value) at ... According to the MSDN Add method...

How to get up to speed with C++ if you're a .NET developer?

Possible Duplicate: How to learn C++ as a C# programmer? I'm a C# developer with ~2 years professional experience and fairly good knowledge of various programming languages (Python, Java, C, C++, SML, OCaml etc.). So, assuming that I don't have to learn basics of programming - what resources would you recommend to get up to s...

Error: "The deserializer has no knowledge of any type that maps to this contract" ?

I have a class Foo marked [Serializable] and implementing ISerializable. I'm trying to serialize it via DataContractSerializer. In GetObjectData I do this: info.AddValue("Test", new[] { 1,2,3}); It fails with: Element ':Test' contains data of the 'http://schemas.microsoft.com/2003/10/Serialization/Arrays:ArrayOfint' data contract....

Enable drag&drop from explorer to Run-As-Administrator application

I built a winforms application, and implemented drag&drop functionality. this functionality works great in WinXP or in Win7 from Run-As-Administrator applications. The problems become when tring to drag from non-admin application in Win7 to my program, it just not working. I understand this because the OS filtering the messages. I foun...

What's the best way to setup git when having common code that should be used in several repositories?

Hi Everyone, I'm working as a .NET developer in a development team where we are using kanban for our software development process. We are currently using team foundation server for source control and having a branch-by-feature strategy to ensure that we allways have releasable code. Since there is some "limitations" in Team Foundatio...

Waiting for WebBrowser ajax content

I want to pause the execution of my thread until a particular div has been loaded via ajax into a WebBrowser instance. Obviously I can continuously check for the presence of this div doing something like: while (Browser.Document.GetElementById("divid") == null) { Thread.Sleep(200); } However, sleeping the thread that the Browser is in...

Downloads folder: not special enough?

In .Net we can retreive the paths to 'special folders', like Documents/Desktop etc. Today I tried to find a way to get the path to the 'Downloads' folder, but it's not special enough it seems. I know I can just do 'C:\Users\Username\Downloads', but that seems an ugly solution. So how can I retreive the path using .Net? ...

Display PDF in a BookControl. Convert PDF to XAML?

I've got a PDF I'd like to show in a Book Control. Since this control can't use PDFs I have to work around it by either using images or converting the PDF to XAML. What is the most elegant way to do this? ...

string builder vs string

Possible Duplicates: When to use StringBuilder? string is immutable and stringbuilder is mutable what is diffrent of string and string builder ? where do we use string builder ? ...

Entity Framework issue - "Mixed mode assembly...cannot be loaded in the 4.0 runtime without additional configuration information"

I have a UI & Library project for the solution where I'm having the problem. The library project uses Entity Framework & the unit tests work OK with it. The project is a C# 4.0 WPF application. To try to get a basic EF line of code working I copied the connection string from the Library project app.config to the UI project app.config....

How to make a setup installer? For asp.net mvc 2.0, cmd line applications and webservices.

Hi I am wondering how can I make a setup project for each of these projects Asp.net mvc 2.0 C# cmd line Application C# web-service I am using VS 2010 ultimate and I know that I can use the the free edition of install shield for at least the cmd line application. I am not sure about the other 2. I also know about the setup project ...

How to handle a custom event in a XtraGrid control

I am trying to solve a problem with a DevExpress XtraGrid in a winforms app. I have created a custom RepositoryItemButtonEdit control and have one unbound column in a XtraGrid that uses it. This control is a custom search field which throws an event when it has completed a search. What I am trying to do is add an event handler to the ce...

Streaming video. How to support a lot of small webinars at one time?

Hi! I’ve got a question about streaming video. I have to embed ability to organize "webinars" for 10-15 users. We can have several hundred webinars in one time in the beginning and several thousands of it in the future. Chosen solution must have abitity to stream video from any webinar member to all other webinar members. Only one member...

C++ and .net, open source samples, and learning.

Hi I have worked on embedded projects in c and c++ for a couple of years, never really had much of a chance to work on .net. Now can some explain to me how can i learn .Net , how long do you think it would take me to learn .Net? I look online and it seems scary, Im not even that good at c++, now there is this .net to learn. jesus. now t...

Does ToString() produce a new string on when used on strings?

Hi, Does "hello".ToString() produce a new string or is it smart enough to return a reference to the same object? ...

Read only part of a XML to datatable

C# I have a XML file that contains serealized datatable. Each row represent and event. The amount of events can reach up to milions, and loading all this data can take a very long time, and can cause the program to crash (No memory). Is there a way to load only the last X rows of an XML file to the datatable, and then save them without...

problem with download picture from canon camera to pc

hello i connected a eos canon camera to pc i have an application that i could take picture remotly ,and download image to pc, but when i remove the SD card from camera , i cant download image from buffer to pc // register objceteventcallback err = EDSDK.EdsSetObjectEventHandler(obj.camdevice, EDSDK.ObjectEvent_All, objectEventHandl...

Effect of IsBackground on .Net Threads?

I know that when the main method is running and the only other threads that are running are background threads then the application exits. Other than delaying program termination or not, does a backgrounded thread do anything differently or respond differently than a non-backgrounded thread? ...