.net

How can I get an IObservable<T> in Rx from a "non-standard" event?

Here's what I mean. Suppose I'm working with an API that exposes events, but these events do not follow the standard EventHandler or EventHandler<TEventArgs> signature. One event might look like this, for instance: Public Event Update(ByVal sender As BaseSubscription, ByVal e As BaseEvent) Now, typically, if I want to get an IObservab...

.Net Compact Framework 2.0 touch and nice controls

Hello! I would like to know if somebody knows free custom nice controls for .NET Compact Framework 2.0. There are nice controls as Manila Interface SDK (http://forum.xda-developers.com/showthread.php?t=566188), Sense Interface SDK (http://forum.xda-developers.com/showthread.php?t=648906) and so on for free, but they work only on .NET ...

How can I scale multiple windows with fixed aspect ratio so that they cover maximum of monitor without overlapping

My question is in my title. I am trying to develop a logic so that I can scale fixed aspect ratio windows to cover most of the screen without overlapping eachother. There could be two three or four windows. There could be an alignment parameter also. ...

Can I use VS2010's Intellitrace to gather data for a Windows Service?

I have a Windows service that I'd like to gather some debugging data on using Intellitrace - the problem is that you can't debug a Windows Service by starting it directly from inside VS. I have the service installed, and the very first statement in Service.Start is "Debug.Break", which allows me to attach VS. However, you can't use Intel...

problem with Asp Net web Resource

Hi: We're working on a ASP Net web application that we migrated from 1.1 to 3.5 and, for some reason, the resource file is not taking the values we try to add/update. Some points to consider: 1)The legacy web app, generated 2 files: "MyFile.es-Mx.resx" and "MyFile.es-Mx.resources" 2)We can modify the "resx", but added/updates values are...

What is the default http user agent header sent by the .NET SoapClient class?

What is the default http user agent header sent by the .NET SoapClient class? ...

.NET 4.0 vs older versions performance comparison

I found something similar discussed, but it was while .NET 4.0 RC. As for current moment does someone tries to do some performance comparison and can share with as.It is very interesting as besides other changes such core modules like CLR and GC are updated. Does that gives any performance advantage. ...

Looking for a variety of Windows Form tutorials for visual studio.NET C++

Looking for a variety of Windows Form (winforms) tutorials for visual studio.NET C++ I found a few basic ones: How to: Create a Windows Forms Application Walkthrough: Retrieving Dialog Box Information Collectively Using Objects Any others? Thank You. ...

Gantt view or hierarchical grid

Hi, Is there any any free Gantt view grid control or hierarchical grid view available in winforms? I require a grid that looks like an MS project task list. But it should not contain a right side calendar view as in MS project. My requirement is just to maintain hierarchical data with multiple columns. Please suggest where can I get t...

parse content away from structure in a binary file

Using C#, I need to read a packed binary file created using FORTRAN. The file is stored in an "Unformatted Sequential" format as described here (about half-way down the page in the "Unformatted Sequential Files" section): http://www.tacc.utexas.edu/services/userguides/intel8/fc/f_ug1/pggfmsp.htm As you can see from the URL, the file i...

.NET ORM and Security

We're going to use an ORM tool with a .NET desktop application. The tool allows creation of persistent classes. It generates all database tables automatically. In addition to other data, our system needs to store user credentials, and deliver access control. The question is, is there any possibility of access control by means of ORM, w...

Sync tables between different database providers

I have 2 tables in 2 different databases, one is in a mysql server and one is in an informix server. Using .net and odbc, is there a way to identify the differences of both tables and merge them? so that both informix database and mysql database have the same data. thanks. ...

How to tell if a certain Excel file is open using VB.NET?

I'm exporting my Dataset to an excel file, and I want to make sure I keep any file errors under control. One in particular that I'm concerned about is accessing a file that's already open. A general IOException occurs that says "The process cannot access the file 'C:\Reports\report300.csv' because it is being used by another process." H...

App.Config vs. AppName.exe.Config

I'm building a Windows Service app that has configuration data stored in App.Config. However, I noticed that when I build my application a AppName.Exe.Config is generated. Can someone tell me the relationship between these two files? Is the AppName.Exe.Config file what I install with my Windows Service app, instead of the app.config? ...

Where can I get the Microft SharePoint assemblies?

Hi, I am trying to workup an automated tool for SharePoint interaction through a Powershell script. Am running into a SharePoint.dll not found issue and upon looking it up(including previous posts in StackOverflow), it seems its available in the server. I do not have access to a Sharepoint installation at the moment. Is there some place...

Why won't WPF databindings show text when ToString() has a collaborating object?

In a simple form, I bind to a number of different objects -- some go in listboxes; some in textblocks. A couple of these objects have collaborating objects upon which the ToString() method calls when doing its work -- typically a formatter of some kind. When I step through the code I see that when the databinding is being set up, To...

How to capture a screen shot in .NET from a webapplication?

In Java we can do it as follows: import java.awt.Dimension; import java.awt.Rectangle; import java.awt.Robot; import java.awt.Toolkit; import java.awt.image.BufferedImage; import javax.imageio.ImageIO; import java.io.File; ... public void captureScreen(String fileName) throws Exception { Dimension screenSize = Toolkit.getDefaultTo...

What is C# .Net analog for Flash/Flex flash.utils.ByteArray?

What is the C# .Net analog for Flash/Flex flash.utils.ByteArray? ...

How to declare number in C#?

In as3 I'd say public var time:Number; How to declare such in C#? ...

Can I create an application using SlimDX relying on the DirectX DLLs already bundled with Vista/Win7?

I'm working on a .NET application that requires the use of accelerated graphics, currently DirectX 9.0c. The software is quite graphics intensive and must, in addition, be launchable from a CD or by ClickOnce without the user requiring administrator's permissions. I currently use SlimDX, which works great featurewise, but the users are ...