I am in the design phase of writing a new Windows Service application that accepts TCP/IP connections for long running connections (i.e. this is not like HTTP where there are many short connections, but rather a client connects and stays connected for hours or days or even weeks).
I'm looking for ideas for the best way to design the net...
I am trying to create an extension method for the generic delegate Action<T> to be able to make simple asynchronous calls on Action<T> methods. It basically just implements the pattern for when you want to execute the method and don't care about it's progress:
public static class ActionExtensions
{
public static void AsyncInvoke<T>(...
I have an mht file, I wish to get all the text of the mht. I tought about using regex, but I have other languages in the mht except english, so the text itself contains stuff like A7=A98=D6...
select all the text of a file viewed in your browser, and then copy and paste it into a notepad - this is what i need.
Thanks.
...
I have an UpdatePanel inside of a custom control, and within that UpdatePanel are two placeholders. One is initially set Visible = false, the other true. Inside the visible one I have an ImageButton that toggles the visibility of the placeholders.
I'm using this control on two different pages in my site. On the home page it works as ...
I actually don't want it to be a "real" mouse cursor, i.e. no need for ability to click on buttons, select text etc. It should just look like a cursor (or kinda like it) and be able to move around the app's window (no need to go outside). It will be controlled by the computer, and the user should be able to use the mouse as usual during ...
I have a large project with long namespaces, like
CompanyName.Product.Component.Class
Using Sandcastle to build the documentation for the namespaces, but those long namespaces really screw up the display of the contents pane in the final chm file. How can I get it to display just Component.Class in at least the Treeview panel?
And...
Hello,
I need an OCR component for .NET.I read all questions about it at SO,but I couldn't find what I needed.
The MODI function from MS Office 2007 OCR makes the deployment of my program impossible,because all of my users must have MS Office 2007 on their computers.
Is there a way to use the OCR from MS Office without the requirement...
I am running the code to get the change set just before a linq submit changes call.
private void OnSubmitHandleReplication()
{
System.Data.Linq.ChangeSet changes = GetChangeSet();
//Do something with change set
}
In the do something section I need to know what order things were submitted in, and what order they will post to th...
Can I make XmlSerializer ignore the namespace (xmlns attribute) on deserialization so that it doesn't matter if the attribute is added or not or even if the attribute is bogus? I know that the source will always be trusted so I don't care about the xmlns attribute.
...
I'm wondering the performance differences between instantiating a class once in a form or whenever it is needed. For example, say I have a customer form to edit a customer. On the form load, I instantiate a customer class and call a function to return the customer data to populate the form controls.
CustomerInfo customer = new Custome...
My boss keeps asking me "which version of .NET are we upgrading to", to which I answer "3.5, the latest one".
But then he sees things about how .NET 3.5 is just a set of libraries on top of .NET 2.0 and I find myself having to explain it to him.
And of course the version of C# that ships with .NET 3.5 is actually C# 3.0.
What's a goo...
If I have a large (>500MB) XML file to validate, does an XmlReader bring the whole thing into memory to perform validation?
I looked at http://stackoverflow.com/questions/751511/validating-an-xml-against-referenced-xsd-in-c for validation procedure.
thanks,
Mark
...
I like to cleanly separate public and domain objects (so, nHibernate isn't going to help here) from each other which ends up forcing me to write a lot of code to map one object to another. What tools/plugins are out there to take the tedium of having to do manually do this mapping in .NET?m Whenever I Google this, it thinks I'm wanting...
0:000> !dumpheap -stat
total 1755874 objects
Statistics:
MT Count TotalSize Class Name
7b9b0c64 1 12 System.Windows.Forms.Layout.TableLayout+ColumnSpanComparer
....
7933303c 14006 4926456 System.Collections.Hashtable+bucket[]
65246e00 804 4982192 System.Data.RBTree`1+Node[[System.Int32, mscorlib]]...
I've got a DataGridView control in a Windows forms application. There are four columns with string data and three with DateTime data. I'm adding the rows programmatically using the Rows.Add() method. All of the columns have SortMode set to Automatic. Clicking the column headers to sort just works, except for the one DateTime column that ...
I've seem to have gone down a rabbit hole. I would like to convert the data from ADO .NET datasets into a Nullable type. At first I assumed that a straight cast (int?) would do it. How naive I was. Wrong, badly wrong. Now I'm trying to write a generic converter but am getting hung up on the syntax. This is so 2005 - someone must have sol...
What does the recent rise of netbook devices, and the popularity of these low power, low memory computing devices, mean for developing desktop applications?
Reworded like this:
From User RSolberg:
Given the recent trend in the market for smaller net books with lower performance standards than the modern laptop and desktop, what will h...
The FontDialog class in C# has a property "AllowScriptChange" that lets the user select the script (Western, Hebrew, Arabic, Turkish, etc). When enabled, the dropdown box provides all those options and whatever else is available depending on the font selected.
If the dialog is successful, the font selected has GdiCharSet set a value fr...
I'm building a custom explorer treeview that only has my code repository, my visual studio projects folder, and other similar things for quick access, and possibly eventually on-the-fly version comparing. I'd like to be able to right click a folder in this explorer and get a cmd.exe prompt here, like in windows explorer with the powerto...
I have a ViewModel class that contains a list of points, and I am trying to bind it to a Polyline. The Polyline picks up the initial list of points, but does not notice when additional points are added even though I implement INotifyPropertyChanged. What's wrong?
<StackPanel>
<Button Click="Button_Click">Add!</Button>
<Polyline ...