.net

Quick watch window not showing the variable value in Visual Studio for C++/CLI project

I know that Visual Studio support for C++/CLI is terrible. But I am getting a weird issue when doing a Quick watch. The variable which I am watching is in the scope and it has value. But VS says, the variable is not in the scope. See the image It would be great if someone can suggest a workaround. Or is this a bug with VS? ...

How to detect current audio device volume

I want to detect the current volume for the default audio recording device of the current computer. Is there any API to use or solutions? I am writing an audio recorder and I want to let the user know the current volume for the default audio recording device before recording, so that we can avoid a no-audio-recorded issue (e.g. end user...

How to ease the transition from WinForms to WPF

I'm working on a large Winforms application dealing with large amounts of data exposed through grids. I see us eventually moving completely to an M-V-VM & WPF implementation but now we're still closer to a ball-of-mud than anything resembling loose coupling. As we evolve toward cleaner separation of concerns, what are some specific patt...

play audiofile

i done a code for playing a .wav through my appln.now i want to play a mp3 file through can anyone help to come around that. herer i have .net framework 1.1 only ...

Developing trading applications

I'm a developer with a .NET background and I'm dying to get into the trading applications realm. What technologies would I have to learn to be able to develop trading applications? I have seen C/C++, any others? What do people use for the GUI? ...

Silverlight deep zoom image click issue

Hello everyone, I am using deep zoom composer to generate XAP and html files and they works fine for me. Currently, I want to retrieve the information about which image the end user is clicked, and I want to display the description information for the user clicked image in another Silverlight TextBox control on the same page. The descri...

Difference between Linq to Sql, Linq, Typed Datasets, ADO.NET

I been wondering about this for a while. It seems like there are so many ways now I don't know when to use what? Or if there is even a point to learn them. Like I don't know if they basically do all the same things and just basically stick with one till you master it then maybe look at other ones. So when I was taking an ASP.NET course ...

Minimum-trust AppDomain cross-calling methods in a full trust AppDomain

I have a minimum-trust AppDomain that is calling (across a remoting boundary) methods in a full trust assembly in a full trust AppDomain. However I am getting lots of security exceptions when making these method calls. It would appear that the minimum-trust 'sandbox' is propagating up the stack its minimal security privileges onto the f...

Detect a 3G internet connection in .NET

Our application downloads data from the internet using RSS but is having connection problems on machines connecting with 3G. We'd like to detect 3G,EDGE,GPRS connections so that we can change the application behaviour, display warnings or status of connection. How would this be done? ...

WYSIWYG data driven graph generator

I'm creating quite a few SSIS packages to drive document composition (e.g. utility bills, statements, etc). These require complex graphs in some cases, mostly bar or line graphs (some with bars and lines) Is there any charting program or library you can build a graph in a WYSIWYG environment (preferably selecting sample data to work off...

GMail SMTP via C# .Net errors on all ports

I've been trying for a whlie on this, and have so far been failing miserably. My most recent attempt was lifted from this stack code here: http://stackoverflow.com/questions/704636/sending-email-through-gmail-smtp-server-with-c, but I've tried all the syntax I could find here on stack and elsewhere. My code currently is: var client ...

TCP or UDP help with a server/client in c#?

Hi there, Can anyone help, i trying to figure what i need to do, i have been given the tasks of writing a server and a client in TCP (UDP). basically multiple clients will connect to the server.. and the server sends MESSSAGES to the client. I have no problem in creating the server and client but with tcp i am unsure whcih way to go. D...

Simple peer to peer network library for .NET

I have a server application that needs to find and exchange small amounts of data with other instances of itself on a local LAN. This is not a critical piece of the application. It must be done peer to peer without a central server or advance configuration. Are there any existing libraries that do something like this? EDIT I shoul...

Why should a .NET struct be less than 16 bytes?

I've read in a few places now that the maximum instance size for a struct should be 16 bytes. But I cannot see where that number (16) comes from. Browsing around the net, I've found some who suggest that it's an approximate number for good performance but Microsoft talk like it is a hard upper limit. (e.g. MSDN ) Does anyone have a de...

What is the reason not all value types are nullable?

Is there any penalty, such that you should only set them as nullable when you really need it? Thanks ...

Source attribute of Silverlight MultiScaleImage

Hello everyone, I learned we should assgin a .bin file to the Source attribute of Siverlight MultiScaleImage. For example, I learned from here (refers to code sample in section Anonymous Methods for Events), http://www.soulsolutions.com.au/Blog/tabid/73/EntryId/410/Silverlight-Deep-Zoom-Sample-Code-Part-2.aspx But I have tried using ...

dynamic adding of markers on the server side which reflects in Client side in google maps?

i want the the administrator of the webApp to create markers which would reflect on the client side and i also require a search field where in the client can type the desired location and the map is set on the same location with a better zoom level of the map. ...

Why does .NET create new substrings instead of pointing into existing strings?

From a brief look using Reflector, it looks like String.Substring() allocates memory for each substring. Am I correct that this is the case? I thought that wouldn't be necessary since strings are immutable. My underlying goal was to create a IEnumerable<string> Split(this String, Char) extension method that allocates no additional me...

Sharing my repository (repository pattern) with other projects(.NET)?

Hi there, i am trying to tidy up my code, i have a number of projects that have References to my Service Layer i.e the DLL. What this means is that when i distribute a new service layer i have to upload a number of service layers which are generally the same.. Of course using the ADD Reference is very fast as its one assembly talking t...

Javascript keyup/keydown in .NET WebBrowser Control

Hi all, I have a .NET WebBrowser control that I am using to display some javascript-heavy pages that I've written. The pages use YUI and have been built in a way to be portable. I have just discovered that while I can capture keypress in javascript, I cannot seem to capture keyup or keydown in javascript. This prevents me from hooking ...