I am planning out some work to introduce Dependency Injection into what is currently a large monolithic library in an attempt to make the library easier to unit-test, easier to understand, and possibly more flexible as a bonus.
I have decided to use NInject, and I really like Nate's motto of 'do one thing, do it well' (paraphrased), and...
I want to know how can I build UIs like skype using standard .Net/C#. Is it possible at all?
Thanks
...
Our application has 200+ screens. Each screen displays 2 to 10+ lists. List data are static information and are not subjected to change often. List types across screens are categorically similar with few specific lists. Such specific list contains more than 1000 entries.
Intended dev. environment : win app. using .net 2005, ms sql ...
I'm building a System.Drawing.Bitmap in code from a byte array, and i'm not sure what properties and such need to be set so that it will properly save as a .BMP file. I have Bitmap b = new Bitmap(width, height, PixelFormat.Format32bppArgb); as my constructor and
for (int i = 1; i < data.Length; i += 2;)
{
Color c = new ...
I have an installer with an external UI handler. Therefore, I have a Setup.exe and a setup.msi file. How can I put both files inside the bootstrapper? Thank you.
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<BootstrapperFile Include="Microsoft.Net.Framework.3.5">
<ProductName>Microsoft...
Given a single .net codebase for a piece of software (let's use C# for argument's sake), and I want to break this software down into different editions based on functionality (like a basic edition and an advanced edition), what is the best way to go about this?
Would I have to factor this into my software architecture?
...
I am working on constructing and saving a bitmap, and i have a loop that sets the pixels in the bitmap to their proper values. However it crashes after a short period of ime with an IndexOutOfRange exception at the noted point in the code.
//data is an array of bytes of size (image width * image height) * 2;
Bitmap b = new Bitm...
Hi All,
Can anyone please recomend me a book on >net Serialization?
...
Is there any way to name a column when LINQ modelling the same as the table? Such as this:
[Table(Name="tblCC_Business")]
public class Business
{
[Column(IsPrimaryKey=true, IsDbGenerated=false)]
public string BusinessID { get; set; }
[Column] public string Business { get; set; }
}
Our SQL table names don't necessarily reflect ...
I have some directories containing test data, typically over 200,000 small (~4k) files per directory.
I am using the following C# code to get the number of files in a directory:
int fileCount = System.IO.Directory.GetFiles(@"C:\SomeDirectory").Length;
This is very, very slow however - are there any alternatives that I can use?
Edit
...
Hi,
I have the following link defined in a .NET 1.1 usercontrol that has the
JQuery source file linked.
<script language="javascript" src="jquery.copy.min.js"></script>
<a href='#' onclick="javascript:$.copy('WORKED');">Copy to clipboard</a>
But nothing happens when I try to paste somewhere else???
Malcolm
...
Hello,
I am currently evaluating the White testing framework. Pretty amazing stuff!
Everything looks pretty promising, but I have run into a small wall.
How can I test a .NET 2.0 PictureBox?
There is no predefinied UIItem for that. Though there is the Image class, but how would I use it in combination with my PictureBox?
I also tried ...
see also System.Data.OracleClient namespace discontinued?
(Firstly don’t panic yet, System.Data.OracleClient is not being removed by Microsoft yet, however it is not in the client version of .net 4)
This use to be possible by using System.Data.OracleClient, however Microsoft has decided to deprecate OracleClient. (OracleClient is the ...
We have a sqlserver (WinForms) application that is deployed with ClickOnce that talks directly to the database. If we are forced to port it to oracle, can ODP.NET be used with ClickOnce.
(The users may not have admin rights on their PCs)
Background
This data import application is used by a handful of users at each customer’s site it ...
Reading from MSDN:
"A delegate is a type that references a method. Once a delegate is assigned a method, it behaves exactly like that method."
Does then "delegate" mean a type or an object?!
...It cannot be both. It seems to me that the single word is used in two different meanings:
a type containing a reference to a method of some s...
Hi everyone.
I need a tip to configure again my debugger on my local machine, after a format.
I have a Win2003Server with Remote Debugger in execution as service, and, until yesterday, everything works fine.
I formatted my client machine and re-installed all my software, including Visual Studio 2005 with SP1. I connected to local domain...
Dear All ,
i want to develop an application where need to set reminder and send mail through database on particular time duration.
...
Hello,
My object is "MyClass" with 2 properties : Id (int) and HourBy (int)
I have two list :
var List1 = new List<MyClass>();
var List2 = new List<MyClass>();
I'd like to get one list with :
- Object from List1 present in List2 based on Id with Hourby (list2) < Hourby in List1
- Object from List1 no present in List2
//#Sample1
//L...
I want to check whether a string matches one of a list of values.
There are of course many, many ways I could go about this: if statement, switch statement, RegEx, etc. However, I would have thought that .Net would have something along the lines of
if (myString.InList("this", "that", "the other thing"))
So far the closest thing I can...
I will (hopefully) be taking on a large project to migrate an enterprise Visual FoxPro application to C# 3.0 on .NET 3.5. I know that this application has a huge number of settings that have an impact on everything from multi-user/multi-site configurations to report properties. There's at least 150 different settings that are currently g...