.net

Looking for Pivot Chart capability similar to Excel's PivotChart

I am looking for a .NET pivot charting component that is similar to Excel's PivotChart. This component would be used to display data to users as part of a smart client. Users may wish to slice and dice the data in a variety of ways. Ideally, the PivotChart component would allow the user to select a variety of ways to group and aggregate ...

WPF: UI hangs on event fire

Guys, I am trying to programmatically scroll a ScrollViewer. But my UI hangs as soon as the event fires. If I take out while loop, this problem is gone, but then I do not get the behavior I want. Could you please help me out to solve this problem? I am using WPF 4.0 Here is the code for your reference: <Page xmlns="http://schemas...

C# DataGridView.Clear()

Here comes the trouble. I want to delete all rows from datagridview. This how i add rows: private void ReadCompleteCallback(object clientHandle, Opc.Da.ItemValueResult[] results) { foreach (Opc.Da.ItemValueResult readResult in results) { dataGridView1.Invoke(new MethodInvoker(() => dataGridView1.Rows....

ASP vs .NET database encoding issue

I have an old classic ASP application that stores information in a SQL Server 2008 database. I need to retrieve the information in a new .NET application but I am having some encoding issues. When I look in SQL Management Studio or at the data retrieved in .NET text strings looks weird when it contain Danish characters, e.g “Øvrige” wh...

Why does ConfigurationValidator validate the default value of a ConfigurationProperty even if IsRequired is true?

Let's say I have a configuration property that looks like this. Note that there is no default value. [ConfigurationProperty("x", IsRequired = true)] [StringValidator(MinLength = 1)] public string X { get { return (string)this["x"]; } set { this["x"] = value; } } Now I add my section like this: <mySection x="123" /> I'll get...

.Net ORM with the fastest learning curve?

Hey, A little briefing first; I've been a Delphi person for years, and been away from C# for two years. The last thing I've done in C# was a mid scale DB app with my own custom DAL. Ie, I had coded my own functions to retrieve data as list, functions to append data and so on. Now I am offered a small to mid scale project using C# WinFo...

WCF OnNewSession?

Im having a self-hosted WCF service in a WPF-app with a textbox for logging activity on the host. First I used a Singleton-model, created my service-instance and attached a handler to a custom Message-event on my service-class so that activity on the service is logged to my textbox. But now I need to use the PerSession-model so Im usin...

How can I reproduce this .NET Garbage Collection scenario

Here is a great article about GC may occur at unexpected point of code execution: Lifetime, GC.KeepAlive, handle recycling – by cbrumme http://blogs.msdn.com/b/cbrumme/archive/2003/04/19/51365.aspx?wa=wsignin1.0 My question is how can I reproduce forced GC at the point mentioned in the article? I tried to put GC.Collect() at beginning ...

Make .NET desktop software that expire after certain period.

Hi, I'm looking for ways to make piracy most inconvenient. I have developed a Windows Form software that I want the customer to be able to use only for a certain period of time, after installing. Is it as simple as writing installation date and subscription period into setting file and check these values during run time, or are there ...

WPF: Auto truncating text in TextBlock

I have a TextBlock of Width 600 and Height 80 in my WPF 4.0 application. I would like to truncate text and append ... at the end, at runtime. Could you please suggest me some about how should I approach it? ...

Torrent library with .net or Lua bindings

I'm looking for a way to download torrents in a C# application. Ideally I would like bindings for a popular torrent library to .net, are there any? Alternatively (this is a bit of a long shot) the application already has Lua built in, so if there are Lua bindings I can also work with that. ...

Wanted: C# programming library for mathematics.

What I need is: plots creation, stuff for interpolation, stuff for counting such things as and where L(x) is an interpolation built from some data (points) generated from original known function f(x). meaning we know original function. we have a range (-a, a) - known. We need library to help us calculate data points in range. we ...

Read random line from a file? c#

Hey. I have a text file with few hundred lines, the structure is pretty simple. firstname lastname I need to pick out a random firstname & listname from the file. Thanks. ...

Autoconf for Visual C++

I want to build XZ Utils with MSVC++, but xz utils uses a Gnu Autoconf Script. Is there a way to import a whole autoconfed project into MSVC++, then build it? If not, is there a way to run the Gnu Autoconf script for MSVC++, then after that, just take all the source files, as well as config.h, then build it? ...

How to publish a web site using Visual Studio Express Web 2010

I mean; I need to publish the web site (Included the dlls built on Release Mode...) Any idea like using bats. or whatever.. since I don't have the professional studio. ...

Application settings in visual studio 2008 express edition, winforms

In the application settings screen for the express edition, the Configuration combo box is disabled, so I can't change things like the assembly name and description depending on the configuration. The first question is, is this box enabled in the full version? Secondly, to get around this, I edited the AssemblyInfo file manually and us...

Explicit __doPostBack()

Hi all, I have explicitly added __doPostBack() on Button onclientClick event . <asp:Button ID="Button1" runat="server" Text="Button" OnClientClick="__doPostBack('Button1','')"/> When I am clicking the button the Page_Load is calling twice. But if I am adding below code inside page load ,page load is calling only once on bu...

Other method for iterating an enum

Initially I had the following: [Flags] public enum QueryFlag { None = 0x00, CustomerID = 0x01, SalesPerson = 0x02, OrderDate = 0x04 } As check boxes are checked/unchecked, I would add/remove flags from: QueryFlag qflag; My idea - when the user clicks the Search button, I would iterate the actual flags set in qflag t...

Making chat server with .NET and Objective-C in iOS?

I want to make a chat server by using .NET technology (C# and SQL server) and chat clients with iOS Apps and C# Apps but i don't know where to begin :( Anybody can tell me what i need to know to do it :( ...

Data Structures and their Database Mapping in .Net

Hello. From what I know, complex data structures (tree, binary tree, graph) are not available in the .Net Framework Base Class Library. Is there a good 3rd party library available for this purpose? Further, I need to map these data structures back to a physical database (SQL Server). Is such an extension available? I'd love to have a to...