.net

Easy Way To Create Installer For .Net Projects

What is the best/easiest way to create an installer for a .net application that will install the framework if required. I only have visual studio express if that makes any difference. ...

DataGridView -Value does not gets saved if selection is not lost from a cell

Hi, I am using DataGridView Control for reading and writing an XML file through XML Serialization. I have a little pb? as explained below: 1. I read an XMl file and populate a Datagridview controls with deserialized object. 2. I go and update all the values on the datagrid view on the cell. ...

How to name methods that are registered to events

Hello, assume i have class that exposes the following event public event EventHandler Closing How to name methods that are registered to this event. Do you prefer to name the methods like they are generated by Visual Studio (aka. +=, Tab, Tab) private void TheClass_Closing( object sender, EventArgs e ) or do you use your own style...

Change Audio Format in C#

Hi, I want to change an audio file format into another. Specifically, I want to convert any audio file into 6khz, 16 bit, mono, PCM wav format. How can I cope with this problem. Thanks again in advance. ...

A doubt about Dictionary<T,T>

I have a class which looks like this: public class NumericalRange:IEquatable<NumericalRange> { public double LowerLimit; public double UpperLimit; public NumericalRange(double lower, double upper) { LowerLimit = lower; UpperLimit = upper; } public bool DoesLie...

Select the item in combobox with key/up in WPf

How to select the items in comboxbox using key up/down? I tried to handle it in PreviewKeyDown event. But it is not working. ...

Which C# SOAP Client Library is easiest to use?

I would like to connect to a SOAP web service using C#. Before I jump right in, trying anything Google throws at me I would like to ask what is the cleanest and best way to do it where most of the work is done for me. I would like a high level method, where I give it a WSDL and it will basically handle a lot of things for me. I of cou...

Repeat windows messages in Winforms

I want repeat sent windows messages to my winforms application. Now, I have class implementing "IMessageFilter" which saves the selected messages (WM _KEYDOWN, WM _LBUTTONDOWN, etc...) to the list. On key "Pause/Break" I copy the list of messages, clear original list, and resend the messages. In my test project is only one form with on...

Model View Presenter Interface question?

I need your help to understand MVP. I used a interface (IProductEditorView). If you look below you can see presentation layer: using System; using System.Collections.Generic; using System.Text; using MVPProject.BusinessLayer; namespace MVPProject.PresentationLayer { public interface IProductEditorView { int ProductID { ...

DataSet.WriteXml to string

Hi, I'm tring to get a string from a DataSet without using GetXml. I'm using WriteXml, instead. How to use it to get a string? Thanks ...

Studying for the 70-564 exam

Besides the searching MSDN with the course outline, there is little out there to help prepare for the 70-564 exam . Some say that using the 70-547 Training Kit book helps, but does anyone know (as a rough percentage) how much of the 70-547 book covers the 70-564 exam? ...

.NET Compact framework - make scrollbars wider

Is there some way, how to make scrollbar wider in winforms for .net compact framework? I want to be application finger-friendly, but the scrollbars are very narrow for people with not-small fingers. EDIT: The problem is with built-in scrollbars in components like ListView, DataGrid, etc... Windows Mobile 6.0, .NET Compact Framework 3....

Linq to Sql update creates duplicate record

I'm using linq to sql in my data layer where I have added a "settings" table to the regular asp_user table. In this settings table I keep several records of which one is the prefered Unit (a foreign key to the Units table). Now when this prefered unit needs to change (say from liter to kilogram), I do a call to my UnitService to get the...

handling keyboard scan codes directly in VB KeyPress event

How to map Numpad scan codes to keys in VB KeyPress event? Meaning I want to track key 1 when NUMLOCK is ON OR OFF. ...

How to put forward a good business case for WPF?

There are many questions about WPF vs Winfoms and the benefits of migrating to wpf, however I have a more specific question, which is probably subjective but would definitely help me justify using WPF. Being in an internal IT department, the business users are not bothered how we get to the end product, but are also not fussed about thi...

What is the best strategy for grouping resources in a .NET application

Where should resource files go and at what granularity (application/assembly/namespace/class/...)? Using a layered architecture one can split an applications into separate dedicated assemblies. An advantage is that it is easier to manage dependencies and ensure that code does not get entwined. During application wide refactoring, piec...

.NET separate assembly obfuscation?

I'm using Xenocode and want to obfuscate the main application (A.exe + B.dll) and, separately, a plug-in component "P.dll" which references B.dll. So I have two Xenocode projects with the same passphrase. For "A/B" I select to obfuscate all B classes/methods/etc. (using a filter B.*) . Then for the plug-in I select to obfuscate all...

VS 2008 Addon to temporarily disable/remove all catch block

Is there any addon by which I can disable all catch blocks temporarily. I'm maintaining an application and I need to find out where exactly it is throwing exception. Someone has done error handling is done is all layers to make my job tough :( ...

Running a .NET application without .NET framework

Possible Duplicate: Running .net based application without .net framework How can I run a .net application without .net framework? ...

Speed up the enabling/disabling of controls (C# WinForms)

Hi, I have a recursive method on the base form that takes in a control and an enabled flag. It goes through every control on the form and based on what the control type is, it sets the background colour of the control accordingly and sets the enabled property to the parameter. So generally, the method is called passing (this) as the co...