Hello,
i have some questions about the HashCode of immutable types.
May i "pre"-generate the HashCode of an immutable type in the constructor or are there any reason not do that?
Should i always generate the Hashcode again, when the method GetHashCode() is called?
Here´s a sample class :
public class Id {
private re...
I have a DataGridView in readonly mode in a .NET 3.5 (Visual Studio 2008) WinForms application.
The cells' width is very small. Some of the cells contain a short number. Now, even with a small font, sometimes the number is shown with an ellipsis. For example "8..." instead of "88".
Is there a way to let the text flow over the next cell...
In my current asp.net-mvc project one of my pages allows the user to select a value in a dropdown box after wich a post request is made that updates several values.
To make sure the delay from the postback doesn't confuse the user into selecting another value (and thus creating another post, creating another delay etc) I set the select's...
I'm writing my first WPF application and I'm trying to implement a fade animation when the form closes. I came across this question http://stackoverflow.com/questions/867656/fading-out-a-wpf-window-on-close which shows how to make a fade-out animation but I can't seem to get it working. I have this in my XAML:
<Window.Resources>
<St...
If you had to create a plugin like ReSharper for Visual Studio, where would you start?
(not talking about each and every feature, but I am trying to just get a skeleton of it going).
...
Hi guys,
I am trying to build a desktop app. The biggest requirement is that it should be as miniscule as possible. For Windows users, is it better to build it in .NET or WinAPI? I am not from software background so pardon me if this is a non-sensical question, but I have heard that with .NET, there is a chance that some Windows users ma...
I've run into some problems when trying to serialize my object to XML. The problem appears when trying to serialize a "Profiles" property which is a List of Profile items. Profile is my own type.
The Profile type should ideally be abstract, but it isn't, since XML serialization demands a parameterless ctor. The Profiles property contains...
I'm using System.Transactions and Transaction scope for my transaction handling in conjunction with the Enterprise Library Data Access Application Block.
In some cases I'm using separate instances of the Database class within the transaction. The connection is to the same database though.
I'm wondering if the application block will re...
I've been working on a really large project for almost 2 years and the client requirements keep changing. These changes, of course, effect everything and I would like to find a way to work with the CSS in a more dynamic fashion.
I assume I could get one of the ruby or python CSS DSLs running under ironRuby/Python but this client is very...
Is it possible in managed code to get a reference to an already running process (COM+ component) and call methods on it? Instead of instantiating a new object, is there a way to point to an already running instance of a COM object so that the .net code has a reference to the running process just as if it had instantiated it - to call me...
Hi All,
I am trying to execute following syntax under transaction but it throws error:-
this is the script that I am executing under transaction:-
IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
-- full text search is installed. Run the necessary procedures
BEGIN
declare @dbName nvarchar(128)
select @dbName = DB_Name()
...
Hey,
I created a Winform in VB.NET, and I added a Splitter control to allow resizing of panels during runtime.
My issue is that the splitter control is not apparent. I would like to make it appear in a way that the user would know the form can be resized. At the moment, I basically just changed the color, but I don't like how that l...
How can i run any win.exe from asp.net page?
this codes me error: The system cannot find the file specified
System.Diagnostics.Process process1 = new System.Diagnostics.Process();
process1.StartInfo.WorkingDirectory = Request.MapPath(@"C:\");
process1.StartInfo.FileName = Request.MapPath("WindowsApplication1....
As a professional .net developer (at least this is how I earn my money) I wonder if Mono for the Mac is worth a closer look.
I already tried Mono 3 years ago when I first got my iMac but the installation was impossible to master and after half a day I just gave up.
I also got help from a Unix professional but we both were unable to get M...
When a file is opened from Windows Explorer and the file type is unknown is it possible to trap and handle this event within .NET?
...
I'm having trouble making a secure FTP connection using SharpSSH. Up to now I've been using the DOS command line app MOVEit Freely to make the connection, and it connects fine:
C:\> ftps -user:ABC -password:123 xxx.xxx.xxx.mil
However, when I try to do the same thing with SharpSSH, I get an error that says either the connection timed ...
Is there an easy way to detect when a .NET app gets or loses focus?
...
I am having a problem with my Visual Studio 2008 debugger not attaching to the root of the default website when I run from within the enviroment. I have an .NET 3.5 Web Application project running on VS 2008 SP1. I have set the project to "Use Local IIS Web server" with a path of "http://localhost/". I am able to create the Virtual Di...
i want to use AJAX and javascript in window platform ...can i use it in vs 05 C# window?
...
So, I have a ListBox which is bound to a list of business objects, using a DataTemplate:
<DataTemplate x:Key="msgListTemplate">
<Grid Height="17">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="{Binding MaxWidth}" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBl...