I am using VB .NET to write a program that will get the words from a suplied text file and count how many times each word appears. I am using this regular expression:-
parser As New Regex("\w+")
It gives me almost 100% correct words. Except when I have words like
"Ms Word App file name is word.exe." or "is this a c# statment If(a...
Hi,
Im loading an image from a SQL CE db and then trying to load that into a PictureBox.
I am saving the image like this:
if (ofd.ShowDialog() == DialogResult.OK)
{
picArtwork.ImageLocation = ofd.FileName;
using (System.IO.FileStream fs = new System.IO.FileStream(ofd.FileName, System.IO.Fil...
Hi
I know how to add SL page as a whole to existing ASP.net application. We have existing ASP.net page with few tabs. Each tab is a user control. We want to add another tab, which will host Silverlight content.
Is it possible to add silverlight content in one of the tabs of a page? Any example links?
Another way of putting up the sam...
I wonder if there is a way of concating two strings in Silverlight inside xaml file. I have a DataGrid where one of the columns is 'Default Contact' and I would like to represent data in there as first and last name.
<sdk:DataGridTextColumn Header="Default Contact"
Binding="{Binding Path=DefaultContact.FirstName}...
Hi
I have a couple of questions related to TFS and source control:
1) I was wondering if TFS2010 supports older versions of projects, such as projects from Visual Studio 2008, and whether it can build those projects normally.
2) I'm also curious about upgrading. Can I just upgrade my existing TFS 2008 to 2010 without installing the n...
I have a Web Application that displays a Map Service that is in NAD 1927 UTM Zone 15N. I have JavaScript code that displays the XY in status bar based on where mouse cursor is on that map. I want to display Latitude/Longitude values instead. Does anyone know how?
...
I am connecting to a PostgreSQL database from a .Net web service (both on a Windows XP machine). On a few occasions recently, on a few different computers, we have received System.AccessViolationException errors.
One stack trace I was able to obtain showed that it was occuring when I took an ADODB.recordset and obtained the value of a ...
My code works for ORs as I've listed it below but I want to use AND instead of OR and it fails. I'm not quite sure what I'm doing wrong. Basically I have a Linq query that searches on multiple fields in an XML file. The search fields might not all have information. Each element runs the extension method, and tests the equality. Any ...
I've already tried System.IO.DriveType. But it only provides to me with the information of whether it's a removable drive such as floppy disc or a USB flash drive. And a USB external hard drive will be recognized as a local non-removable drive in this case.
Furthermore, since there are more than one kinds of external hard drive, for exa...
I have a WPF application which I am using to learn MVVM and IoC.
The problem is that the Model used by one of the Views expects to pull one of its dependancies in the constructor from an IoC container.
When working on this View in the Visual Studio designer it cannot show the design because an exception is being raised in the model.
...
So I'd like to make a visible table, with a border around each cell and a different background color for the header. I'd like to eventually insert controls into this. For example, put a textfield inside one of the table elements, or some radio buttons, etc. Is there a control for this?
I've narrowed it down to two possibilities, but the...
I've come across some curious behavior with regard to garbage collection in .Net.
The following program will throw an OutOfMemoryException very quickly (after less than a second on a 32-bit, 2GB machine). The Foo finalizer is never called.
class Foo
{
Guid guid = Guid.NewGuid();
byte[] buffer = new byte[1000000];
static Ra...
I have an area on the left with selectable items, and depending on what type of item is selected, I want to show one of three or four different forms on the right.
It would be nice to make some type of control so the main form can be less of a mess.
What's the best pattern for this in WPF?
I'm a WPF newbie, and I've spent some time g...
I would like to write a C# app that runs like an overlay on the desktop wallpaper. Similar to the way that desktop widgets or Rainmeter(rainmeter.net) runs; behind other apps but on top of the desktop wallpaper.
I cannot find any C# examples of this kind of behavior. Can someone point to me to some code?
Here is an example of what I ...
By what i understand String and StringBuilder objects both allocate contiguous memory underneath.
My program runs for days buffering several output in a String object. This sometimes cause outofmemoryexception which i think is because of non availability of contiguous memory. my string size can go upto 100MBs and i m concatenating new s...
Something like this.
http://code.google.com/p/squiggle-sql/wiki/Tutorial.
This is required for cases where It is required to build complex sql from the user input from UI. Currently in the project I am working is using String Manipulation which looks ugly and is difficult to maintain.
...
is there a way to parse OpenCalais RDF in .NET as i'm using dotnetRDF and it keeps giving me errors. A sample of the Rdf generated may be found in http://viewer.opencalais.com/ , i'm honestly really lost and would really appreciate any help! please help if you use any other apis or know how to make it work with dotnetRDF as i'm honestly ...
I need a Fluent NHibernate mapping that will fulfill the following (if nothing else, I'll also take the appropriate NHibernate XML mapping and reverse engineer it).
DETAILS
I have a many-to-many relationship between two entities: Parent and Child. That is accomplished by an additional table to store the identities of the Parent and C...
I'm writing an application in C# for a smart device running Windows Mobile 6.1. It's pretty basic. Just querying a database and getting results. Nothing too fancy.
This program is only going to be deployed internally, but we still want to be secure with our SQL connection info.
What's the best way I should go about encrypting/securing ...
I have a form which contains a series of fields like:
<input type="text" name="User[123]" value="Alice" />
<input type="text" name="User[456]" value="Bob" />
...
Where the index of the User array (123 and 456) are ID's associated with the value. I'm trying to update these values in the controller.
My thinking is that a Dictionary that...