Quantcast
Channel: Visual C# forum
Browsing all 31927 articles
Browse latest View live

noisy input

this is a video i uploaded to youtubehttp://www.youtube.com/watch?v=92UC_drDwB4&feature=youtu.bewhy is my input signal so noisy? I am doing 44100 sampling rate32768 samples at a timeI have a filter...

View Article


Monitoring http using c#

What is the best way to monitor http traffic that goes out of (and comes into) the PC? Sniffing packets using raw sockets doesnt seem to serve the purpose since I'm more interested in the http data...

View Article


Linq Query Always Returns a Result Equal to Zero

The result of my linq query always returns zero when I know that it should return a result larger than zero.I have two in-memory tables, dtEquipment and dtX; both with identical schema. I want to...

View Article

Powershell new session event

Hello, in a Windows Service I've overridden OnSessionChange method to be able to receive SessionLogon and SessionLogoff events. It works for normal and RDP sessions but it doesn't notify me if someone...

View Article

text file into multiple text boxes

HelloI am pretty new to C#. I have a text file separted by comma, which I want  to read one by one into multiple text boxes.For eg : text file looks like thisA,a,20,abcB,b,30,xyzC,c,40, lmoI want to...

View Article


Error : "(application.exe) has encountered a problem and needs to close. We...

I have written a C# WPF application, with .NET Framework 4.0. When I deploy this application to some PCs, it runs perfectly OK.However, when deploy to some other PCs, with the .NET Framework 4.0...

View Article

Async causing deadlock

I am running into a problem with using async. I get a deadlock every few days and I have a feeling it has to do with something in the below code chunk. Does the code look like async best practice or...

View Article

Slow call to mixed-mode DLL from ASP.Net?

Hello,With VS2010, we find that a mixed mode DLL (managed C++ wrapping native C++ calls), is 25% slower when called from web app (Asp.net) compared to calling the same DLL from a console in C#.Any...

View Article


Unable to add multiple src in an img tag for outlook mail template

Hi,I need to send bulk mail using a web service. I'll pass a HTML template as well as a xml file as inputs. My problem is, I need to attach two images into the mail template. I'm using 'cid'. But this...

View Article


WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for...

<?xml version="1.0"?><!--<configuration>    <system.web>      <compilation debug="true" targetFramework="4.5" />      <httpRuntime targetFramework="4.5" />...

View Article

Performance issue on Console.WriteLine();

Hi all,Am using Console.Writeline() in so many places in my C# application, observed due to this some performance issue in my application.how to we disable this with single property, instead of...

View Article

Cnert Error

Not Needed, Problem Solved.

View Article

How to determine the name of the client connected via mstsc?

Dear Guru!  Multiple users connect to the server via mstsc and run the same program (. Net c #).  How to determine client mstsc, started the program?

View Article


String StartsWith seems to have trouble with unicode character 712

Hi,In the following codestring ex = "bˈ"; if (ex.StartsWith(ex[0].ToString(), StringComparison.CurrentCulture)) { Console.WriteLine("correct"); } else { Console.WriteLine("wrong"); }It returns wrong...

View Article

Using a process instance again

I've started an IE process like this:Process.Start("iexplore.exe","http://www.google.com");Is it possible to grab the handle for this process and use it again like this:Process currentProcess...

View Article


Accessing an external file

I tried examples in C# to read external file, accessing it with @"C:\\test.txt" or @"C://test.txt"I get the message that it cannot find the file. Do I need to make certain configurations or to put the...

View Article

JavaScriptSerializer in a partial trust assembly

Hello,I have an app domain with restriction. I want to use the JavaScriptSerializer in a partial trust assembly.The behavior is really strange ! First thing was to add the System.Web.Extensions...

View Article


Process.StandardOutput.Read() & Peek() hang on empty buffer

Hello,I need to asynchronously read the stdout stream of a processcharacter-at-a-time, even if there is no newline character.  My simplified but still failing code is below. I realize there is an...

View Article

SoundPlayer Exception: The wave header is corrupt

Platform: .NET 2005 with .NET 2.0 framework.  Windows XP ProfessionalWhen attempting to utilize the SoundPlayer I always get the error message:"An unhandled exception of type...

View Article

URL Encoding and Base 64 String

Hi guys,I have a question regarding URL Encoding and Base 64 String. I have a sample HTML below that I will pass as a parameter to a REST API of my email...

View Article
Browsing all 31927 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>