.net

phxsoftware System.Data.SQLite DbDataReader misbehaving

The following post relates to the System.Data.SQLite data provider by phxsoftware (http://sqlite.phxsoftware.com) I have a question (and possibly a problem) with DbDataReader’s Read method and/or Visual Studio 2008. In many examples I see things like the following (and I know this code doesn't make a lot of sense ... but it serves a pu...

Hudson + CVS headaches

I'm trying to configure my Hudson server to retrieve code from a CVS repository, but so far it's been a pretty frustrating experience. My setup is Hudson 1.310 running as a system service, CVSNT latest version on the server, TortoiseCVS 1.10.10. I'm getting "The credentials supplied to the package were not recognized" all the time, eve...

How to truncate milliseconds off of a .NET DateTime

I'm trying to compare a time stamp from an incoming request to a database stored value. SQL Server of course keeps some precision of milliseconds on the time, and when read into a .NET DateTime, it includes those milliseconds. The incoming request to the system, however, does not offer that precision, so I need to simply drop the millise...

Documenting a dependancy tree

I have a requirement to document the assembly dependencies in a vb6/dotnet application. What techniques / tools are good for performing this sort of document. I was planning on using Visio for drawing. ...

How to improve substring detection as a suffix

I am pretty new to C# and I am pretty sure this function can be radically improved: public static Boolean SuffixExists(String strWhole, String sufx) { int iLen = sufx.Length; if (iLen > 0) { String s; s = strWhole.Substring(strWhole.Length - iLen, iLen); if (sufx != s) retu...

MSN Messenger like notification - Do you know any examples in .NET VB .NET or C#?

I'm looking to write a notification application where I'd like to provide popup notifications from the taskbar similiar to the ones in MSN Messenger or most other chat programs. Are there any good examples using VB .NET or C#, ideally without using Win32 calls? Thanks. ...

Repeating lines in Crystal Report

I'm working with MySQL connector and C#. Everything was ok until I got to the reporting part. There is no standard way to retrieve the data from MySQL to CrystalReport. So I read in this page that what I have to do is a XML file of a View created in MySQL then retrieve the data for Crystal Report. I dunno if you have done it but I am hav...

C# properties: How are they instantiated?

Hi! This might be a pretty straightforward question, but I'm trying to understand some of the internal workings of the compilation. Very simply put, imagine an arbitrary object being instantiated. This object is then allocated on the heap. The object has a property of type PointF (which is value type), with a get and a set method. Ima...

Memory Leaks in .NET CF when running forms on separate threads.

EDIT - nulled thread before measuring finishing memory This is all running .NET Compact Framework 2.0 under Windows CE 5.0. I've come across some interesting behaviour in developing my App. Whenever I try to create a form and have it run a separate thread it seems to leak 392 bytes when it's closed and I'm unsure why. My approach so f...

clipboard image send to email

how to clipboard image send to email using C#.Net with java script web application ...

simple way to remove EXIF data from a JPEG with .NET

how can i remove all EXIF data from a JPEG, i found lots of examples how to read and edit the EXIF data with various libaries but all i would need is a simple example how to remove it. it just for testing propose so even the ugliest and hackished approach would be helpful :) i already tried searching for the EXIF start/end markers 0xFF...

Restart background worker

Is there a way to directly "restart" a background worker? Calling CancelAsync() followed by RunWorkerAsync() clearly won't do it as their names imply. Background info: I have a background worker which calculates a total in my .net 2.0 Windows Forms app. Whenever the user modifies any value which is part of this total I'd like to restart...

Improving WPF application speed over remote desktop?

In our scenario, we have a wpf application that is used by users over remote desktop, and we found the user experience is very slow. Any suggestions for improving the user experience in this scenario? One point might be to disable any animation/storyboards, and avoid using gradients in the UI. More thoughts are appreciated. ...

Mathematical packages that can be used from .NET

Hello, which are some mathematical packages that can be used from C#? I know about Lutz Roeder's Mapack package, do you know about similar packages? I am mainly interested of numerical analysis: numerical integration, linear and non-linear equations solving. Thanks. ...

Call a store procedure from .net

I have a store procedure like this: CREATE PROCEDURE up_action (@id int ,@group varchar(30)='' ,@nom varchar(30)='' ,@compte varchar(30)=NULL ) AS BEGIN DECLARE @chrono int ...... select @date=date from users where compte=@compte INSERT INTO dialog (numappel,auteur,commentaire,etape,etapews,operant) VALUES (@numappel,@nomprenom,@dialog...

How do I forward declare a delegate in C++/CLI?

How? The following did not work: delegate MyDelegate; ref class MyDelegate; delegate void MyDelegate; The following works for declaration: public delegate void MyDelegate(Object ^sender, MyArgs ^args); But using it as a forward declaration gives me error C3756: 'MyNameSpace::MyDelegate': delegate definition conflicts with an exi...

NLS sorting changes for Windows 7

According to this article, there will be NLS sorting changes in Windows 7 that may affect certain applications. I am trying to figure out if the application I am working on will be affected by these NLS sorting changes. I did some searching on msdn and identified a list if NLS sorting functions: CompareString CompareStringEx CompareSt...

Syntax colouring in WPF

Hi, Does anyone know if there's a free WPF syntax highlighting component? I'm currently using AvalonEdit, which is part of the new SharDevelop source. The trouble I'm having is that it doesn't appear to support binding for the text content. Does anyone know if this is possible or if there's any other similar controls that do support da...

Tool (Control) for Rule Engine GUI.

After evaluating off-the-shelf products (MSBRE, Drools etc) we are writing our own rules engine (this decision has been made, please don't suggest other rules engines - but parts of them that will do the specifics I want are most welcome). What I would like is to give the users a simple GUI that would allow them to take one of our domai...

Intellisense tip and XML returns comment (VS2008)

I've found tooltips displayed by Intellisense when keying method name as very usefull but I can see only summary and params info - no returns comments Eg - I can not see below comment: <returns> Enriched object</returns> Is it a way to make it visible? EDIT Maybe you know the tool replacing standard Intellisense and displaying r...