I am wanting to compress results from QUERYS of the database before adding them to the cache.
I want to be able to compress any reference type.
I have a working version of this for compressing strings.. the idea based on scott hanselman 's blog post http://shrinkster.com/173t
any ideas for compressing a .net object?
I know that it w...
I want a simple reusable control that I can use in a form to view and annotate images.
Example usage:
I load an image, or paste from clipboard to the control.
Annotate image, e.g. draw red ring around a feature.
Perhaps add some text.
Save image, or copy to clipboard, in chosen format (i.e. so we can compress).
...
I plan to write a windows service to initiate all the business processing, and a Windows Forms app to do all its configuration.
Can the windows user under which the service runs be edited in code as part of the configuration?
...
I'm implementing a custom GetHashCode for the System.Drawing.Point class in C#. My method currently fails the following requirement:
var hashA = MyGetHashCode(new Point(1, 0));
var hashB = MyGetHashCode(new Point(0, 1));
var hashC = MyGetHashCode(new Point(0, 0));
var hashD = MyGetHashCode(new Point(1, 1));
Assert.AreNotEqual(hashA ^ ha...
I'm building a custom library of composite controls that include their own javascript files as web resources. I've got DocProject running to generate my XML documentation CHMs and it's working great.
However, when I set my solution to "Release" configuration, the runtime is still not extracting the XML comments from the embedded javasc...
In order to provide heterogeneous synchronization between devices, have you ever used Mesh4x ? It uses FeedSync to synchronize data.
http://code.google.com/p/mesh4x/
...
I have a UserControl class in a Windows Application project. One of the properties of it is a collection of another class that I have defined. I can't seem to find a good example of how to get the standard collection editor working for it at design time.
I got it working using some example code I found to a degree, but the data in my co...
I'm trying to generate an entity model from a Firebird database using the Entity Data Model Wizard, but it dies loading the data for the "Choose Your Database Objects" step with the error:
Microsoft Visual Studio
An error occurred while connecting to the
database. The database might be
unavailable. An exception of type
'Sy...
Reviewing code, I came across a number of new Private Shared variables (of type Hashtables(Of String), initialized in the declaration) added to a partial class for a very large (DataContext-derived) class. This seems sensible to me in one sense because they never change, and making these shared variables ensures that they won't get re-i...
For an application we are working on I need to generate sample credit card numbers which pass the Luhn algorithm but which are also unique, so we cannot use the sample credit card numbers.
We need to be able to generate around 300 card numbers at a time, and ideally i would be able to do this when generating my input data.
Many Thanks
...
Hey
I have an application that runs well on WinCE and WM devices (all that I have tested so far).
I have just received a new device to test on and the Form throws a NotSupportedException when the designer creates a button on the device.
The device is a Motorola EWP2100 Wifi Phone.
According to its about page it runs WinCE 5
Here is th...
What is needed to either support WCF on Win2k, or at least minimize the effort in supporting remote communication with Win2k servers via .Net?
Background:
A product I'm working on has a legacy .NET remoting implementation that has been largely replaced by the WCF for new development. The legacy implementation is used as a fall-back fo...
I have a system in which I need bidirectional communication betwen the client and the server. In some instances the client needs to initiate communication with the server to ask a question, query status, get some data, etc. {We have an AI system that performs repetiative tasks, monitoring, report generation, alerting, etc. and clients a...
I want to learn VB.NET. I am an experienced programmer in C, C++ and Java. I know VB 6.0. Which would be best book for me from below?
I made few choices:
Professional Visual Basic® 2008 by Bill Evjen, Billy Hollis, Bill Sheldon and Kent Sharkey
Mastering Visual Basic 2008.
u can also suggest any other better book.
...
Can I have a switch statement like this:
...
switch (temp)
{
case "NW" or "New":
temp = "new stuff"
break;
}
...
...
Hi,
I´m having some trouble deciding in which way to go...
I've got this application which consists of one base project, and one project for the application, the application project contains code targeting a specific system, system application.
The base project is an abstract class containing abstract methods which each system speci...
I asked this question a long time ago,
I wish I had read the answers to
When not to use Regex in C# (or
Java, C++ etc) first!
I wish to use Regex (regular expressions) to get a list of all strings in my C# source code, including strings that have double quotes embedded in them.
This should not be hard, however before I spen...
I've been trying for the last hour or so to get the downloadable .NET source code installed to my local machine and it appears to be broken.
I'm installing the .NET v8.0 file from here and after the install the following files are created:
-Readme.txt
-(Source)
--(DotNET)
---(8.0)
----source.zip.tmp
-(Symbols)
--pingme.txt
--(000Admin...
I fill the dataGrid by binding a dataSet to the grid, with aDataGridView.dataSource = aDataSet.aTableName, when I trace the code after using this function, all of the column indexes are reset to 0,
what can I do? how can I find new real indexes? can I use a different function?
I tried this code I found here, but it's not working:
this.d...
I've recently tried to write something in F# making use of Microsoft Solver Foundation Services and while doing so I bumped into an issue: I had to express a (Term > Term) condition which in C# could simply be expressed as t1 > t2 and returns another Term object. In F#, instead, I had to call Term.op_GreaterThan in order to achieve the s...