.net

c# - how to sniff packets in an app without relying on WinPCap?

Hi, BACKGROUND: I now understand how to write a C# application that can monitor packets going in/out of the network card on the PC the application is running on. The approach I know relies on http://www.winpcap.org/ being already installed on the PC however, and then I use a C# wrapper such as http://pcapdotnet.codeplex.com/ or http://...

Is there a (good/free) VirtualizingWrapPanel available for WPF?

I've found a couple of alternatives, this CodePlex project and this commercial one, but the former is extremely inefficient in my testing, and the latter, well, costs $$. I've also found this implementation, but it's not so much a WrapPanel as a "TilePanel", and doesn't support automatically-sized items (though it does appear to be fast)...

MVC .NET 4.0 : Image Links

I was recently introduced to the HTMLhelper class....along with MVC in general. Does MVC, or the HtmlHelper class give any alternates for image links...and static links? For example, if I want to display an image on a webpage, do I still have to do the traditional href tag? I.e. <img src='/Content/Images/mypic.jpg' /> or is there...

Open source .Net vector graphics editor

Does anyone know of any open source vector editors written in a .Net language? I know Inkscape is very popular, but it is written in c++. The only .Net one I know of is XDraw, but would like something more active or with more features. Thanks. ...

how to update a single contact's group membership with Google Contact API and .NET?

I want to retrieve a specific contact, and update its group membership. I already know the self link of the contact. To get the specific contact, the developer's guide says to do this: //The example assumes the ContactRequest object (cr) is already set up. Contact c = cr.Retrieve<Contact>("http://www.google.com/m8/feeds/contacts/liz%...

Change File Extension VB.NET

Hi. Is There any Function For changing a file extension in .NET? Or i have to rename a file? thanks For Example I want to rename each file in a directory with ".resxx" extension to .resx. what is the problem with my code? Dim [option] As SearchOption = SearchOption.AllDirectories [option] = SearchOption.AllDirectories Dim...

Fuzzy search algorithm for western European languages (in my case Swedish)

I'm looking for a fuzzy search implementation that works well with western European languages. Which algorithm works the best and where can I find an implementation in C#? Update Soundex adapted to swedish: http://escuelle.blogspot.com/2008/03/swedish-soundex.html NYSSIS implementations: http://www.gamedev.net/community/forums/...

C# export to excel

Hello, Which is the best way to export data to an existing xls sheet. I needs to support many versions of excel. If i was using Visual basic. I would use the CreateObject("Excel.application") code which will do what i need. What is the equivalent in c#? I would love for it to work on any version, and if possible then also computers witho...

What VSDCA_Launch mean in Custom Action script

I want to launch an application after installation with Visual Studio setup&deployment output. I follow the article 'How do I launch an application after install in a Visual Studio Setup Project'. It has a solution that using Custom Action to add a checkbox and launch the application after installation. But I still have a problem, the ...

i'm writing a wrapper for cmd but am having trouble with redirecting standard input

OK so here is what I'm doing -- I want to write a .net app that redirects standard out / in to a richtextbox. I've got it working pretty well, but once I add standard input into the mix my read commands freeze up. Here is the relevant code from within my form. Shell = new Process(); Shell.StartInfo.FileName = "cmd"; ...

Free OLAP solution for .NET running on Mono / MySQL

I'm developing my university graduation project and I'd like to include an OLAP-based reporting module. In the past, I've used Mondrian with JPivot as an OLAP solution for Java projects and I'm looking for something similar using .NET. The tricky part is that my project should run on Mono and MySQL (installation environment is a Linux ...

Filtering according to data input problem

I have two controls: list box text box The list box binds its data from the database. What I want is: when I type any letter in the text box, the list box is filtered according to the text box (but just type any letter in the text box without clicking Enter or Tab or any other keyboard keys at the end). Always this does not work fo...

What solution do you use to automatically test your web application health or validity after deployment? (.net)

I'm looking for a simple to setup and to use solution to test the validity or health of a .net web application. The ideal solution would allow the developers to add his important tests as functions just like In unit testing and the ui would look like any unit testing running application, but in a web pages. Typical tests: permission pr...

C# timer (Slowing down a loop)

Hi I am a newbee to c# so please forgive me. I would like to slow down a loop so that it loops every 5 seconds. In actionscript I would use a timer and timer complete event to do this. How would I go about it in c#? Any pointers appreciated ...

How can I edit a text file using C#?

Lets say i have a text file with following content: Hello! How are you? I want to call the file via a simple application that produces an output file with the following contents: buildLetter.Append("Hello!").AppendLine(); buildLetter.Append("How are you?").AppendLine(); As you see, every line should be put between " ". Any h...

The difference between convert and parse.

Hi I could write the following to convert a object to and integer. Convert.ToInt32(myObject); But i could also write Int.parse(myObject.ToString()); Is there any difference? Which one should I be using? Thanks in advance. ...

Strange Button Behavior

My form has several textboxes and several buttons. The textboxes are loaded with data by the load event. If I make changes to the textboxes and then move the cursor over a button, the textboxes are suddenly loaded again with the original information. I don't click a button. I just move the mouse over one. Why is this happening and h...

Reading System.Diagnostics.ProcessStartInfo StandardOutput as bytes instead of chars

I'm trying to automate svnadmin dump using C# ProcessStartInfo. The way I've done it on the command line is like so, svnadmin dump c:\Repositories\hackyhacky > c:\backup\hackyhacky.svn_dump Works a treat and dumps successfully, and I can verify this by restoring it into another repository like so svnadmin load c:\Repositories\restore...

Temp Filename on specific partition?

I know about Path.GetTempFileName() and how to get the temp folder (usually its on your C drive) But how do i get a temp filename on a specific partition? i think as a workaround i'll do something like targetBaseDir/temp.tmp and then File.Move when its complete. ...

How Can I Put Escape Character before Special Characters using C#?

buildLetter.Append("</head>").AppendLine(); buildLetter.Append("").AppendLine(); buildLetter.Append("<style type="text/css">").AppendLine(); Assume the above contents resides in a file. I want to write a snippet that removes any line which has empty string "" and put escape character before the middle quotations. The final output would...