I'd like to attach two forms within the same app to each other like done by some of the music players such as winamp where the windows can be detached or attached together on one of the sides and after that moving one window movies the other one too !
There perhaps is a better term to describe this behavior
any patterns or code samples...
I am getting a weird problem while parsing a double value in managed C++. It may be that I am doing something wrong. When I do:
double value = 0.006;
result = Math::Parse( value)
The output of result is 0.006000000000001. Why it is appending a 1?
Also when I go an round the value to 5 decimal places, it fails. I am doing:
result...
Summary
We have to understand which part of our (or third party, probably CLR itself) code leads to boxing of integers.
Problem description
We have a rather big application where we observe high allocation rate of System.Int32 instances. With the help of Memory Profiler we see a small number of long existing Int32 instances (18, to be...
Is there a way in Linq to Sql (.net 3.5) to specify that when you get the children of a particular record, to force the list of children to come back in a specific order?
For example, I have a list that has a "DisplayOrder" on it. When I ask my parent record/object for it's property that returns to me this list, I want Linq to Sql to r...
I've been searching everywhere, can't find any answer.
How could I invert the colors of a BitmapSource or an Image (System.Windows.Controls.Image)
from WPF.
Thanks
...
I have created a .NET C# component that I am going to sell as a developers tool. My question is, how do I add my own custom context help to the methods and properties.
So, when I press F1 over a method I want it to go to a specific web page. Is this even possible?
...
I'm working on a .NET application using Silverlight on the client side. Now I've come to the point where I want to throw out my static dummy data on the server side and add a database instead.
For the database I'd love to use one of them ORM's where I can simply tag my model classes and the database tables are built for me. I did some ...
I've been running VS.NET 2010 beta for a couple of months now alongside VS.NET 2005. As late as yesterday afternoon I was using 2005 for work.
Last night I uninstalled VS.NET 2010 and nownone of my .NET-related apps work (VS.NET 2005, SQL Server Management Studio, etc.). The installs for these products won't work, either, nor will the...
I have a C# Application that uses some other Assemblies, so when I compile, I end up with my .exe and 2 or 3 other .dll Files. Ideally, I only want 1 .exe file. At the moment I use ILMerge for that, but as the Assemblies that I use are Open Source (and under the same license), I wonder if there is an easy way to add them to my Solution a...
Is there a way to call up visual studio's object visualization tools in my own code? say I want to be able to click something and inspect it like the debugger would if I hovered over it in code or added it to the watch?
...
I have a method which summarizes a collection of decimal values using a method similar to this...
Dim _amountCollection as New List(Of Decimal)
_amountCollection.Add(145.12D)
_amountCollection.Add(11.32D)
_amountCollection.Add(6547.07D)
Dim _totalAmount as Decimal
For Each _individualAmount as Decimal in _amountCollection
_totalAmou...
I have created a VS setup project for my app. It install the app to user-defined location and creates several shortcuts in the start menu. It also creates an entry in Control Panel/Add or Remove Programs that can be used to uninstall the application.
I would like to know if there is a way to create a start menu entry (next to other entr...
I have an ASP.Net application which renders sensitive information. The application needs users to log on before viewing the main page of the application. The authentication is done via a web service.
This is simple enough however the hardware design is multi-tiered. 1) Web Server for logon 2) Application server for main application ...
Is there a way to get the current systems line break character(s) in the .net framework?
...
I have several .net applications (~100) that I am responsible for overseeing. Some of them have logging to database others have logging to event viewer and others to flat files. Several logging frameworks such as log4net, enterprise library as well as several in-house legacy logging frameworks no one knows how work exactly.
My systems a...
I recent noticed, that when I start our rather big application, there are allways two assembly loaded nobody knows what they are.
Each time I start debuging the application, the two assemblies are named diffrently.
For example, last time I got this output (it's in German, but you will get it):
...
"start.vshost.exe" (Verwaltet): "C:\Wi...
I recently just downloaded Microsoft Enterprise Library 4.1 – October 2008 and in the documentation it claimed that it includes Microsoft-signed strong name assemblies.
I cannot find these in the extract, where are they?
...
I need to read in data from excel files in my c# winforms app. Any recommendations on good components for this? I've used syncfusion some years ago and that seemed to do the trick.
There'll be a bunch of header lines I need to skip (so a straight ADO approach won't work easily) and then a table of data with standard columns but variable...
Hi everyone,
I am working on a custom tool for ArcGIS which will integrate with ArcView. The tool is developped using C# and basically connects to an SQL database, fetches data to a local data structure, performs a great deal of statistical analysis and then displays the results as a new layer.
The crash happens during this code's exec...
Does anybody know how can I get IP address of client with RIA services. In WCF we have OperationContext for that. But it doesn't work with RIA services.
...