.net

Center multiple XAML paths into view

Now this question looks similar to the question I've asked here, however, this time I have multiple Path objects. I want to create a control that centers the paths nicely. Example: <Grid> <Path Stroke="Black" Data="M 3,3 L 7,4 3,12 3,3" /> <Path Stroke="Black" Data="M 3,6 L 7,4 12,6 3,6" /> </Grid> Is there an easy way to ac...

Long running App, how handle Errors?

Hi, i have to implement a Info Terminal. I choose dot.net and the terminal is only a touchpad. So this System running 7 days 24 hours. So i call a Webservice, display Data, show Website stuff. Many things can going wrong. Have you some recommendations for this scenario? Every function in an try catch? AppDomain.CurrentDomain.Unhandled...

connect Access via c#

Hi, i need to open a connection to a remote access db. in the local environment to the remote acess db is working great . when i run this application from production server (other server) it's fail with message " It is already opened exclusively by another user, or you need permission to view its data. " my code : conStr...

Gridview: Export to csv issue

Morning all - another day, another question from Rich! I have the following scenario. I have two methods of populating a GridView with data. These are as follows: protected void btSearch_Click(object sender, EventArgs e) { lqPackWeights.WhereParameters.Clear(); ControlParameter cp = new ControlParameter(); cp.Type = TypeCo...

.NET Framework at Windows 7

What version of .NET Framework is built-in for Windows 7? ...

Please help me with a program for virus detection using detection of malicious behavior.

Hi, I know how antivirus detects viruses. I read few aticles: http://stackoverflow.com/questions/1396443/how-do-antivirus-programs-detect-viruses http://www.antivirusworld.com/articles/antivirus.php http://www.agusblog.com/wordpress/what-is-a-virus-signature-are-they-still-used-3.htm During this one month vacation I'm having. I want...

.net desktop app - how do store/change application settings or connection strings?

I need to give the user the ability to change application settings, in this case the location for the application database. I noticed that Application Settings are read only at run time, but this needs to be application-wide, not user-specific. How do I persist an application-wide connection string in windows.forms that is changeable a...

Dot net 3.5:how to enable intellisense while writting xml file refering to defined schema?

I have defined a xml schema as below <?xml version="1.0" encoding="utf-8"?> <xs:schema id="PacketTemplate" targetNamespace="http://tempuri.org/PacketTemplate.xsd" elementFormDefault="qualified" xmlns="http://tempuri.org/PacketTemplate.xsd" xmlns:mstns="http://tempuri.org/PacketTemplate.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema"&g...

Custom controls in a row of a list view

I want a list view control (or any list like control) in which each row (item), not only has text, but also some other controls. For example, each row (item) in my list view is composed of a checkbox, button, a slider, a image and a label. I tried the corresponding renderer classes (CheckBox renderer) in the owner drawn event, but i am n...

Convert Windows CryptoAPI PRIVATE KEY BLOB to bouncy castle RsaPrivateCrtKeyParameters

Is there any way (similar to FromCapiPrivateKeyBlob in Mono) to convert a Windows CryptoAPI PRIVATE KEY BLOB to RsaPrivateCrtKeyParameters used by Bouncy Castle? ...

Path Error, YUI compressor .NET

I'm trying to use YUI compressor for .NET as an MSBUILD event $(MSBuildBinPath)\msbuild.exe "$(ProjectDir)MSBuild\MSBuildSettings.xml" \p:CssOutputFile="$(ProjectDir)styles.css" \p:JavaScriptOutputFile="$(ProjectDir)scripts.js" This is my Pre-Build event command line... In the output it seems like the task succeeds because it says "Fi...

Best way to schedule deferred execution of method using ThreadPool?

I have a server application which needs to schedule the deferred execution of method(s). In other words, mechanism to run a method using a thread in ThreadPool after a certain period of time. void ScheduleExecution (int delay, Action someMethod){ //How to implement this??? } //At some other place //MethodX will be executed on a thread...

.NET Framework and Gif transparency

Before Windows 7 (and the new image codecs: WIC) I used the following (very fast but dirty) method to create a Gif encoded image with white as the transparent color: MemoryStream target = new memoryStream(4096); image.Save(target, imageFormat.Gif); byte[] data = target.ToArray(); // Set transparency // Check Graphic Control Extension s...

Usage of Desktop C# DLL in windows mobile

Hi, i have small query, is there any modification is required in usage of Desktop c# application DLL in windows mobile?. i am getting problem like File or assembly name 'Interop.CDO, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null', or one of its dependencies, was not found.. i have source code of desktop DLL, i don't no what asse...

How can insert new line after each syndicationitem when using SynicationFeed class in dotnet 3.5?

How can insert new line after each syndicationitem when using SynicationFeed class in dotnet 3.5? when you see result of googlebot fetch (in webmasters), it its ONE LINE!!!!!! ...

Regex word-breaker in unicode

How do I convert the regular expression \w+ To give me the whole words in Unicode – not just ASCII? I use .net ...

how enum is used in .NET

How does enum work in .NET ? eg. Enum eOpenMode Add = 1 Edit = 2 End Enum If LOpenMode = eOpenMode.Add Then rdoAddProject.Checked = True ElseIf LOpenMode = eOpenMode.Edit Then rdoEditProject.Checked = True How does this gets compared by their value(1,2) or by its name (add,edit) and what will be memory allocation sch...

Compile issues based on different platforms

I'm compiling a solution which runs fine on the PC but when trying to compile it for a different platform I get the following error: "Unhandled Exception: System.ArgumentException: An item with the same key has already been added." Anyone know what it could mean? ...

SQL server data conversion using Microsoft Sync Framework

We are analyzing Microsoft Sync Framework for syncing the client and server database. The scenario is like this: Server DB hold master data for all projects but the client DB only contains data to a specific project. Moreover the schema of client and server database is also different. However the data is easily convertible. Is there a...

VOIP Softphone with API or strong command line interface

Does anyone know of a sip softphone that can be controller by an API. Xlite can launch a call through command line interface, but thats pretty much it, preferably looking for something cheap, the voip SDKs iv seen are pretty expensive and i wouldn't have any knowledge of sip protocol or development. ...